Template:LocalizedLink: Difference between revisions From Online Manual

Jump to: navigation, search
(code from wikimedia http://strategy.wikimedia.org/wiki/Template:Localized_link)
(Undo revision 25590 by Illori (talk))
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!--
{{#if: {{{1|}}}
|<!--
-->[[{{{1}}}<!--                                              target page name (required)
-->[[{{{1}}}<!--                                              target page name (required)
   -->{{#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
   -->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<!--  and it is on a subpage
   -->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<!--  and it is on a subpage
     -->&nbsp;<small dir="ltr">(en)</small>}}<!-- then add "(en)"
     -->&nbsp;<small dir="ltr">(en)</small>}}<!-- then add "(en)"
-->}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>
-->}}
|{{#if: {{{anchor|}}}
  |{{#if:{{{text|}}}
    |[[#{{{anchor}}}|{{{text|}}}]]
    |[[#{{{anchor}}}]]}}
  |Invalid link
  }}
}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:34, 8 July 2014

Invalid link



Advertisement: