Difference between revisions of "Template:LanguageSet"

From BITPlan Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
* <tt>master page</tt>: the «main» page about that topic, usually the article with the English documentation for the most current version
 
* <tt>master page</tt>: the «main» page about that topic, usually the article with the English documentation for the most current version
 
* <tt>language</tt>: a standard [[Property:language code|language code]]
 
* <tt>language</tt>: a standard [[Property:language code|language code]]
 +
[[Category:Template]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||  
 
{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||  
Line 26: Line 27:
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>
[[Category:Template]]
 

Revision as of 14:24, 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