Template:Sprachen DE: Difference between revisions

From SignalWiki
Jump to navigation Jump to search
mNo edit summary
(Finally it works + added some documenation notes)
Line 1: Line 1:
<div valign=center align=right >
<div valign=center align=right >
<!-- {{#ifeq: {{{DE}}} | {{PAGENAME}} | DEg | DEu{{#ifexist: {{{DE}}} | [[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}} | Diese Seite auf Deutsch]] | }} }}
{{#ifeq: | {{{DE}}} | {{PAGENAME}} | DEg | DEu{{#ifexist: {{{DE}}} | [[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}} | Diese Seite auf Deutsch]] | }} }}
{{#ifeq: | {{{EN}}} | {{PAGENAME}} | ENg | ENu{{#ifexist: {{{EN}}} | [[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}} | This page in English]] | }} }}
{{#ifeq: | {{{NL}}} | {{PAGENAME}} | NLg | NLu{{#ifexist: {{{NL}}} | [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Deze pagina in het Nederlands]] |}} }}
{{#ifeq: | {{{NL}}} | {{PAGENAME}} | testja | testno }}
{{PAGENAME}}
-->
<!-- The original working version
<!-- 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: {{{EN}}} | {{#ifeq: {{{EN}}} | {{PAGENAME}} | | [[File:flag_en-gb.png|20px|link={{{EN}}}]] }} | }} -->
<!--  {{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} | | [[File:flag_nl.png|20px|link={{{NL}}}]] }} | }}  -->
<!-- {{#ifeq: {{{DE}}} | {{PAGENAME}} | testja | no={{{DE}}} }} -->
<!-- {{#ifexist: {{{EN}}} | [[{{{EN}}} | English]] <nowiki>|</nowiki> | }} -->
<!-- {{#ifexist: {{{NL}}} | [[{{{NL}}} | Nederlands]] | }}
-->
-->
{{#ifexist: {{{DE}}} | {{#ifeq: {{{DE}}} | {{PAGENAME}} |&nbsp;| [[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}} | Deutsch]] }} |}}
{{#ifexist: {{{DE}}} | {{#ifeq: {{{DE}}} | {{PAGENAME}} |&nbsp;| [[File:flag_de.png|20px|link={{{DE}}}]] [[{{{DE}}} | Deutsch]] }} |}}
Line 21: Line 8:
{{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} |&nbsp;| [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Nederlands]]  }} |}}
{{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} |&nbsp;| [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Nederlands]]  }} |}}
</div>
</div>
<noinclude>
''Documentation notes'':
Call this template in the following format <nowiki>{{Sprachen_DE|DE=PageNameInGerman|EN=PageNameInEnglish|NL=PageNameInDutch}}</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= or NL= then the link for that language will not be shown either
</noinclude>

Revision as of 12:51, 17 March 2012


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

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= or NL= then the link for that language will not be shown either