Template:Otherwiki: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
(Created page with "wiki2<noinclude>{{interwiki}}</noinclude>") |
No edit summary |
||
Line 1: | Line 1: | ||
wiki2<noinclude>{{interwiki}}</noinclude> | <includeonly>{{#vardefine:wiki|{{fullurl:{{PAGENAME}}}}}}<!-- | ||
-->{{#vardefine:wiki|{{#explode:{{#var:wiki}}|/|2}}}}<!-- | |||
-->{{#vardefine:wiki|{{#explode:{{#var:wiki}}|.|0}}}}<!-- | |||
-->{{#switch:{{#var:wiki}} | |||
|wiki2=wiki3 | |||
|wiki3=wiki2 | |||
|#default={{fixme}} – URL-Parsing in [[Template:Otherwiki]] fehlgeschlagen!}}</includeonly><noinclude> | |||
== Usage == | |||
Returns ''wiki3'' in the {{rml|2}} wiki and ''wiki2'' in the {{rml|3}} wiki. This can be usefull in other templates. | |||
It is the counterpart to [[Template:Thiswiki]]. | |||
== Arguments == | |||
''None'' | |||
== Example == | |||
<pre>{{otherwiki}}</pre> | |||
returns: | |||
{{otherwiki}} | |||
{{interwiki}} | |||
</noinclude> |
Latest revision as of 14:51, 26 November 2023
Usage
Returns wiki3 in the railML® 2 wiki and wiki2 in the railML® 3 wiki. This can be usefull in other templates.
It is the counterpart to Template:Thiswiki.
Arguments
None
Example
{{otherwiki}}
returns:
wiki2