Template:Languages: Difference between revisions
From KIP Wiki
ā§¼kip-jumptonavigationā§½ā§¼kip-jumptosearchā§½
No edit summary |
No edit summary Ā |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Languages|Test}} |
|||
== Template == |
== Template == |
||
<onlyinclude><div style="vertical-align: middle; clear: both;"> |
<onlyinclude><div style="vertical-align: middle; clear: both;">{{ |
||
#ifeq:{{{2|bar}}}|bar|{{ |
|||
#ifeq:{{{1}}}|{{FULLPAGENAME}}|{{Languages_Bar|{{{1}}}|de}} {{Languages_Bar|{{{1}}}|en}} {{Languages_Bar|{{{1}}}|fr}}}}{{ |
|||
#ifeq:{{{1}}}/en|{{FULLPAGENAME}}|{{Languages_Bar|{{{1}}}|de}} {{Languages_Bar|{{{1}}}|en}} {{Languages_Bar|{{{1}}}|fr}}}}{{ |
|||
#ifeq:{{{1}}}/fr|{{FULLPAGENAME}}|{{Languages_Bar|{{{1}}}|de}} {{Languages_Bar|{{{1}}}|en}} {{Languages_Bar|{{{1}}}|fr}} }} }} |
|||
---- |
---- |
||
[[Image:Geographylogo.png|25px|]] |
[[Image:Geographylogo.png|25px|]] |
||
<span style="font-size:smaller"> |
<span style="font-size:smaller"> |
||
Reference: |
'''{{{1| }}}''' Reference: |
||
'''[[{{{1|{{ |
'''[[{{{1|{{FULLPAGENAME}}}}}|Deutsch]]''' ā |
||
Translations: |
Translations: {{ |
||
#ifexist:{{{1}}}/en|<span lang="en">[[{{{1}}}/en|English]]</span> • |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
---- |
---- |
||
</div></onlyinclude> |
</div></onlyinclude> |
||
<!-- |
<!--{{ |
||
{{ |
|||
#ifexist: {{{1}}}/de | <span lang="de">[[{{{1}}}/de|{{#language:de}}]]</span> • |
|||
⚫ | |||
#ifexist: {{{1}}}/en | <span lang="en">[[{{{1}}}/de|{{#language:en}}]]</span> • |
|||
}}{{ |
|||
#ifexist: {{{1}}}/es | <span lang="es">[[{{{1}}}/es|{{#language:es}}]]</span> • |
#ifexist: {{{1}}}/es | <span lang="es">[[{{{1}}}/es|{{#language:es}}]]</span> • |
||
}}{{ |
}}{{ |
||
#ifexist: {{{1}}}/fi | <span lang="fi">[[{{{1}}}/fi|{{#language:fi}}]]</span> • |
#ifexist: {{{1}}}/fi | <span lang="fi">[[{{{1}}}/fi|{{#language:fi}}]]</span> • |
||
}}{{ |
|||
⚫ | |||
}}{{ |
}}{{ |
||
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|{{#language:it}}]]</span> • |
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|{{#language:it}}]]</span> • |
||
Line 46: | Line 44: | ||
}}</span> |
}}</span> |
||
---- |
---- |
||
</div></onlyinclude |
</div></onlyinclude> |
||
--> |
|||
== Usage == |
== Usage == |
||
If '''nobar''' is given no Links to Language-Bar will be created. |
|||
⚫ | |||
⚫ | |||
<nowiki>{{Languages|RootPageName|nobar}}</nowiki> |
|||
{| |
{| |
||
Line 58: | Line 60: | ||
Zum Beispiel sollte auf der '''Hauptseite''' und den jeweiligen Unterseiten (sub-pages) <code><nowiki>{{{Languages|Hauptseite}}}</nowiki></code> |
Zum Beispiel sollte auf der '''Hauptseite''' und den jeweiligen Unterseiten (sub-pages) <code><nowiki>{{{Languages|Hauptseite}}}</nowiki></code> |
||
eingebunden werden. Die Sprachlinks werden automatisch erzeugt, je nachdem welche Seite existiert. |
eingebunden werden. Die Sprachlinks werden automatisch erzeugt, je nachdem welche Seite existiert. |
||
== Supported languages == |
== Supported languages == |
||
This shows you the name of each language's sub-page (using ''Main Page'' as an example). Other languages may be added easily as necessary. Please use the appropriate [[meta:List of Wikipedias|prefix, as used on Wikipedia]] when adding a new language. Please do ''not'' add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists). |
<!-- This shows you the name of each language's sub-page (using ''Main Page'' as an example). Other languages may be added easily as necessary. Please use the appropriate [[meta:List of Wikipedias|prefix, as used on Wikipedia]] when adding a new language. Please do ''not'' add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists). |
||
--> |
|||
{| border="1" cellpadding="5" |
{| border="1" cellpadding="5" |
||
Line 66: | Line 71: | ||
|- |
|- |
||
| Main Page || Deutsch |
| Main Page || Deutsch |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
| Main Page'''/en''' || English |
| Main Page'''/en''' || English |
||
⚫ | |||
⚫ | |||
⚫ | |||
<!-- |
|||
⚫ | |||
|- |
|- |
||
| Main Page'''/es''' || Spanish |
| Main Page'''/es''' || Spanish |
||
|- |
|- |
||
| Main Page'''/fi''' || Finnish |
| Main Page'''/fi''' || Finnish |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
| Main Page'''/it''' || Italian |
| Main Page'''/it''' || Italian |
||
Line 97: | Line 104: | ||
| Main Page'''/zh''' || Chinese |
| Main Page'''/zh''' || Chinese |
||
|} |
|} |
||
--> |
Latest revision as of 11:04, 16 November 2006
Template
Usage
If nobar is given no Links to Language-Bar will be created.
{{Languages|RootPageName}} {{Languages|RootPageName|nobar}}
PageName sollte der Name der Standard-Seite (hier ' Deutsch ') sein. Jede andere Version ist eine Unterseite (sub-page), unter Verwendung des jeweiligen Language codes und sollte dieses Template ebenfalls einbinden. | PageName should be the name of the default (here ' Deutsch ') page. Each other version is a sub-page, using the corresponding language code, and should include this template in the same way. |
Zum Beispiel sollte auf der Hauptseite und den jeweiligen Unterseiten (sub-pages) {{{Languages|Hauptseite}}}
eingebunden werden. Die Sprachlinks werden automatisch erzeugt, je nachdem welche Seite existiert.
Supported languages
Page Name | Language |
---|---|
Main Page | Deutsch |
Main Page/en | English |
Main Page/fr | French |