Template:Wiki3: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Created page with "<includeonly>{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}</includeonly>")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}</includeonly>
<includeonly>{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1|#}}}|{{{1|The {{rml}} 3 wiki}}}]]}}</includeonly><noinclude>
==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]].
===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==
<pre>{{wiki3}}</pre>delivers:
 
{{wiki3}}
<pre>{{wiki3|Infrastructure}}</pre>delivers:
 
{{wiki3|Infrastructure}}
<pre>{{wiki3|CO:railml|The {{rml}} root element}}</pre>delivers:
 
{{wiki3|RAILML:railML|The {{rml}} root element}}
 
{{interwiki}}
[[category:Template]]
</noinclude>

Latest revision as of 14:57, 24 January 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

{{wiki3}}

delivers:

The railML® 3 wiki

{{wiki3|Infrastructure}}

delivers:

Infrastructure

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

delivers:

The railML® root element