Difference between revisions of "Template:Languages"

From DMARC Wiki
Jump to navigation Jump to search
(revert to last version by registerd user)
(Added usage information)
Line 1: Line 1:
<div style="vertical-align: middle; clear: both;">
+
<noinclude>
 +
== Template ==
 +
</noinclude><div style="vertical-align: middle; clear: both;">
 
----
 
----
 
[[Image:Geographylogo.png|25px|]]
 
[[Image:Geographylogo.png|25px|]]
Line 17: Line 19:
 
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|Italiano]]</span> &nbsp;&bull;&nbsp;  
 
#ifexist: {{{1}}}/it | <span lang="it">[[{{{1}}}/it|Italiano]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
#ifexist: {{{1}}}/he | <span lang="he">[[{{{1}}}/he|עברית]]</span> &nbsp;&bull;&nbsp;  
+
#ifexist: {{{1}}}/he | <span lang="he">[[{{{1}}}/he|?????]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
#ifexist: {{{1}}}/ja | <span lang="ja">[[{{{1}}}/ja|日本語]]</span> &nbsp;&bull;&nbsp;  
+
#ifexist: {{{1}}}/ja | <span lang="ja">[[{{{1}}}/ja|???]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
#ifexist: {{{1}}}/ko | <span lang="ko">[[{{{1}}}/ko|한국어]]</span> &nbsp;&bull;&nbsp;  
+
#ifexist: {{{1}}}/ko | <span lang="ko">[[{{{1}}}/ko|???]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
 
#ifexist: {{{1}}}/no | <span lang="no">[[{{{1}}}/no|Norsk nynorsk]]</span> &nbsp;&bull;&nbsp;  
 
#ifexist: {{{1}}}/no | <span lang="no">[[{{{1}}}/no|Norsk nynorsk]]</span> &nbsp;&bull;&nbsp;  
Line 29: Line 31:
 
#ifexist: {{{1}}}/pt | <span lang="pt">[[{{{1}}}/pt|Português]]</span> &nbsp;&bull;&nbsp;  
 
#ifexist: {{{1}}}/pt | <span lang="pt">[[{{{1}}}/pt|Português]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
#ifexist: {{{1}}}/ru | <span lang="ru">[[{{{1}}}/ru|Русский]]</span> &nbsp;&bull;&nbsp;  
+
#ifexist: {{{1}}}/ru | <span lang="ru">[[{{{1}}}/ru|???????]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
 
#ifexist: {{{1}}}/sq | <span lang="sq">[[{{{1}}}/sq|Shqip]]</span> &nbsp;&bull;&nbsp;  
 
#ifexist: {{{1}}}/sq | <span lang="sq">[[{{{1}}}/sq|Shqip]]</span> &nbsp;&bull;&nbsp;  
 
}}{{
 
}}{{
#ifexist: {{{1}}}/zh | <span lang="zh">[[{{{1}}}/zh|中文]]</span> &nbsp;&bull;&nbsp;  
+
#ifexist: {{{1}}}/zh | <span lang="zh">[[{{{1}}}/zh|??]]</span> &nbsp;&bull;&nbsp;  
 
}}</span>
 
}}</span>
 
----
 
----
</div>
+
</div><noinclude>
 +
 
 +
 
 +
== Usage ==
 +
<nowiki>{{{Languages|PageName}}}</nowiki>
 +
 
 +
PageName should be the name of the English version of the page.  Each non-English version is a sub-page of the English version, using the corresponding language code, and should include this template in the same way.
 +
 
 +
For example, on the Main Page you would include the text <code><nowiki>{{{Languages|Main Page}}}</nowiki></code>, both on [[Main Page]] itself, and on each of its language sub-pages.  The template automatically creates links to any language sub-pages that exist, e.g. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages
 +
 
 +
 
 +
 
 +
== Supported languages ==
 +
 
 +
This shows you the name of each language's sub-page. 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"
 +
! Page Name || Language
 +
|-
 +
| Main Page || English
 +
|-
 +
| Main Page'''/de''' || German
 +
|-
 +
| Main Page'''/es''' || Spanish
 +
|-
 +
| Main Page'''/fi''' || Finnish
 +
|-
 +
| Main Page'''/fr''' || French
 +
|-
 +
| Main Page'''/it''' || Italian
 +
|-
 +
| Main Page'''/he''' || Hebrew
 +
|-
 +
| Main Page'''/ja''' || Japanese
 +
|-
 +
| Main Page'''/ko''' || Korean
 +
|-
 +
| Main Page'''/no''' || Norwegian
 +
|-
 +
| Main Page'''/pl''' || Polish
 +
|-
 +
| Main Page'''/pt''' || Portugese
 +
|-
 +
| Main Page'''/ru''' || Russian
 +
|-
 +
| Main Page'''/sq''' || Albanian
 +
|-
 +
| Main Page'''/zh''' || Chinese
 +
|}
 +
 
 +
</noinclude>

Revision as of 23:42, 9 October 2006

Template


Geographylogo.png Reference: [[{{{1}}}|English]] – Translations:  



Usage

{{{Languages|PageName}}}

PageName should be the name of the English version of the page. Each non-English version is a sub-page of the English version, using the corresponding language code, and should include this template in the same way.

For example, on the Main Page you would include the text {{{Languages|Main Page}}}, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. Main Page/ja, Main Page/fr, and ignores non-existant languages


Supported languages

This shows you the name of each language's sub-page. Other languages may be added easily as necessary. Please use the appropriate 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).

Page Name Language
Main Page English
Main Page/de German
Main Page/es Spanish
Main Page/fi Finnish
Main Page/fr French
Main Page/it Italian
Main Page/he Hebrew
Main Page/ja Japanese
Main Page/ko Korean
Main Page/no Norwegian
Main Page/pl Polish
Main Page/pt Portugese
Main Page/ru Russian
Main Page/sq Albanian
Main Page/zh Chinese