Template:Lng/doc

From Test Wiki
Revision as of 08:48, 25 September 2020 by m>Tacsipacsi (the default for language is now {{PAGELANGUAGE}} instead of an arbitrary value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

__EXPECTED_UNCONNECTED_PAGE__

<templatedata> { "description": "This template is useful to create a link to a multi-language page, not having yet a version in your (or other interested you) language. While a version in concern language does not exist, the link will direct each visitor to their language chosen in the settings. When a version in your language will be created, the link will be just to it.", "format": "inline", "params": { "n": { "aliases": [ "1" ], "label": "page name", "description": "Name of the English page", "type": "wiki-page-name", "required": true }, "t": { "aliases": [ "2" ], "label": "link title", "description": "Displayed text of the link, by default same as the (English) page name", "type": "line" }, "l": { "aliases": [ "3" ], "label": "language", "description": "ISO code of your language, by default the internal page language of the current page (this is the actual page language for pages translated using the Translate extension, and mostly English otherwise)", "type": "line" } } } </templatedata>

Examples

code result note
{{lng|n=Meta:Policies and guidelines|t=read carefully|l=fr}} read carefully the French
version
of that page
exists
{{lng|Meta:Policies and guidelines|read carefully|fr}} read carefully
{{lng|n=Meta:Policies and guidelines|l=fr}} Meta:Policies and guidelines
{{lng|Meta:Policies and guidelines||fr}} Meta:Policies and guidelines
{{lng|n=Meta:Policies and guidelines|t=read carefully|l=tl}} read carefully a Tagalog
version of
that page
does not
exist
{{lng|Meta:Policies and guidelines|read carefully|tl}} read carefully
{{lng|n=Meta:Policies and guidelines|l=tl}} Meta:Policies and guidelines
{{lng|Meta:Policies and guidelines||tl}} Meta:Policies and guidelines