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
add pipetrick
m expansion
Line 1: Line 1:
[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>
{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]|{{#ifeq:{{{3|}}}|X|<span style="background-color:#FEDBCA">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span>|&#91;[''Category'':{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]&#93;}}}}<noinclude>


<hr/>
<hr/>
;usage
;usage
:Template will take a pipe trick as <code> <nowiki>{{{2}}}</nowiki> </code> and display that,
:Template will display <code> <nowiki>{{{2}}}</nowiki> </code>, or just the category name given as <code> <nowiki>{{{1}}}</nowiki> </code>.
 
:If the category {{{1}}} does not exist  no link will be generated;
;or just:the category name given as <code> <nowiki>{{{1}}}</nowiki> </code>
::<span style="background-color:#FEDBCA"><nowiki>{{{1}}}</nowiki></span> or <span style="background-color:#FEDBCA"><nowiki>{{{2}}}</nowiki></span> will get background color when {{{3}}} = X
::else  &#91;[''Category'':{{{1}}}]&#93; or &#91;[''Category'':{{{2}}}]&#93; is displayed.
<!--
<pre>
<pre>
code implemented as:
code implemented as:
Line 12: Line 14:


</pre>
</pre>
;example
*{{C|Internal link templates}}
*{{C|Internal link templates|}}
*{{C|Internal link templates|display}}
*{{C|not-existing-cat}}
*{{C|not-existing-cat|}}
*{{C|not-existing-cat|display}}
*{{C|not-existing-cat|3=X}}
*{{C|not-existing-cat|display|X}}
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Typing-aid templates|{{PAGENAME}}]]
[[Category:Typing-aid templates|{{PAGENAME}}]]
-->
</noinclude>
</noinclude>

Revision as of 20:41, 6 October 2011

[[Category:{{{1}}}]]


usage
Template will display {{{2}}} , or just the category name given as {{{1}}} .
If the category {{{1}}} does not exist no link will be generated;
{{{1}}} or {{{2}}} will get background color when {{{3}}} = X
else [[Category:{{{1}}}]] or [[Category:{{{2}}}]] is displayed.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.