Template:Otherlink: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
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 | This template produces links to {{wiki3}} within {{wiki2}} and analogously to {{wiki2}} within {{wiki3}}. This can be usefull within mirrored content. The backbones are [[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. | ||
{{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>{{otherlink}}</pre>delivers: | <pre>{{otherlink}}</pre>delivers: | ||
Line 12: | Line 13: | ||
{{otherlink|Infrastructure}} | {{otherlink|Infrastructure}} | ||
<pre>{{otherlink|CO:railml|The {{rml}} root element}}</pre>delivers: | <pre>{{otherlink|CO:railml|The {{rml|link=no}} root element}}</pre>delivers: | ||
{{otherlink|RAILML:railML|The {{rml}} root element}} | {{otherlink|RAILML:railML|The {{rml|link=no}} root element}} | ||
{{interwiki}} | {{interwiki}} | ||
[[category:Template]] | [[category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:36, 7 June 2023
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 are 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:
{{otherlink|Infrastructure}}
delivers:
{{otherlink|CO:railml|The {{rml|link=no}} root element}}
delivers: