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/display: Difference between revisions

Template page
test
 
mNo edit summary
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}<noinclude>
{{#switch: +
 
|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} = {{#switch: {{{c|}}}
 
  |i|n = {{i18n/namespace|c|link={{{v|}}}|lang={{{l|}}}}}|l=category|Category}}:
Subtemplate to ''display'' a category name.
}}{{#switch: {{{2|}}}
 
||+|-|X|x|B|b = {{{1|}}}
needs parameters 1, 2, 3, 4
|#default = {{{2|}}}
 
}}<noinclude>{{Documentation
{{#switch:{{{2}}}
|1 = Template:C/doc
|={{#switch:+|{{{3}}}|{{{4}}}=Category:{{{1}}}}}
|content = Subtemplate (used by {{Tlx|C|category name|...}}) to ''display'' a category name, with or without preceding by the namespace (as a part of the link). Needs (possibly empty) parameters:
|-={{{1}}}
* 1 = (default label to display)
|+=Category:{{{1}}}
* 2 = (alternate label to display)
|#default={{#switch:+|{{{3}}}|{{{4}}}=Category:{{{2}}}}}}}</noinclude>
* 3
* 4
The following parameters are used only if "{1}{2}{3}{4}"="+" to prepend a prefix before the label:
* c = i or n
* l = lang
* v = link
}}</noinclude>

Latest revision as of 18:04, 20 November 2024

Template documentation[  purge ]

Subtemplate (used by {{C|category name|...}}) to display a category name, with or without preceding by the namespace (as a part of the link). Needs (possibly empty) parameters:

  • 1 = (default label to display)
  • 2 = (alternate label to display)
  • 3
  • 4

The following parameters are used only if "{1}{2}{3}{4}"="+" to prepend a prefix before the label:

  • c = i or n
  • l = lang
  • v = link
Cookies help us deliver our services. By using our services, you agree to our use of cookies.