Template:C/display: Difference between revisions
Template page
More actions
m +parm |
mNo edit summary |
||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{#switch:+|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}={{#switch:{{{ | {{#switch: + | ||
|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} = {{#switch: {{{c|}}} | |||
Subtemplate to ''display'' a category name, with or without preceding by the namespace (as a part of the link) | |i|n = {{i18n/namespace|c|link={{{v|}}}|lang={{{l|}}}}}|l=category|Category}}: | ||
}}{{#switch: {{{2|}}} | |||
||+|-|X|x|B|b = {{{1|}}} | |||
</noinclude> | |#default = {{{2|}}} | ||
}}<noinclude>{{Documentation | |||
|1 = Template:C/doc | |||
|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> | |||