Template:Wiki3: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(new template) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|[[:wiki3:{{{1|#}}}|{{{2}}}]]|[[:wiki3:{{{1|#}}}|{{{1|The {{rml}} | <includeonly>{{#if:{{{2|}}}|[[:wiki3:{{{1|#}}}|{{{2}}}]]|[[:wiki3:{{{1|#}}}|{{{1|The {{rml|3|link=no}} 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 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]]. | ||
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>{{wiki3}}</pre>delivers: | <pre>{{wiki3}}</pre>delivers: | ||
Line 12: | Line 13: | ||
{{wiki3|Infrastructure}} | {{wiki3|Infrastructure}} | ||
<pre>{{wiki3|CO:railml|The {{rml}} root element}}</pre>delivers: | <pre>{{wiki3|CO:railml|The {{rml|link=no}} root element}}</pre>delivers: | ||
{{wiki3|RAILML:railML|The {{rml}} root element}} | {{wiki3|RAILML:railML|The {{rml|link=no}} root element}} | ||
{{interwiki}} | {{interwiki}} | ||
[[category:Template]] | [[category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:41, 7 June 2023
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:
{{wiki3|Infrastructure}}
delivers:
{{wiki3|CO:railml|The {{rml|link=no}} root element}}
delivers: