Template:Otherlink: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly>{{wiki3|{{{1}}}|{{{2|{{{1}}}}}}}}</includeonly><noinclude> ==Usage== This template fixes links to {{wiki3}} for mirrored pages. Within {{wiki2}} it produces an in...")
 
No edit summary
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{wiki3|{{{1}}}|{{{2|{{{1}}}}}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{2|}}}|{{wiki3|{{{1|#}}}|{{{2}}}}}|{{wiki3|{{{1|#}}}|{{{1|The {{rml}} 3 wiki}}}}}}}</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 produces links to {{wiki3}} within {{wiki2}} and analogously to {{wiki2}} within {{wiki3}}. This can be usefull within mirrored content. The backbones ar [[Template:Wiki2]] and [[Template:Wiki3]].
===Arguments===
===Arguments===
*'''1''' (optionally): The link target. The default value is '''#''', which will link to the respective main page.
*'''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.
*'''2''' (optionally): The link text, if different to the target.
==Examples==
==Examples==
<pre>{{wiki3}}</pre>delivers:
<pre>{{otherlink}}</pre>delivers:


{{wiki3}}
{{otherlink}}
<pre>{{wiki3|Infrastructure}}</pre>delivers:
<pre>{{otherlink|Infrastructure}}</pre>delivers:


{{wiki3|Infrastructure}}
{{otherlink|Infrastructure}}
<pre>{{wiki3|CO:railml|The {{rml}} root element}}</pre>delivers:
<pre>{{otherlink|CO:railml|The {{rml}} root element}}</pre>delivers:


{{wiki3|RAILML:railML|The {{rml}} root element}}
{{otherlink|RAILML:railML|The {{rml}} root element}}


{{interwiki}}
{{interwiki}}
[[category:Template]]
[[category:Template]]
</noinclude>
</noinclude>

Revision as of 16:15, 16 April 2020

Usage

This template produces links to The railML® 3 wiki within The railML® 2 wiki and analogously to The railML® 2 wiki within The railML® 3 wiki. This can be usefull within mirrored content. The backbones ar Template:Wiki2 and Template:Wiki3.

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:

The railML® 3 wiki

{{otherlink|Infrastructure}}

delivers:

Infrastructure

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

delivers:

The railML® root element