Template:C: Difference between revisions
Template page
More actions
m new para |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{#switch:G|{{{2}}}|{{{3}}}|{{{4}}}=[[Category:{{PAGENAME:{{{1}}}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<!-- Category generation | {{#switch: G | ||
|{{{2|}}}|{{{3|}}}|{{{4|}}} = [[Category:{{PAGENAME:{{{1}}}}}{{#if:{{{2|}}} | |||
-->|{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}=|Category:}}}}<!-- | | {{!}}{{{2|}}} | ||
-->{{#switch:{{{link}}}|n|none={{{1|}}} | }}]]<!-- Category generation --> | ||
|#default = {{#switch: - | |||
|{{{2|}}}|{{{3|}}}|{{{4|}}} = {{#switch: + | |||
|{{{2|}}}|{{{3|}}}|{{{4|}}} = | |||
|#default = Category: | |||
}} | |||
}}<!-- | |||
-->|B=[[:Category:{{PAGENAME:{{{1}}}}}|[&# | -->{{#switch: {{{link|}}} | ||
|n|none = {{{2|{{{1|}}}}}} | |||
|#default = {{#switch:{{{3|}}} | |||
-->|X|x= | ||-|+ = <!-- standard: Commons -->{{#ifexist: Category:{{PAGENAME:{{{1|}}}}} | ||
| [[:Category:{{PAGENAME:{{{1|}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]<!-- ex --> | |||
| [[:Category:{{{1|}}}|<em>{{C/display|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</em>]]<!-- nx --> | |||
}} | |||
|B = [[:Category:{{PAGENAME:{{{1|}}}}}|[[{{C/display|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]]]<!-- only standard: [[commons]] --> | |||
|X|x = {{#ifexist: Category:{{PAGENAME:{{{1}}}}} | |||
| [[:Category:{{PAGENAME:{{{1}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]<!-- ex --> | |||
| {{#ifexpr: {{PAGESINCATEGORY:{{PAGENAME:{{{1|}}}}}}} > 0 | |||
| <span style="background:#CF9">[[:Category:{{PAGENAME:{{{1|}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]</span><!-- nx+ --> | |||
--> | | {{#ifeq: {{{3|}}} | X | ||
| <span style="background:#FCC">{{C/display|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span><!-- nx- italic --> | |||
{{ | | [[''Category'':<span style="color:red">{{C/display|{{{1|}}}|{{{2|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span>]] | ||
</noinclude> | }} | ||
}} | |||
}} | |||
|#default = <!-- not Commons: take it as it is -->[[:{{#if:{{{3|}}} | |||
| {{{3|}}}: | |||
}}Category:{{PAGENAME:{{{1|}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]] | |||
}} | |||
}} | |||
}}<noinclude>{{Documentation}}</noinclude> | |||