Difference between revisions of "Template:LocalizedLink"

From Online Manual

Jump to: navigation, search
(code from wikimedia http://strategy.wikimedia.org/wiki/Template:Localized_link)
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)
Line 8: Line 9:
 
   -->{{#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|}}}
 +
  |[[#{{{anchor}}}]]
 +
  |Invalid link
 +
  }}
 +
}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>

Revision as of 17:39, 3 August 2011

Invalid link