Template:Language code to language name: Difference between revisions

no edit summary
(Created page with "{{#switch: {{PAGELANGUAGE}} | pt-br = brazilian | {{lc:{{#language:{{PAGELANGUAGE}}|en}}}} }}")
 
No edit summary
Line 1: Line 1:
{{#switch: {{PAGELANGUAGE}}
<noinclude>
Used in [[Template:Menu bar]] to manage cases, such as that of Brazilian Portuguese, where we need to customise the conversion between the code associated to the page's language by MediaWiki into the string used on GitHub where the downloadable versions are listed.
 
Syntax:
 
<pre>
{{Language code to language name}}
</pre>
</noinclude><includeonly>{{#switch: {{PAGELANGUAGE}}
  | pt-br = brazilian
  | pt-br = brazilian
  | {{lc:{{#language:{{PAGELANGUAGE}}|en}}}}
  | {{lc:{{#language:{{PAGELANGUAGE}}|en}}}}
}}
}}</includeonly>