User:Nikitrain/Sandbox/Template:Localized link/doc
This template can be used to link to translatable pages in the user's language. It uses the special page Special:MyLanguage, which checks if there is a translated version of a page in the user's language, and links to it if there is one, and links to the English version if there isn't.
Usage
{{Edit |1= }}
{{edit|the page to edit}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Pagename | complete pagename with namespace | {{FULLPAGENAME}} | optional |
preload | Preload | source code, which is preloaded by default | empty | optional |
editintro | Editintro | text that appears before the edit box | empty | optional |
Template data | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template can be used to link to [[Special:LanguageStats|translatable pages]] in the user's language. It uses the special page [[Special:MyLanguage]], which checks if there is a translated version of a page in the user's language, and links to it if there is one, and links to the English version if there isn't.
|
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Example
{{Edit|Template:Edit/doc}}
renders as:
See also
Localization
This template is not intended to be localized.