Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Translated tag/doc: Difference between revisions

Template page
add i18n method, placement, English description, label and type for param. #1; use internal translation
update
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateBox
{{TemplateBox
|1=1
| 1     = 1
|1d=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 need to 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}}.
| 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.
|1label=type
| 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{{))}}.
|1type=string
| 1label = Type
|1def=
| 1sv = cleanup/license/marker/problem/restriction/header/infobox/navigational/user/protection/source/documentation/localisation
|1stat=required
| 1example = For example, you would change <nowiki>{{translated tag}}</nowiki> to <nowiki>{{translated tag|cleanup}}</nowiki> for cleanup templates.
|name=Translated tag
| 1type = string
|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).
| 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
| namespace = template
|usergroup=
| usergroup = all
|placement=bottom
| placement = bottom
|usage-notes=
 
|type=
| i18n-method = ext.translate
|example=
| i18n-subpage = i18n
|i18n-method=autotranslate
| useTemplateData = 1
|i18n-desc=English description is on the main template page.
}}<includeonly>{{Sandbox other||
|i18n-mediawiki-msg=
<!-- Categories below this line; interwikis at Wikidata -->
|seealso=
|setscats=
|lines=
|shorthand=
|relieson=
|mustbesubst=
}}<includeonly>
[[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>

Latest revision as of 17:26, 14 February 2022

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

ParameterDescriptionDefaultStatus
1TypeAll 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:

  • cleanup
  • license
  • marker
  • problem
  • restriction
  • header
  • infobox
  • navigational
  • user
  • protection
  • source
  • documentation
  • localisation (this is a special case for translations that can be used directly, note the UK spelling)
For example, you would change {{translated tag}} to {{translated tag|cleanup}} for cleanup templates.
emptyrequired
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

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
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-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).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

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}}.

Suggested values
cleanup license marker problem restriction header infobox navigational user protection source documentation localisation
Stringrequired

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

العربية  беларуская (тарашкевіца)  বাংলা  čeština  Deutsch  English  español  euskara  فارسی  français  galego  עברית  हिन्दी  Bahasa Indonesia  italiano  日本語  한국어  македонски  മലയാളം  Bahasa Melayu  Nederlands  polski  português  русский  sicilianu  slovenščina  српски / srpski  svenska  ไทย  Türkçe  українська  Tiếng Việt  中文

This template makes use of {{Autotranslate}} and the translate extension.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.