Template:Translated tag/doc: Difference between revisions
More actions
rm yucky "need to" |
Enable generating TemplateData from {{TemplateBox}} |
||
| Line 1: | Line 1: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | |||
{{TemplateBox | {{TemplateBox | ||
| 1 = 1 | |||
| 1d-en = All categorization of translated tags is done through this template. It will add a local category based on the template's language and a general maintenance category based on the type of template it is. For the latter, you must supply the "type" as the first parameter. See [[Template:Translated tag/local category-en]] for possible values (or view template code). All templates lacking this will end up in [[:Category:Translated templates needing categories]] (however they will still be in a proper language-based category). If none of the available options match the template in question just leave it as {{tlf|translated tag}}. | |||
Add one of the following as the first parameter: | Add one of the following as the first parameter: | ||
| Line 19: | Line 20: | ||
For example, you would change <nowiki>{{translated tag}}</nowiki> to <nowiki>{{translated tag|cleanup}}</nowiki> for cleanup templates. | For example, you would change <nowiki>{{translated tag}}</nowiki> to <nowiki>{{translated tag|cleanup}}</nowiki> for cleanup templates. | ||
| 1d-td-en = All categorization of translated tags is done through this template. It will add a local category based on the template's language and a general maintenance category based on the type of template it is. For the latter, you must supply the "type" as the first parameter. See [[Template:Translated tag/local category-en]] for possible values (or view template code). All templates lacking this will end up in [[:Category:Translated templates needing categories]] (however they will still be in a proper language-based category). If none of the available options match the template in question just leave it as {{((}}translated tag{{))}}. | |||
| 1label = Type | |||
| 1sv = cleanup/license/marker/problem/restriction/header/infobox/navigational/user/protection/source/documentation/localisation | |||
| 1example = For example, you would change <nowiki>{{translated tag}}</nowiki> to <nowiki>{{translated tag|cleanup}}</nowiki> for cleanup templates. | |||
| 1type = string | |||
| 1stat = required | |||
| name=Translated tag | |||
| desc-en=This template is used on translated template messages, to avoid getting these on image pages and to lead to use the master template (NOT the translated one). | |||
|desc-ar=هذا القالب يستخدم في رسائل القوالب المترجمة، لتجنب وضعها على صفحات الصور و ليؤدي ذلك لاستخدام القالب الرئيسي (و ليس المترجم). | |desc-ar=هذا القالب يستخدم في رسائل القوالب المترجمة، لتجنب وضعها على صفحات الصور و ليؤدي ذلك لاستخدام القالب الرئيسي (و ليس المترجم). | ||
|desc-bar=De Vurlog dodan werd bai Texte vo ywersetzte Vurlong gnytzt, um z' vahindern, dass de auf Büidlsaiten glånga und um de Benytzung vo der Mastervurlog do sicher z' stöin - und ned etwoa de ywersetzte Vurlog. | |desc-bar=De Vurlog dodan werd bai Texte vo ywersetzte Vurlong gnytzt, um z' vahindern, dass de auf Büidlsaiten glånga und um de Benytzung vo der Mastervurlog do sicher z' stöin - und ned etwoa de ywersetzte Vurlog. | ||
| Line 42: | Line 46: | ||
|desc-vo=Samafomot at pladabon sui samafomots petradutöl, ad vitön, das popladons su pads, ed ad dugön votikanis ad gebön te samafomoti cifik (NO petradutölis). | |desc-vo=Samafomot at pladabon sui samafomots petradutöl, ad vitön, das popladons su pads, ed ad dugön votikanis ad gebön te samafomoti cifik (NO petradutölis). | ||
|desc-zh-hant=本模板適用於經由翻譯的模板訊息, 避免使用者將這些翻譯過的模板當成主模板在圖像描述頁中使用。 | |desc-zh-hant=本模板適用於經由翻譯的模板訊息, 避免使用者將這些翻譯過的模板當成主模板在圖像描述頁中使用。 | ||
| namespace = template | |||
| usergroup = all | |||
| placement = bottom | |||
| i18n-method = autotranslate | |||
| i18n-desc = English description is on the main template page. | |||
| useTemplateData = 1 | |||
}}<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Internationalization templates|*]] | [[Category:Internationalization templates|*]] | ||
[[Category:Internationalised documentation templates|{{PAGENAME}}]] | [[Category:Internationalised documentation templates|{{PAGENAME}}]] | ||
[[Category:Template namespace templates|{{PAGENAME}}]] | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
</includeonly> | }}</includeonly> | ||
Revision as of 10:23, 23 June 2021
This template is used on translated template messages, to avoid getting these on image pages and to lead to use the master template (NOT the translated one).
Usage
{{Translated tag |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Type | All categorization of translated tags is done through this template. It will add a local category based on the template's language and a general maintenance category based on the type of template it is. For the latter, you must supply the "type" as the first parameter. See Template:Translated tag/local category-en for possible values (or view template code). All templates lacking this will end up in Category:Translated templates needing categories (however they will still be in a proper language-based category). If none of the available options match the template in question just leave it as {{translated tag}}.
Add one of the following as the first parameter:
| empty | required |
|
<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 is used on translated template messages, to avoid getting these on image pages and to lead to use the master template (NOT the translated one).
| ||||||||||
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
Placement: At the bottom of the page
Localization
This template is localized through {{Autotranslate}}.
To add your language to the list of languages supported by this template, please copy the code of Template:Translated tag/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.
English description is on the main template page.