Difference between revisions of "Template:LanguageButtons"
(fixed language links for namespaced pages (templates). Added language to include as an example) |
m (added actual language buttons, fixed wiki tag) |
||
| Line 1: | Line 1: | ||
<includeonly><div class="tabs">[{{fullurl:{{FULLPAGENAME}}|uselang=en}} EN][{{fullurl:{{FULLPAGENAME}}|uselang=nl}} NL][{{fullurl:{{FULLPAGENAME}}|uselang=de}} DE]</div></includeonly> | <includeonly><div class="tabs">[{{fullurl:{{FULLPAGENAME}}|uselang=en}} EN][{{fullurl:{{FULLPAGENAME}}|uselang=nl}} NL][{{fullurl:{{FULLPAGENAME}}|uselang=de}} DE]</div></includeonly> | ||
<noinclude> | <noinclude> | ||
| + | {{LanguageButtons}} | ||
<div class="lang" lang="en">Adds language links that allows switching a pages language. | <div class="lang" lang="en">Adds language links that allows switching a pages language. | ||
Use it in conjunction with <code>div</code>s that have the attributes <code>class="lang"</code> and <code>lang="2 CHARACTER LANGUAGE ID"</code> to toggle its visibility. | Use it in conjunction with <code>div</code>s that have the attributes <code>class="lang"</code> and <code>lang="2 CHARACTER LANGUAGE ID"</code> to toggle its visibility. | ||
| Line 29: | Line 30: | ||
Gebruik: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code>[[Category:Workaround templates|{{PAGENAME}}]] | Gebruik: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code>[[Category:Workaround templates|{{PAGENAME}}]] | ||
</div> | </div> | ||
| − | <noinclude> | + | </noinclude> |
Revision as of 09:29, 28 March 2018
Use it in conjunction with divs that have the attributes class="lang" and lang="2 CHARACTER LANGUAGE ID" to toggle its visibility.
NOTE: All the language divs have to be added in which the locale text is displayed at all times, so use with caution.
Usage: {{LanguageButtons}}
Gebruik samen met div's welke de attributen class="lang" en lang="2 KARAKTER TAAL-ID" hebben om hun zichtbaarheid te schakelen.
NOOT: Alle talen dienen toegevoegd te worden als div zodat de lokale tekst te allen tijde zichtbaar is, dus voorzichtigheid is geboden.
Gebruik: {{LanguageButtons}}
Verwenden Sie es in Verbindung mit div</ code>'s, die die Attribute class="lang" und lang="2 CHARAKTERSPRACHE ID" haben, um die Sichtbarkeit zu ändern.
HINWEIS: Es müssen alle Sprach-divs hinzugefügt werden, in denen der Gebietsschema-Text immer angezeigt wird.
Verwendung: {{LanguageButtons}}
Voegt een taallink toe wat het mogelijk maakt om een pagina naar een andere taal te schakelen.
Gebruik samen met div's welke de attributen class="lang" en lang="2 KARAKTER TAAL-ID" hebben om hun zichtbaarheid te schakelen.
NOOT: Alle talen dienen toegevoegd te worden als div zodat de lokale tekst te allen tijde zichtbaar is, dus voorzichtigheid is geboden.
Gebruik: {{LanguageButtons}}