Template:Otherlink: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|{{wiki3|{{{1}}}|{{{2|{{{1}}}}}}}}|{{wiki3|{{{1}}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{2|}}}|{{wiki3|{{{1}}}|{{{2}}}}}|{{wiki3|{{{1}}}}}</includeonly><noinclude>
==Usage==
==Usage==
This template fixes links to {{wiki3}} for mirrored pages. Within {{wiki2}} it produces an interwiki link. Within the {{wiki3}} it links internally. Analogously, there exists [[Template:Wiki2]].
This template fixes links to {{wiki3}} for mirrored pages. Within {{wiki2}} it produces an interwiki link. Within the {{wiki3}} it links internally. Analogously, there exists [[Template:Wiki2]].

Revision as of 14:59, 16 April 2020

Usage

This template fixes links to The railML® 3 wiki for mirrored pages. Within The railML® 2 wiki it produces an interwiki link. Within the The railML® 3 wiki it links internally. Analogously, there exists Template:Wiki2.

Arguments

  • 1 (optionally): The link target. The default value is #, which will link to the respective main page.
  • 2 (optionally): The link text, if different to the target.

Examples

{{otherlink}}

delivers:

{{#if:|[[:wiki3:{{{1}}}|{{{2}}}]]|[[:wiki3:{{{1}}}|{{{1}}}]]

{{otherlink|Infrastructure}}

delivers:

{{#if:|{{{2}}}|Infrastructure

{{otherlink|CO:railml|The {{rml}} root element}}

delivers:

{{#if:The railML® root element|The railML® root element|RAILML:railML