Difference between revisions of "Template:Languages"

From Veloopti Help
Jump to: navigation, search
m (margin-left: 1px, to line up with categories box.)
m (margin on both sides...)
Line 1: Line 1:
 
== Template ==
 
== Template ==
 
<onlyinclude>
 
<onlyinclude>
<table width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin-left: 1px;">
+
<table width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px;">
 
<tr valign="top" style="background: #EEF3E2">
 
<tr valign="top" style="background: #EEF3E2">
 
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|]]</td>
 
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|]]</td>

Revision as of 18:37, 2 December 2006

1 Template

File:Geographylogo.png Languages: 

English








2 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. This argument is optional, and if left out will be deduced from the current page.

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<tt>, <tt>Main Page/fr, and ignores non-existant languages

3 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 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

4 Example

Here is how the language bar looks on the MediaWiki page:

Languages: English