Template:Interwiki: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
Test, ob interwiki doppelt vorkommt -->{{#if:{{#var:interwiki{{current}}}}|{{note|{{fixme}}: #var:interwiki{{current}} ist bereits definiert!}}}}<!-- | Abklopfen auf Namensraum {{rml|2}}-Wiki vs {{rml3}}-Wiki-->{{#vardefine:fullpage|{{#ifeq:{{NAMESPACE}}|railML 2 Wiki|RailML3_Wiki:{{PAGENAME}}|{{FULLPAGENAME}}}}}}<noinclude> | ||
Test, ob controlInterwiki existiert -->{{#if:{{#var:controlInterwiki|{{note|{{fixme}}: [[Template:Interwiki]] darf nicht nach {{wiki2|Template:ElementDocu}} bzw. {{wiki3|Template:Robot}} aufgerufen werden!}}}} | Nichts tun, falls template:mirror oberhalb | ||
#var definieren -->{{#vardefine:interwiki{{current}}|{{{1|{{ | </noinclude>{{#if:{{#var:mirror}}||<!-- | ||
Link erzeugen -->[[railml{{#sub:{{otherwiki}}|-1}}:{{#var:interwiki{{current}}}}]]</includeonly><noinclude> | 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}}}}}}}<!-- | |||
Link erzeugen -->[[railml{{#sub:{{otherwiki}}|-1}}:{{#var:interwiki{{current}}}}]]<noinclude> | |||
Ggf. RTM-Link </noinclude>{{#ifeq:{{{2}}}|all|[[wikirtm:{{#var:interwiki{{current}}}}]]}}<noinclude> | |||
Erstes #if schließen </noinclude>}}</includeonly><noinclude> | |||
==Usage== | ==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}}. | 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=== | ===Arguments=== | ||
* 1: The target lemma in the other wiki; default: {<nowiki />{FULLPAGENAME}} | * 1: The target lemma in the other wiki; default: {<nowiki />{FULLPAGENAME}} | ||
* 2: ''all'' for wiki2 & rtm wiki. By default, only wiki3 will be linked. | |||
==Example== | ==Example== | ||
This page is, via {<nowiki />{interwiki}} [{{fullurl:{{FULLPAGENAME}}|action=edit}} in the source code], linked with {{otherlink|Template:Interwiki}} in {{otherlink}}. | This page is, via {<nowiki />{interwiki}} [{{fullurl:{{FULLPAGENAME}}|action=edit}} in the source code], linked with {{otherlink|Template:Interwiki}} in {{otherlink}}. | ||
[[category:template]] | [[category:template]] | ||
{{interwiki}} | {{interwiki|2=all}} | ||
</noinclude> | </noinclude> |
Latest revision as of 17:18, 30 May 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: all for wiki2 & rtm wiki. By default, only wiki3 will be linked.
Example
This page is, via {{interwiki}} in the source code, linked with Template:Interwiki in The railML® 3 wiki.