Template:C/display: Difference between revisions
Template page
More actions
mNo edit summary |
mNo edit summary |
||
| (16 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{# | {{#switch: + | ||
|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} = {{#switch: {{{c|}}} | |||
|i|n = {{i18n/namespace|c|link={{{v|}}}|lang={{{l|}}}}}|l=category|Category}}: | |||
}}{{#switch: {{{2|}}} | |||
||+|-|X|x|B|b = {{{1|}}} | |||
|#default = {{{2|}}} | |||
{{#switch:{{{ | }}<noinclude>{{Documentation | ||
|={{ | |1 = Template:C/doc | ||
|-={{{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 = (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 | |||
}}</noinclude> | |||
Latest revision as of 18:04, 20 November 2024
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