Difference between revisions of "Template:C"

From ERPC Wiki Archive
Jump to: navigation, search
m (1 revision imported)
m (expansion)
Line 1: Line 1:
[[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude>
+
{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}=|Category:}}}}<!--  namespace (not linked)
{{Documentation}}
+
-->{{#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}}}|&#91;&#x5B;{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}&#x5D;&#93;]]<!-- 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><!--
 +
  -->|&#91;[''Category'':{{#ifeq:{{{3}}}|x|<span style="color:red">}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}{{#ifeq:{{{3|}}}|x|</span>}}]&#93;}}}}}}<!--
 +
  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><!--
 +
  -->|&#91;[''Category'':{{#ifeq:{{{3}}}|x|<span style="color:red">}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}{{#ifeq:{{{3|}}}|x|</span>}}]&#93;}}}}}}}}}}}}}}<!--
 +
 
 +
  not commons: take it as it is
 +
-->|#default=[[:{{{3}}}:Category:{{{1}}}{{!}}{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}]]}}}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 06:41, 2 October 2018

[[:Category:{{{1}}}|{{{1}}}]] Lua error in Module:Fallback at line 134: attempt to index a nil value.