Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:C/doc: Difference between revisions

Template page
No edit summary
No edit summary
Line 44: Line 44:


;example
;example
*{{C|Internal link templates}}
*<tt><nowiki>{{C|Internal link templates}}</nowiki></tt> produces {{C|Internal link templates}}
*{{C|Internal link templates|}}
*<tt><nowiki>{{C|Internal link templates|}}</nowiki></tt> produces {{C|Internal link templates|}}
*{{C|Internal link templates|display}}
*<tt><nowiki>{{C|Internal link templates|display}}</nowiki></tt> produces {{C|Internal link templates|display}}





Revision as of 20:25, 31 October 2011

Displays category links

Usage

{{C |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1category nameemptyrequired
2link text to display (instead of category name)emptyoptional
3if 3=X, link is displayed with coloured backgroundemptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

usage
Template will display {{{2}}} , or just the category name given as {{{1}}} .
If the category {{{1}}} does not exist no link will be generated;
{{{1}}} or {{{2}}} will get background color when {{{3}}} = X
else [[Category:{{{1}}}]] or [[Category:{{{2}}}]] is displayed.
code implemented as:

[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]

example


  • {{C|not-existing-cat}} produces not-existing-cat
  • {{C|not-existing-cat|}} produces not-existing-cat
  • {{C|not-existing-cat|display}} produces display
  • {{C|not-existing-cat|3=X}} produces not-existing-cat
  • {{C|not-existing-cat|display|X}} produces display


Cookies help us deliver our services. By using our services, you agree to our use of cookies.