Template:Wiki2: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Ferri Leberl (talk | contribs) (Created page with "<includeonly>{{#if:{{{2|}}}|[[:wiki2:{{{1|#}}}|{{{2}}}]]|[[:wiki2:{{{1|#}}}|{{{1|The {{rml}} 2 wiki}}}]]}}</includeonly><noinclude> ==Usage== This template fixes links to the {{wiki2|#|{{rml}} 2 wiki}} for mirrored pages. Within the {{wiki3|#|{{rml}} 3 wiki}} it produces an interwiki link. Within the {{rml}} 2 wiki it links internally. Analogously, there exists Template:Wiki3. ===Arguments=== *'''1''' (optionally): The link target. The default value is '''#''', which...") |
Ferri Leberl (talk | contribs) |
||
Line 5: | Line 5: | ||
*'''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. | ||
{{note|Links within <nowiki>{{{2}}}</nowiki> will cause errors!<br>E.g.: use <nowiki>{{rml|link=no}}</nowiki> instead of <nowiki>{{rml}}</nowiki>|error}} | |||
==Examples== | ==Examples== | ||
<pre>{{wiki2}}</pre>delivers: | <pre>{{wiki2}}</pre>delivers: |
Latest revision as of 14:01, 15 April 2024
Usage
This template fixes links to the railML® 2 wiki for mirrored pages. Within the railML® 3 wiki it produces an interwiki link. Within the railML® 2 wiki it links internally. Analogously, there exists 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
{{wiki2}}
delivers:
{{wiki2|Infrastructure}}
delivers:
{{wiki2|CO:railml|The {{rml}} root element}}
delivers: