Template:C: Difference between revisions
Jump to navigation
Jump to search
wp>Ahecht (rm #titleparts) |
m (expansion) |
||
Line 1: | Line 1: | ||
[[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude> | {{#switch:G|{{{2}}}|{{{3}}}|{{{4}}}=[[Category:{{PAGENAME:{{{1}}}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<!-- Category generation | ||
{{ | -->|{{#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> |
Revision as of 05:29, 30 April 2019
[[:Category:{{{1}}}|{{{1}}}]]
This template is used as a shortcut to articles in the Conservapedia namespace.
Usage
It is used as such: {{subst:C|Best of Conservapedia}}
produces Best of Conservapedia.
There is an optional second parameter that allows you to change the displayed name. For example, {{subst:C|Best of Conservapedia|Andy & the Diddlers: Greatest Hits}}
becomes Andy & the Diddlers: Greatest Hits.
There is also an optional third parameter that allows you to change the color of the displayed link (should you wish to display it on a colored background). For example, {{subst:C|Best of Conservapedia|Andy & the Diddlers: Greatest Hits|yellow}}
produces Andy & the Diddlers: Greatest Hits.