Difference between revisions of "Template:Language code of page"
(→Page with property Has language:: set) |
(→Page without property Has language:: set) |
||
Line 35: | Line 35: | ||
{{Language of page|Pt:Página principal}} | {{Language of page|Pt:Página principal}} | ||
− | ===Page without | + | ===Page without a language code=== |
If no first parameter is passed in, the current page applies. | If no first parameter is passed in, the current page applies. | ||
<pre> | <pre> |
Revision as of 02:56, 21 April 2011
Template Language code of page returns the language code of a page. If no page name is passed in as the first parameter, the current page (in which it is being used) applies. If there is no language code, it returns empty.
Contents
Use
{{Language of page|optional page name}}
Examples
No page parameter
If no first parameter is passed in, the current page applies.
{{Language of page}}
Page with a language code
{{Language of page|Main Page}}
{{Language of page|Pt:Página principal}}
Page without a language code
If no first parameter is passed in, the current page applies.
{{Language of page|Template:Language of page}}