Difference between revisions of "Template:Languages"

From Mumble Wiki
Jump to: navigation, search
(Test subpages)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<div style="border-top: 1px solid #6C83B0; border-bottom: 1px solid #6C83B0; text-align: center; margin-bottom: 5px; padding: 0px;">
 
<div style="border-top: 1px solid #6C83B0; border-bottom: 1px solid #6C83B0; text-align: center; margin-bottom: 5px; padding: 0px;">
Languages: [[{{{1|{{BASEPAGENAME}}}}}|English]] — [[{{{1|{{BASEPAGENAME}}}}}/Español|Español]] — [[{{{1|{{BASEPAGENAME}}}}}/Deutsch|Deutsch]]
+
Languages: {{#ifexist:{{BASEPAGENAME}}/Deutsch|[[{{{1}}}/Deutsch|Deutsch]] —&nbsp;|}}[[{{{1}}}/English|English]]{{#ifexist:{{BASEPAGENAME}}/Español|&nbsp;— [[{{{1}}}/Español|Español]]|}}{{#ifexist:{{BASEPAGENAME}}/Francais|&nbsp;— [[{{{1}}}/Francais|Français]]|}}{{#ifexist:{{BASEPAGENAME}}/Italiano|&nbsp;— [[{{{1}}}/Italiano|Italiano]]|}}{{#ifexist:{{BASEPAGENAME}}/Japanese|&nbsp;— [[{{{1}}}/Japanese|Japanese]]|}}{{#ifexist:{{BASEPAGENAME}}/Polish|&nbsp;— [[{{{1}}}/Polish|Polish]]|}}
 
</div><noinclude>
 
</div><noinclude>
= What is this template for? =
+
== What is this template for? ==
This template will add a top bar to select the language you want to read the article in. For this to work, articles in other languages must be named like the english one and adding (Deutsch) (Español) (Français) after the name.
+
This template will add a top bar to select the language you want to read the article in. For this to work, articles in other languages must be named like the english one but replacing "/English" with the corresponding language:
  
=How do I use it?=
+
*/Deutsch
 +
*/Español
 +
*/Français
 +
*/Polish
 +
 
 +
== How do I use it? ==
 
To include that template, add the following to the article you are editing:
 
To include that template, add the following to the article you are editing:
 
  <nowiki>{{Languages|Name of page without language tag}}</nowiki>
 
  <nowiki>{{Languages|Name of page without language tag}}</nowiki>
  
=Example=
+
== Example ==
Look at the ACL_and_Groups page. It is using the template right now.</noinclude>
+
Look at the [[ACL_and_Groups/English|ACL and Groups]] page. It is using the template right now.
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 02:44, 17 December 2010

Languages: [[{{{1}}}/English|English]]

What is this template for?

This template will add a top bar to select the language you want to read the article in. For this to work, articles in other languages must be named like the english one but replacing "/English" with the corresponding language:

  • /Deutsch
  • /Español
  • /Français
  • /Polish

How do I use it?

To include that template, add the following to the article you are editing:

{{Languages|Name of page without language tag}}

Example

Look at the ACL and Groups page. It is using the template right now.