Difference between revisions of "Template:Languages"

From VideoLAN Wiki
Jump to navigation Jump to search
m
m (HTML validation fixes: obsolete attributes width, valign; reduce hex code)
Line 1: Line 1:
 
<onlyinclude><div class="LanguageLinks">
 
<onlyinclude><div class="LanguageLinks">
<table width="100%">
+
<table style="width: 100%;">
<tr valign="top" style="background: #ebf0fa">
+
<tr style="background: #ebf0fa; vertical-align: top;">
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #888888;">'''Languages:'''&nbsp;</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:'''&nbsp;</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|}}}|}}

Revision as of 03:45, 5 February 2019

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.