Difference between revisions of "Template:LocalizedLink"

From Online Manual

Jump to: navigation, search
(Undo revision 25590 by Illori (talk))
 
(16 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
   -->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}<!-- current subpage (if it exists)
 
   -->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}<!-- current subpage (if it exists)
 
   -->#{{{anchor|}}}<!--                                        optional anchor (if specified)
 
   -->#{{{anchor|}}}<!--                                        optional anchor (if specified)
-->|{{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}<!--                      visible translation or pagename
+
-->|{{#if:{{{text|}}}|{{{text|}}}|{{{1}}}}}<!--                      visible translation or pagename
 
-->]]<!--
 
-->]]<!--
 
-->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}||<!--      if subpage does not exist
 
-->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}||<!--      if subpage does not exist
Line 11: Line 11:
 
-->}}
 
-->}}
 
|{{#if: {{{anchor|}}}
 
|{{#if: {{{anchor|}}}
   |[[#{{{anchor}}}]]
+
   |{{#if:{{{text|}}}
 +
    |[[#{{{anchor}}}|{{{text|}}}]]
 +
    |[[#{{{anchor}}}]]}}
 
   |Invalid link
 
   |Invalid link
 
   }}
 
   }}
 
}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>
 
}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 11:34, 8 July 2014

Invalid link