Template:Interwiki: Difference between revisions

From railTOPOMODEL® Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Created page with "<noinclude>This is a dummy template that exists for convenience reasons parallelly to https://wiki2.railml.org/wiki/Template:Interwiki and https://wiki3.railml.org/wiki/Templa...")
 
No edit summary
Line 1: Line 1:
<noinclude>This is a dummy template that exists for convenience reasons parallelly to https://wiki2.railml.org/wiki/Template:Interwiki and https://wiki3.railml.org/wiki/Template:Interwiki<nowiki />.</noinclude>
<includeonly><!--
Abklopfen auf Namensraum railML 2 Wiki vs railML 3 Wiki-->{{#vardefine:fullpage|{{#ifeq:{{NAMESPACE}}|RailML3 Wiki|RailML 2_Wiki:{{PAGENAME}}|{{FULLPAGENAME}}}}}}<noinclude>
Nichts tun, falls template:mirror oberhalb
                          </noinclude>{{#if:{{#var:mirror|}}||<!--
ANDERNFALLS:
Test, ob interwiki doppelt vorkommt -->{{#if:{{#var:interwiki{{current}}|}}|{{note|{{fixme}}: #var:interwiki{{current}} ist bereits definiert!}}}}<!--
Test, ob controlInterwiki existiert -->{{#if:{{#var:controlInterwiki|}}|{{note|{{fixme}}: [[Template:Interwiki]] darf nicht nach {{wiki2|Template:ElementDocu}} bzw. {{wiki3|Template:Robot}} aufgerufen werden!}}}}<!--
#var definieren                    -->{{#vardefine:interwiki{{current}}|{{{1|{{#var:fullpage}}}}}}}<!--
Ggf. wiki2-Link erzeugen            -->{{#ifeq:{{{2}}}|3||[[wiki2:{{#var:interwiki{{current}}}}]]}}<noinclude>
Ggf. wiki3-Link              </noinclude>{{#ifeq:{{{2}}}|2||[[wiki3:{{#var:interwiki{{current}}}}]]}}<noinclude>
Erstes #if schließen      </noinclude>}}</includeonly><noinclude>
==Usage==
Template for convenient interwiki connections between {{rml|2}} and {{rml|3}}. It links to the ''other'' wiki. The default argument is {<nowiki />{FULLPAGENAME}} (it links to the same lemma in the other wiki). Moreover it defines #var:interwiki for interpretation in {{wiki2|Template:ElementDocu}} resp. {{wiki3|Template:Robot}}.
===Arguments===
* 1: The target lemma in the other wiki; default: {<nowiki />{FULLPAGENAME}}
* 2: ''2'' for wiki2 only; 3 for wiki3 only. By default, both {{rml}} wikis will be linked. will be linked.
 
==Example==
This page is, via {<nowiki />{interwiki}} [{{fullurl:{{FULLPAGENAME}}|action=edit}} in the source code], linked with {{otherlink|Template:Interwiki}} in {{otherlink}}.
[[category:template]]
<hr>
{{interwiki|1=Template:Interwiki|2=all}}
</noinclude>

Revision as of 13:49, 15 April 2024

Usage

Template for convenient interwiki connections between railML® 2 and railML® 3. It links to the other wiki. The default argument is {{FULLPAGENAME}} (it links to the same lemma in the other wiki). Moreover it defines #var:interwiki for interpretation in Template:ElementDocu resp. Template:Robot.

Arguments

  • 1: The target lemma in the other wiki; default: {{FULLPAGENAME}}
  • 2: 2 for wiki2 only; 3 for wiki3 only. By default, both railML® wikis will be linked. will be linked.

Example

This page is, via {{interwiki}} in the source code, linked with Template:Otherlink in Template:Otherlink.


wiki2:Template:Interwikiwiki3:Template:Interwiki