Difference between revisions of "Template:LocalizedLink"

From Online Manual

Jump to: navigation, search
(Sorry for bring this back, but I can't live w/o some indication as to whether the link destination has been translated or not. Hopefully, it's less conspicuous now.)
(Undo revision 25590 by Illori (talk))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#if: {{{1|}}}
 
{{#if: {{{1|}}}
 
|<!--
 
|<!--
-->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}||<!--      if subpage does not exist
 
  -->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<!--  and it is on a subpage
 
    --><span style="border-bottom:red thin dashed">}}<!-- then add red underlining
 
-->}}<!--
 
 
-->[[{{{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 12: Line 8:
 
-->{{#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
     --></span>}}<!-- then add red underlining
+
     -->&nbsp;<small dir="ltr">(en)</small>}}<!-- then add "(en)"
 
-->}}
 
-->}}
 
|{{#if: {{{anchor|}}}
 
|{{#if: {{{anchor|}}}

Latest revision as of 11:34, 8 July 2014

Invalid link