Difference between revisions of "Template:Languages"

From VideoLAN Wiki
Jump to navigation Jump to search
(doc)
m (Remove check for alternate page names on this page)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><div class="LanguageLinks">
+
<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]]'''<includeonly><!--
<table width="100%">
+
-->{{Languages/Lang|de}}<!--
<tr valign="top" style="background: #ebf0fa">
+
-->{{Languages/Lang|fr}}<!--
<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;">
+
-->{{Languages/Lang|nl}}<!--
'''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]'''
+
--></includeonly></span></div></onlyinclude><noinclude>
{{Languages/Lang|de|{{{1|}}}|}}
 
{{Languages/Lang|fr|{{{1|}}}|}}
 
{{Languages/Lang|nl|{{{1|}}}|}}
 
</td></tr></table></div></onlyinclude><noinclude>
 
 
==Syntax==
 
==Syntax==
<nowiki>{{Languages|PageName}}</nowiki>
+
<!--dummy edit-->
 +
<nowiki>{{Languages}}</nowiki>
  
PageName (optional) - name of the page on which we would like to show the language links.
+
* On both [[Common Problems]] and [[Common Problems/fr]] we use simply <nowiki>{{Languages}}</nowiki> and the pages will be linked.
* Leave blank on the main page. For example, on [[Common Problems]] we use simply <nowiki>{{Languages}}</nowiki>.
 
* Put the name of the page itself on language sub-pages. For example, on [[Common Problems/fr]] we must use <nowiki>{{Languages|Common Problems}}</nowiki>.
 
  
 
==Usage==
 
==Usage==

Latest revision as of 08:47, 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.