Template:Tlg: Difference between revisions

Jump to navigation Jump to search
53 bytes removed ,  19 May 2013
small fix (link to current page if no first parameter is passed)
w:en>Patrick87
(Update linking logic so "anypage" is not needed anymore; remove unused and undocumented LANG and SISTER parameters)
w:en>Patrick87
(small fix (link to current page if no first parameter is passed))
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 16: Line 13:
-->{{#if:{{{nolink|}}}
-->{{#if:{{{nolink|}}}
       |<!-- nolink=yes -->
       |<!-- nolink=yes -->
       |{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
       |{{!(}}{{!(}}:<!-- opening brackets of link
    -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
         |:
         |:
         |{{!(}}{{!(}}:{{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}}}}}  
         |{{#switch:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}  
              |{{ns:0}}|{{ns:10}}={{ns:10}}:{{PAGENAME:{{{1}}}}} <!-- No ns given: we want to link to template ns -->
            |{{ns:0}}|{{ns:10}}={{ns:10}}:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}} <!-- No ns given: we want to link to template ns -->
              |#default={{FULLPAGENAME:{{{1}}}}}<!--
            |#default={{FULLPAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!--
        -->}}<!--
      -->}}<!--
     -->}}{{!}}<!-- <<--- pipe character in link
     -->}}{{!}}<!-- <<--- pipe character in link
-->}}<!--
-->}}<!--
Anonymous user

Navigation menu