Difference between revisions of "Template:Languages"

From VideoLAN Wiki
Jump to navigation Jump to search
(Appearance: height tweaks)
(Special:WantedPages has many redlinks for language links that only appear when this template is used. Attempting to fix)
Line 4: Line 4:
 
<td style="width: 10px; white-space: nowrap; padding: 0.25em 1em 0.25em 1em; border-right: 1px solid #888;">'''Languages:'''&nbsp;</td><td style="padding: 0.25em 1em 0.25em 1em; background: #F6F9ED;">
 
<td style="width: 10px; white-space: nowrap; padding: 0.25em 1em 0.25em 1em; border-right: 1px solid #888;">'''Languages:'''&nbsp;</td><td style="padding: 0.25em 1em 0.25em 1em; background: #F6F9ED;">
 
'''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
 
'''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
-->{{Languages/Lang|de}}<!--
+
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/de|{{Languages/Lang|de}}}}<!--
-->{{Languages/Lang|fr}}<!--
+
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/fr|{{Languages/Lang|fr}}}}<!--
-->{{Languages/Lang|nl}}<!--
+
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/nl|{{Languages/Lang|nl}}}}<!--
-->{{Languages/Lang|sk}}<!--
+
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/sk|{{Languages/Lang|sk}}}}<!--
 
--></td></tr></table></div></onlyinclude><noinclude>
 
--></td></tr></table></div></onlyinclude><noinclude>
 
==Syntax==
 
==Syntax==

Revision as of 07:58, 8 February 2019

Syntax

{{Languages}}

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.