Template:Template link general: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(small fix (link to current page if no first parameter is passed))
(usage without first parameter wasn't possible on pages in the template namespace (+simplification))
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
Templates tlc, tld, tlf have the following wrapping everything; do we need it?
<span style="white-space:nowrap;">
--><!--


-- begin tt style if tt=yes or code=yes given
-- begin tt style if tt=yes or code=yes given
Line 18: Line 21:
|{{FULLPAGENAME:{{{1}}}}} <!-- if yes: link to article ns or assume other valid link, e.g. Interwikilink -->
|{{FULLPAGENAME:{{{1}}}}} <!-- if yes: link to article ns or assume other valid link, e.g. Interwikilink -->
|{{#switch:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}
|{{#switch:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}
|{{ns:0}}|{{ns:10}}={{ns:10}}:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}} <!-- No ns given: we want to link to template ns -->
|{{ns:0}}={{ns:10}}:{{PAGENAME:{{{1|{{PAGENAME}}}}}}} <!-- No ns given: we want to link to template ns -->
|#default={{FULLPAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!--
|#default={{FULLPAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!--
-->}}<!--
-->}}<!--

Revision as of 18:25, May 19, 2013

Template documentation (for the above template, sometimes hidden or invisible)