Template:Tlg: Difference between revisions

Jump to navigation Jump to search
238 bytes added ,  25 December 2013
update brace inclusion in the link, per Template:Tn
w:en>Sladen
(partial rv, use '…' instead. Undid revision 558983192 by Redrose64 (talk))
w:en>Liflon
(update brace inclusion in the link, per Template:Tn)
Line 14: Line 14:
-->{{#if:{{{nolink|}}}
-->{{#if:{{{nolink|}}}
       |<!-- nolink=yes -->
       |<!-- nolink=yes -->
       |{{!((}}:<!-- opening brackets of link
       |{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!-- first opening brace before link if braceinside=yes
    -->{{!((}}:<!-- opening brackets of link
     -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
     -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
         |:
         |:
Line 26: Line 27:


-- create link text
-- create link text
   -- opening brace if braceinside=yes
   -- second opening brace if braceinside=yes
-->{{#if:{{{braceinside|}}}|<nowiki>{{</nowiki>}}<!--
-->{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!--
   -- surface text of link
   -- surface text of link
-->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!--
-->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!--
   -- closing brace if braceinside=yes
   -- first closing brace if braceinside=yes
-->{{#if:{{{braceinside|}}}|<nowiki>}}</nowiki>}}<!--
-->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!--
   -- end of link, unless nolink=yes
   -- end of link, unless nolink=yes
-->{{#if:{{{nolink|}}}||]]}}<!--
-->{{#if:{{{nolink|}}}||]]<!--
  -- second closing brace after link if braceinside=yes
-->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!--
-->}}<!--


   -- end boldface if bold=yes
   -- end boldface if bold=yes
Anonymous user

Navigation menu