Difference between revisions of "Template:LanguageSet"

From BITPlan Wiki
Jump to navigation Jump to search
m (Wf moved page Template:LanguageTest to Template:LanguageSet without leaving a redirect)
Line 10: Line 10:
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||
+
[[master page::{{{master page}}}]] [[language code::!{{{language}}}]]
{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|
 
  ?language code =|
 
  link=none|
 
  format=list|
 
  sep=,&nbsp;|
 
  template=languagelink|
 
  sort = language code|
 
  order = asc|
 
  limit = 10|
 
  searchlabel = [&hellip;]
 
}}
 
}}
 
<div style="display: none; read: none;">
 
[[master page::{{{master page}}}]] [[language code::{{{language}}}]]
 
</div>
 
 
</includeonly>
 
</includeonly>

Revision as of 13:29, 16 September 2017

From http://semantic-mediawiki.org/wiki/Template:Language

This template is used for stating the language for some content page.

Usage:

{{languageTest|master page=Page title|language=en}}

The parameters have the following meaning:

  • master page: the «main» page about that topic, usually the article with the English documentation for the most current version
  • language: a standard language code