Template:Sprachen DE: Difference between revisions
Jump to navigation
Jump to search
(Finally it works + added some documenation notes) |
(added french) |
||
| Line 7: | Line 7: | ||
{{#ifexist: {{{EN}}} | {{#ifeq: {{{EN}}} | {{PAGENAME}} | | [[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}} | English]] }} |}} | {{#ifexist: {{{EN}}} | {{#ifeq: {{{EN}}} | {{PAGENAME}} | | [[File:flag_en-gb.png|20px|link={{{EN}}}]] [[{{{EN}}} | English]] }} |}} | ||
{{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} | | [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Nederlands]] }} |}} | {{#ifexist: {{{NL}}} | {{#ifeq: {{{NL}}} | {{PAGENAME}} | | [[File:flag_nl.png|20px|link={{{NL}}}]] [[{{{NL}}} | Nederlands]] }} |}} | ||
{{#ifexist: {{{FR}}} | {{#ifeq: {{{FR}}} | {{PAGENAME}} | | [[File:flag_fr.png|20px|link={{{FR}}}]] [[{{{FR}}} | Français]] }} |}} | |||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
''Documentation notes'': | ''Documentation notes'': | ||
Call this template in the following format <nowiki>{{Sprachen_DE|DE=PageNameInGerman|EN=PageNameInEnglish|NL=PageNameInDutch}}</nowiki> | Call this template in the following format <nowiki>{{Sprachen_DE|DE=PageNameInGerman|EN=PageNameInEnglish|NL=PageNameInDutch|FR=PageNameInFrench}}</nowiki> | ||
Notes | Notes | ||
*If you enter a non-existing page name (the Wiki pagename) then a link will not be shown | *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 | *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> | </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