Template:Sprachen DE: Difference between revisions

From SignalWiki
Jump to navigation Jump to search
(Added German as well, as the logic takes care of what is shown or not.So we can have just one template. nice feature)
(added french)
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div align=right>
<div valign=center align=right >
{{#ifexist: {{{DE}}}|[[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}}|Diese Seite auf Deutsch]]|}}
<!-- The original working version
{{#ifexist: {{{EN}}}|[[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}}|This page in English]]|}}
{{#ifexist: {{{EN}}} | [[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}} | This page in English]] | }}
{{#ifexist: {{{NL}}}|[[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}}|Deze pagina in het Nederlands]]|}}
{{#ifexist: {{{NL}}} | [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Deze pagina in het Nederlands]] | }}
-->
{{#ifexist: {{{DE}}} | {{#ifeq: {{{DE}}} | {{PAGENAME}} |&nbsp;| [[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}} | Deutsch]] }} |}}
{{#ifexist: {{{EN}}} | {{#ifeq: {{{EN}}} | {{PAGENAME}} |&nbsp;| [[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}} | English]] }} |}}
{{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} |&nbsp;| [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Nederlands]] }} |}}
{{#ifexist: {{{FR}}} | {{#ifeq: {{{FR}}} | {{PAGENAME}} |&nbsp;| [[File:flag_fr.png|20px|link={{{FR}}}]] [[{{{FR}}} | Français]]  }} |}}
</div>
</div>
<noinclude>
''Documentation notes'':
Call this template in the following format <nowiki>{{Sprachen_DE|DE=PageNameInGerman|EN=PageNameInEnglish|NL=PageNameInDutch|FR=PageNameInFrench}}</nowiki>
Notes
*If you enter a non-existing page name (the Wiki pagename) then a link will not be shown
*If the template is called from the page, that is actually one of the pages defined in EN=, DE= , NL= or FR= then the link for that language will not be shown either
</noinclude>

Latest revision as of 18:57, 28 December 2013



Documentation notes: Call this template in the following format {{Sprachen_DE|DE=PageNameInGerman|EN=PageNameInEnglish|NL=PageNameInDutch|FR=PageNameInFrench}}

Notes

  • If you enter a non-existing page name (the Wiki pagename) then a link will not be shown
  • If the template is called from the page, that is actually one of the pages defined in EN=, DE= , NL= or FR= then the link for that language will not be shown either