Difference between revisions of "Template:Language"

From BITPlan Wiki
Jump to navigation Jump to search
m (transfered by WikiBackup wikiTask at 2017-11-14T09:37:58Z)
 
Line 11: Line 11:
 
* <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>{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||<div style="text-align: center; background: #F7F7F7; border: 4px solid #B0BFE8; padding: 0.25em; ">
+
</noinclude><includeonly>
 +
{{#ifeq:{{#ask: [[master page::{{{master page}}}]] [[language code::!{{{language}}}]]|format=count}}|0||<div style="text-align: center; background: #F7F7F7; border: 4px solid #B0BFE8; padding: 0.25em; ">
 
{{#switch:{{{language}}}|
 
{{#switch:{{{language}}}|
 
     de = Diese Seite in anderen Sprachen: |
 
     de = Diese Seite in anderen Sprachen: |
Line 35: Line 36:
 
<div style="display: none; read: none;">
 
<div style="display: none; read: none;">
 
[[master page::{{{master page}}}]] [[language code::{{{language}}}]]  
 
[[master page::{{{master page}}}]] [[language code::{{{language}}}]]  
</div></includeonly>
+
</div>
 +
</includeonly>

Latest revision as of 11:37, 14 November 2017

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

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

Usage:

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