Difference between revisions of "Template:Languages"

From VideoLAN Wiki
Jump to navigation Jump to search
(Remove code to check for Slovenčina pages: we haven't any on this wiki)
m ({{#ifexist:...}} is redundant)
Line 1: Line 1:
 
<onlyinclude><div class="LanguageLinks" style="width: 100%; background: #f6f9ed; padding: calc(0.5em - 2px) 0em;"><span class="nowrap" style="background: #ebf0fa; width: 10px; padding: 0.5em 1em; border-right: 1px solid #888;">'''Languages:'''&nbsp;</span><span style="padding: 0.5em 1em;">'''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
 
<onlyinclude><div class="LanguageLinks" style="width: 100%; background: #f6f9ed; padding: calc(0.5em - 2px) 0em;"><span class="nowrap" style="background: #ebf0fa; width: 10px; padding: 0.5em 1em; border-right: 1px solid #888;">'''Languages:'''&nbsp;</span><span style="padding: 0.5em 1em;">'''[[{{#titleparts:{{FULLPAGENAME}}|1}}{{!}}English]]'''<!--
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/de|{{Languages/Lang|de}}}}<!--
+
-->{{Languages/Lang|de}}<!--
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/fr|{{Languages/Lang|fr}}}}<!--
+
-->{{Languages/Lang|fr}}<!--
-->{{#ifexist:{{#titleparts:{{FULLPAGENAME}}|1}}/nl|{{Languages/Lang|nl}}}}<!--
+
-->{{Languages/Lang|nl}}<!--
 
--></span></div></onlyinclude><noinclude>
 
--></span></div></onlyinclude><noinclude>
 
==Syntax==
 
==Syntax==

Revision as of 08:45, 19 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.