Template:LocalizedLink: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
(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.)
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 6: Line 10:
-->|{{#if:{{{text|}}}|{{{text|}}}|{{{1}}}}}<!--                      visible translation or pagename
-->|{{#if:{{{text|}}}|{{{text|}}}|{{{1}}}}}<!--                      visible translation or pagename
-->]]<!--
-->]]<!--
-->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|| }}
-->{{#ifexist:{{{1}}}/{{SUBPAGENAME}}||<!--      if subpage does not exist
  -->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<!--  and it is on a subpage
    --></span>}}<!-- then add red underlining
-->}}
|{{#if: {{{anchor|}}}
|{{#if: {{{anchor|}}}
   |{{#if:{{{text|}}}
   |{{#if:{{{text|}}}
Line 13: Line 20:
   |Invalid link
   |Invalid link
   }}
   }}
}}
}}<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Localisation templates|{{PAGENAME}}]]</noinclude>

Revision as of 00:45, 11 December 2013

Invalid link



Advertisement: