Difference between revisions of "Template:LanguageSet"

From BITPlan Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
This template is used for stating the language for some content page.  
 
This template is used for stating the language for some content page.  
Usage: <pre>{{languageTest|master page=Page title|language=en}}</pre>
+
Usage: <pre>{{LanguageSet|master page=Page title|language=en}}</pre>
  
 
The parameters have the following meaning:
 
The parameters have the following meaning:
 
* <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]]
</noinclude><includeonly>
+
[[Category:Template]]
{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||
+
see {{Link|target=Property:Language code}}
{{#switch:{{{language}}}|
+
</noinclude><includeonly>{{#set:
    de = Diese Seite in anderen Sprachen: |
+
|master page={{{master page|}}}
    fr = Cette page dans d'autres langues : |
+
|Language code={{{language|de}}}
    ja = 他の言語でのこのページ: |
+
}}</includeonly>
    nl = Deze pagina in andere talen: |
 
    ru = Эта страница на других языках: |
 
    zh-hans = 本页面的其他语种: |
 
    uk = Ця сторінка на інших мовах: |
 
    This page in other languages:}}
 
{{#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>}}
 
<div style="display: none; read: none;">
 
[[master page::{{{master page}}}]] [[language code::{{{language}}}]]
 
</div>
 
</includeonly>
 

Latest revision as of 11:27, 27 September 2017

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

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

Usage:

{{LanguageSet|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

see Property:Language code