Vorlage: LanguageSwitch: Unterschied zwischen den Versionen

Aus Semantic CorA
Wechseln zu: Navigation, Suche
(Created page with "<noinclude> Link between the current page and another language version of the same page: <nowiki>{{LanguageSwitch}}</nowiki> Link to another page of the same language as the...")
 
 
Zeile 13: Zeile 13:
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#ifeq:{{{1|}}}||<p style="vertical-align:top; text-align:right">{{#ifeq:{{#titleparts:{{PAGENAME}}|2|2}}|de|[[{{#titleparts:{{PAGENAME}}|1|1}}|English Version]]|[[{{PAGENAME}}/de|German Version]]}}</p>|{{#ifeq:{{#titleparts:{{PAGENAME}}|2|2}}|de|[[{{{1}}}/de|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}}}</includeonly>
+
<includeonly>{{#ifeq:{{{1|}}}||<p style="vertical-align:top; text-align:right">{{#ifeq:{{#titleparts:{{PAGENAME}}|2|2}}|de|[[{{#titleparts:{{PAGENAME}}|1|1}}|English Version]]|[[{{PAGENAME}}/de|Deutsche Version]]}}</p>|{{#ifeq:{{#titleparts:{{PAGENAME}}|2|2}}|de|[[{{{1}}}/de|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}}}</includeonly>

Aktuelle Version vom 12. Juni 2014, 12:28 Uhr

Link between the current page and another language version of the same page:

{{LanguageSwitch}}

Link to another page of the same language as the current page:

{{LanguageSwitch|other page|display text}}

display text is optional. If not provided, other page is used as link text.

If the name of a page ends with /de, then it is assumed to be written in German. Otherwise it is assumed to be written in English.


This template requires the extension ParserFunctions to be installed since the template makes use of the parser function #titleparts.