Difference between revisions of "Template:Languages"
Jump to navigation
Jump to search
(Testing...) |
m (Bug fix) |
||
Line 3: | Line 3: | ||
<tr style="background: #ebf0fa; vertical-align: top;"> | <tr style="background: #ebf0fa; vertical-align: top;"> | ||
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #888;">'''Languages:''' </td><td style="padding: 1px 1em 0; background: #F6F9ED;"> | <td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #888;">'''Languages:''' </td><td style="padding: 1px 1em 0; background: #F6F9ED;"> | ||
− | '''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]''' | + | '''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]'''<!-- |
− | {{Languages/Lang|de|{{{1|}}}}} | + | -->{{Languages/Lang|de|{{{1|}}}}}<!-- |
− | {{Languages/Lang|fr|{{{1|}}}}} | + | -->{{Languages/Lang|fr|{{{1|}}}}}<!-- |
− | {{Languages/Lang|nl|{{{1|}}}}} | + | -->{{Languages/Lang|nl|{{{1|}}}}}<!-- |
− | {{Languages/Lang|sk|{{{1|}}}}} | + | -->{{Languages/Lang|sk|{{{1|}}}}}<!-- |
− | </td></tr></table></div></onlyinclude><noinclude> | + | --></td></tr></table></div></onlyinclude><noinclude> |
==Syntax== | ==Syntax== | ||
<nowiki>{{Languages|PageName}}</nowiki> | <nowiki>{{Languages|PageName}}</nowiki> |
Revision as of 10:35, 7 February 2019
Languages: | English |
Syntax
{{Languages|PageName}}
PageName (optional) - name of the page on which we would like to show the language links.
- Leave blank on the main page. For example, on Common Problems we use simply {{Languages}}.
- Put the name of the page itself on language sub-pages. For example, on Common Problems/fr we must use {{Languages|Common Problems}}.
Usage
- Place only pages that exist in more than one language
- Place in the same location on each translation of the page
- The English version of a page is always the main version
- Using the appropriate language code in the format "pagenamehere/language_code"
For example, see above.