Difference between revisions of "Template:C"
From ERPC Wiki Archive
m (1 revision imported) |
m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude> | + | {{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}=|Category:}}}}<!-- namespace (not linked) |
− | {{ | + | -->{{#switch:{{{link}}}|n|none={{{1|}}}|<!-- |
+ | -->{{#switch:{{{3|}}}|-|+|={{#ifeq:{{PAGENAME:{{{1}}}}}|{{{1}}}|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- standard: commons | ||
+ | with namespace: | ||
+ | -->|{{#ifexist:Category:{{PAGENAME:{{{1}}}}}|[[:Category:{{PAGENAME:{{{1}}}}}|{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | {{#ifeq:{{NAMESPACENUMBER:{{{1}}}}}|10||[[Category:Commons:PagenameCategories]]}} | ||
+ | -->|[[:Category:{{{1}}}|''{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}'']] }}}}}}<!-- | ||
+ | with B: | ||
+ | -->|B=[[:Category:{{{1}}}|[[{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]]]<!-- only standard: [[commons]] | ||
+ | |||
+ | with X|x: | ||
+ | -->|X|x={{#ifeq:{{PAGENAME:{{{1}}}}}|{{{1}}}<!-- | ||
+ | -->|{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexpr:{{PAGESINCATEGORY:{{{1|}}}}}>0|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifeq:{{{3}}}|X|<span style="background-color:#FEDBCA">{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</span><!-- | ||
+ | -->|[[''Category'':{{#ifeq:{{{3}}}|x|<span style="color:red">}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}{{#ifeq:{{{3|}}}|x|</span>}}]]}}}}}}<!-- | ||
+ | with X|x and namespace | ||
+ | -->|{{#ifexist:Category:{{PAGENAME:{{{1}}}}}|[[:Category:{{PAGENAME:{{{1}}}}}|{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexpr:{{PAGESINCATEGORY:{{{1|}}}}}>0|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME:{{{1|}}}}}}}>0|[[:Category:{{PAGENAME:{{{1}}}}}|{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]<!-- | ||
+ | -->|{{#ifeq:{{{3}}}|X|<span style="background-color:#FEDBCA">{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</span><!-- | ||
+ | -->|[[''Category'':{{#ifeq:{{{3}}}|x|<span style="color:red">}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}{{#ifeq:{{{3|}}}|x|</span>}}]]}}}}}}}}}}}}}}<!-- | ||
+ | |||
+ | not commons: take it as it is | ||
+ | -->|#default=[[:{{{3}}}:Category:{{{1}}}{{!}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]}}}}<noinclude> | ||
+ | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 18:47, 14 October 2018
[[:Category:{{{1}}}|{{{1}}}]] Lua error in Module:Fallback at line 134: attempt to index a nil value.