Wikia

Vim Tips Wiki

Changes: Template:CatInfo

Edit

Back to page

(fix random link)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 15: Line 15:
   
 
==Usage==
 
==Usage==
#<tt><nowiki>{{CatInfo|</nowiki>text=</tt>''text''<tt>|parent=</tt>''parent_category''<tt><nowiki>}}</nowiki></tt>
+
#<code><nowiki>{{CatInfo|</nowiki>text=</code>''text''<code>|parent=</code>''parent_category''<code><nowiki>}}</nowiki></code>
#<tt><nowiki>{{CatInfo|</nowiki>text=</tt>''text''<tt>|parent=</tt>''parent_category''<tt>|help=</tt>''help_tag''<tt><nowiki>}}</nowiki></tt>
+
#<code><nowiki>{{CatInfo|</nowiki>text=</code>''text''<code>|parent=</code>''parent_category''<code>|help=</code>''help_tag''<code><nowiki>}}</nowiki></code>
#<tt><nowiki>{{CatInfo|</nowiki>text=</tt>''text''<tt>|extra=</tt>''extra_text''<tt>|parent=</tt>''parent_category''<tt>|help=</tt>''help_tag''<tt><nowiki>}}</nowiki></tt>
+
#<code><nowiki>{{CatInfo|</nowiki>text=</code>''text''<code>|extra=</code>''extra_text''<code>|parent=</code>''parent_category''<code>|help=</code>''help_tag''<code><nowiki>}}</nowiki></code>
   
 
A category page using CatInfo will display the line:
 
A category page using CatInfo will display the line:
 
:'''This category is for tips about ''text''.'''
 
:'''This category is for tips about ''text''.'''
   
If <tt>extra</tt> is specified, another line showing ''extra_text'' will be displayed.
+
If <code>extra</code> is specified, another line showing ''extra_text'' will be displayed.
   
If <tt>help</tt> is specified, a ''References'' section will be displayed, with a link to ''help_tag''.
+
If <code>help</code> is specified, a ''References'' section will be displayed, with a link to ''help_tag''.
   
 
'''Examples'''
 
'''Examples'''
*<tt><nowiki>{{CatInfo|text=searching|parent=Usage|help=search-commands}}</nowiki></tt>
+
*<code><nowiki>{{CatInfo|text=searching|parent=Usage|help=search-commands}}</nowiki></code>
   
 
See [[:Category:Searching]]
 
See [[:Category:Searching]]

Latest revision as of 08:28, July 15, 2012


Use this template in a Category definition to display standard text describing the category.

UsageEdit

  1. {{CatInfo|text=text|parent=parent_category}}
  2. {{CatInfo|text=text|parent=parent_category|help=help_tag}}
  3. {{CatInfo|text=text|extra=extra_text|parent=parent_category|help=help_tag}}

A category page using CatInfo will display the line:

This category is for tips about text.

If extra is specified, another line showing extra_text will be displayed.

If help is specified, a References section will be displayed, with a link to help_tag.

Examples

  • {{CatInfo|text=searching|parent=Usage|help=search-commands}}

See Category:Searching

  • The following example shows how to type a long CatInfo. Note that there is no period ('.') after text, but there is a period after extra_text.
{{CatInfo|text=file formats (how end-of-line is represented)|
extra=EOL (end-of-line) may be LF (unix), or CR LF (dos), or CR (mac).|
parent=Usage|help='fileformat'}}

See Category:Fileformat

Around Wikia's network

Random Wiki