Template:Interwiki: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
#var definieren -->{{#vardefine:interwiki{{current}}|{{{1|{{#var:fullpage}}}}}}}<!-- | #var definieren -->{{#vardefine:interwiki{{current}}|{{{1|{{#var:fullpage}}}}}}}<!-- | ||
Link erzeugen -->[[railml{{#sub:{{otherwiki}}|-1}}:{{#var:interwiki{{current}}}}]]<noinclude> | Link erzeugen -->[[railml{{#sub:{{otherwiki}}|-1}}:{{#var:interwiki{{current}}}}]]<noinclude> | ||
Ggf. RTM-Link</ | Ggf. RTM-Link </noinclude>{{#ifeq:{{{2}}}|all|[[rtm:{{#var:interwiki{{current}}}}]]}}<noinclude> | ||
Erstes #if schließen </noinclude>}}</includeonly><noinclude> | Erstes #if schließen </noinclude>}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Line 22: | Line 22: | ||
{{interwiki|1=Template:Interwiki|2=all}} | {{interwiki|1=Template:Interwiki|2=all}} | ||
</noinclude> | </noinclude> | ||
Revision as of 12:38, 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: all for wiki2 & rtm wiki. By default, only wiki2 will be linked.
Example
This page is, via {{interwiki}} in the source code, linked with Template:Interwiki in The railML® 2 wiki.