Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:C: Difference between revisions

Template page
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:}}}}<!-- namespace (not linked)
  | {{!}}{{{2|}}}
-->{{#switch:{{{link}}}|n|none={{{1|}}}<!--
  }}]]<!--  Category generation -->
-->|{{#switch:{{{3|}}}|-|+|=<!-- standard: commons
|#default = {{#switch: -
-->{{#ifexist:Category:{{PAGENAME:{{{1}}}}}|[[:Category:{{PAGENAME:{{{1}}}}}<!--
  |{{{2|}}}|{{{3|}}}|{{{4|}}} = {{#switch: +
      -->|{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]<!-- ex.
    |{{{2|}}}|{{{3|}}}|{{{4|}}} =
  -->|[[:Category:{{{1}}}|''{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}'']] }}<!-- nx
    |#default = Category:
 
    }}
  with B:
  }}<!--
-->|B=[[:Category:{{PAGENAME:{{{1}}}}}|&#91;&#x5B;{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}&#x5D;&#93;]]<!-- only standard: [[commons]]  
  -->{{#switch: {{{link|}}}
 
  |n|none = {{{2|{{{1|}}}}}}
  with X|x:
  |#default = {{#switch:{{{3|}}}
-->|X|x=<!--
    ||-|+ = <!-- standard: Commons -->{{#ifexist: Category:{{PAGENAME:{{{1|}}}}}
-->{{#ifexist:Category:{{PAGENAME:{{{1}}}}}|[[:Category:{{PAGENAME:{{{1}}}}}<!--
      | [[:Category:{{PAGENAME:{{{1|}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]<!-- ex -->
      -->|{{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 -->
-->|{{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME:{{{1|}}}}}}}>0|[[:Category:{{PAGENAME:{{{1}}}}}<!--
      }}
      -->|<span style="background-color:#CF9">{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span>]]<!-- nx+
    |B = [[:Category:{{PAGENAME:{{{1|}}}}}|&#91;&#91;{{C/display|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}&#93;&#93;]]<!-- only standard: [[commons]] -->
  -->|{{#ifeq:{{{3}}}|X|<span style="background-color:#FCC">{{C/display|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span><!-- nx- italic
    |X|x = {{#ifexist: Category:{{PAGENAME:{{{1}}}}}
  -->|&#91;[''Category'':<span style="color:red">{{C/display|{{{1}}}|{{{2|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span>]&#93;}}}}}}<!--
      | [[:Category:{{PAGENAME:{{{1}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]<!-- ex -->
 
      | {{#ifexpr: {{PAGESINCATEGORY:{{PAGENAME:{{{1|}}}}}}} > 0
  not commons: take it as it is
        | <span style="background:#CF9">[[:Category:{{PAGENAME:{{{1|}}}}}|{{C/display|{{PAGENAME:{{{1|}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]</span><!-- nx+ -->
-->|#default=[[:{{{3}}}:Category:{{PAGENAME:{{{1}}}}}<!--
        | {{#ifeq: {{{3|}}} | X
      -->{{!}}{{C/display|{{PAGENAME:{{{1}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}]]}}}}}}<noinclude>
          | <span style="background:#FCC">{{C/display|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span><!-- nx- italic -->
{{documentation}}
          | &#91;&#91;''Category'':<span style="color:red">{{C/display|{{{1|}}}|{{{2|}}}|l={{{lang|}}}|v={{{link|}}}|c={{{case|}}}}}</span>&#93;&#93;
</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>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.