Template:Pagelang2/doc: Difference between revisions

From Campaigns
Jump to navigation Jump to search
m 1 revision imported
 
Line 24: Line 24:


== See also ==
== See also ==
* {{ll|Manual:Magic words#PAGELANGUAGE|Manual:Magic words#PAGELANGUAGE}}
* {{tl|pagelang}}
* {{tl|pagelang}}
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||

Latest revision as of 04:28, 15 February 2022

This template returns the language of the current page. It’s similar to {{PAGELANGUAGE}}, but it works on manually translated pages as well ({{PAGELANGUAGE}} always returns ‘en’ there). It’s also similar to {{pagelang}}, but it returns ‘en’ on non-translated pages (i.e. originals of translated pages), while {{pagelang}} returns nothing on such pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
page1

Page to determine language for, usually not needed (by default the current page)

Page nameoptional

Examples

  • {{pagelang2}}

en

  • {{pagelang2|Page name}}

en

  • {{pagelang2|Page name/ja}}

ja

See also