Difference between revisions of "Template:Languages"

From VideoLAN Wiki
Jump to navigation Jump to search
(Wikicode equivalent)
m (Equivalent CSS)
Line 2: Line 2:
 
{| style="width: 100%;"
 
{| style="width: 100%;"
 
|- style="background: #ebf0fa;"
 
|- style="background: #ebf0fa;"
| style="width: 10px; white-space: nowrap; padding: 0.25em 1em 0.25em 1em; border-right: 1px solid #888;" |'''Languages:''' 
+
| class="nowrap" style="width: 10px; padding: 0.25em 1em 0.25em 1em; border-right: 1px solid #888;" |'''Languages:''' 
| style="padding: 0.25em 1em 0.25em 1em; background: #F6F9ED;" | '''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
+
| style="padding: 0.25em 1em 0.25em 1em; background: #f6f9ed;" | '''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
 
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/de|{{Languages/Lang|de}}}}<!--
 
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/de|{{Languages/Lang|de}}}}<!--
 
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/fr|{{Languages/Lang|fr}}}}<!--
 
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/fr|{{Languages/Lang|fr}}}}<!--

Revision as of 04:15, 14 March 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.