Template:Interwiki: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Ferri Leberl (talk | contribs) No edit summary Tag: Reverted |
Ferri Leberl (talk | contribs) No edit summary Tag: Manual revert |
||
Line 8: | Line 8: | ||
Namensraum abklopfen: </noinclude>{{#ifeq:{{NAMESPACE}}|railTOPOMODEL® Wiki|{{#vardefine:fullpage2|RailML 2_Wiki:{{PAGENAME}}}}{{#vardefine:fullpage3|RailML3_Wiki:{{PAGENAME}}}}}}<!-- | Namensraum abklopfen: </noinclude>{{#ifeq:{{NAMESPACE}}|railTOPOMODEL® Wiki|{{#vardefine:fullpage2|RailML 2_Wiki:{{PAGENAME}}}}{{#vardefine:fullpage3|RailML3_Wiki:{{PAGENAME}}}}}}<!-- | ||
#var definieren -->{{#vardefine:interwiki2{{current}}|{{{1|{{#var:fullpage2}}}}}}}<!-- | #var definieren -->{{#vardefine:interwiki2{{current}}|{{{1|{{#var:fullpage2}}}}}}}<!-- | ||
wiki3 detto -->{{#vardefine:interwiki3{{current}}|{{{1|{{#var:fullpage3}} | wiki3 detto -->{{#vardefine:interwiki3{{current}}|{{{1|{{#var:fullpage3}}}}}}}<!-- | ||
Ggf. wiki2-Link erzeugen -->{{#ifeq:{{{2}}}|3||[[railml2:{{#var:interwiki2{{current}}}}]]}}<noinclude> | Ggf. wiki2-Link erzeugen -->{{#ifeq:{{{2}}}|3||[[railml2:{{#var:interwiki2{{current}}}}]]}}<noinclude> | ||
Ggf. wiki3-Link </noinclude>{{#ifeq:{{{2}}}|2||[[railml3:{{#var:interwiki3{{current}}}}]]}}<noinclude> | Ggf. wiki3-Link </noinclude>{{#ifeq:{{{2}}}|2||[[railml3:{{#var:interwiki3{{current}}}}]]}}<noinclude> | ||
Erstes #if schließen </noinclude>}}</includeonly | 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}}. |
Revision as of 16:43, 5 June 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:Interwiki in the railML® 2 wiki.and Template:Interwiki in the railML® 3 wiki.