Difference between revisions of "Template:Language"
Jump to navigation
Jump to search
m (transfered by WikiBackup wikiTask at 2017-11-04T09:58:43Z) |
|||
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> | + | </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; "> |
− | {{#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 36: | Line 35: | ||
<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> | + | </div></includeonly> |
− | </includeonly> |
Revision as of 09:24, 11 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