Template:Languages: Difference between revisions

From KIP Wiki
ā§¼kip-jumptonavigationā§½ā§¼kip-jumptosearchā§½
No edit summary
No edit summary
Ā 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude><div style="vertical-align: middle; clear: both;">{{
<!-- Tests: {{PAGENAME}} {{FULLPAGENAME}} {{BASEPAGENAMEE}} {{ROOTPAGENAME}} -->
#ifeq:{{{2|bar}}}|bar|{{
<onlyinclude><div style="vertical-align: middle; clear: both;">
#ifeq:{{{1}}}|{{FULLPAGENAME}}|{{Languages_Bar|{{{1}}}|de}} {{Languages_Bar|{{{1}}}|en}} {{Languages_Bar|{{{1}}}|fr}}}}{{
[[de:{{{1|{{NAMESPACE}}:{{PAGENAME}}}}}]]
#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|{{NAMESPACE}}:{{PAGENAME}}}}}|Deutsch]]''' ā€“
'''[[{{{1|{{FULLPAGENAME}}}}}|Deutsch]]''' ā€“
Translations: &nbsp; {{
Translations: &nbsp; {{
#ifexist:{{{1}}}/en|<span lang="en">[[{{{1}}}/en|English]]</span> &nbsp;&bull;&nbsp; [[en:{{{1}}}]]
#ifexist:{{{1}}}/en|<span lang="en">[[{{{1}}}/en|English]]</span> &nbsp;&bull;&nbsp;
}}{{
#ifexist:{{{1}}}/fr|<span lang="fr">[[{{{1}}}/fr|French]]</span> &nbsp;&bull;&nbsp;
}}</span>
}}</span>
----
----
</div></onlyinclude>
</div></onlyinclude>



<!--{{
<!--{{
Line 19: Line 22:
}}{{
}}{{
#ifexist: {{{1}}}/fi | <span lang="fi">[[{{{1}}}/fi|{{#language:fi}}]]</span> &nbsp;&bull;&nbsp;
#ifexist: {{{1}}}/fi | <span lang="fi">[[{{{1}}}/fi|{{#language:fi}}]]</span> &nbsp;&bull;&nbsp;
}}{{
#ifexist: {{{1}}}/fr | <span lang="fr">[[{{{1}}}/fr|{{#language:fr}}]]</span> &nbsp;&bull;&nbsp;
}}{{
}}{{
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|{{#language:it}}]]</span> &nbsp;&bull;&nbsp;
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|{{#language:it}}]]</span> &nbsp;&bull;&nbsp;
Line 47: Line 48:


== Usage ==
== Usage ==
If '''nobar''' is given no Links to Language-Bar will be created.

<nowiki>{{Languages|RootPageName}}</nowiki>
<nowiki>{{Languages|RootPageName}}</nowiki>
<nowiki>{{Languages|RootPageName|nobar}}</nowiki>


{|
{|
Line 69: Line 73:
|-
|-
| Main Page'''/en''' || English
| Main Page'''/en''' || English
|-
| Main Page'''/fr''' || French
|}
|}


<!--
<!--
| Main Page'''/de''' || German
| Main Page'''/de''' || German
|-
| Main Page'''/en''' || English
|-
|-
| Main Page'''/es''' || Spanish
| Main Page'''/es''' || Spanish
|-
|-
| Main Page'''/fi''' || Finnish
| Main Page'''/fi''' || Finnish
|-
| Main Page'''/fr''' || French
|-
|-
| Main Page'''/it''' || Italian
| Main Page'''/it''' || Italian

Latest revision as of 11:04, 16 November 2006

Template


Geographylogo.png Reference: Deutsch ā€“ Translations:  



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