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: Difference between revisions

Template page
{{lang|..|...}} or {{rtl-lang|..|...}}
switch {{autotranslate}} to a module call
 
(120 intermediate revisions by 60 users not shown)
Line 1: Line 1:
<div style="text-align:center">
{{#ifeq:{{NAMESPACE}}|{{ns:4}}||<!-- ignore commons namespace for demonstration pages -->
{{#switch:{{{lang}}}|
{{#switch:{{FULLPAGENAME}}  
cy={{lang|cy|'''''DALIER SYLW:'' Peidiwch â defnyddio’r nodyn hwn yn uniongyrchol, os gwelwch yn dda. Swyddogaeth cyfieithiad yn unig sydd iddo. Yn hytrach defnyddiwch {{tl|{{{template}}}}}, sy’n cynnwys cyswllt at y cyfieithiad hwn.'''}}|
|{{{ns|{{{ns1|{{ns:10}}}}}}}}:{{ucfirst:{{{page|{{{page1}}}}}}}}{{{sub|/{{SUBPAGENAME}}}}}
cs={{lang|cs|'''''POZNÁMKA:'' Prosíme ''nepoužívejte'' tuto šablonu přímo! Slouží pouze pro překlad. Místo ní používejte přímo {{tl|{{{template}}}}}.'''}}|
|{{{ns2|{{ns:10}}}}}:{{ucfirst:{{{page2}}}}}{{{sub|/{{SUBPAGENAME}}}}}
da={{lang|da|'''''NB:'' Benyt venligst ikke denne skabelon direkte, det er kun en oversættelse! Benyt kun {{tl|{{{template}}}}}.'''}}|
|{{{ns3|{{ns:10}}}}}:{{ucfirst:{{{page3}}}}}{{{sub|/{{SUBPAGENAME}}}}}
de={{lang|de|'''''HINWEIS:'' Bitte verwende diese Vorlage nicht direkt! Sie dient nur als Übersetzung. Verwende stattdessen {{tl|{{{template}}}}}.'''}}|
|{{{ns4|{{ns:10}}}}}:{{ucfirst:{{{page4}}}}}{{{sub|/{{SUBPAGENAME}}}}} = <!-- for any exceptions -->
el={{lang|el|'''''ΣΗΜΕΙΩΣΗ:'' Παρακαλούμε να μην χρησιμοποιείτε αυτό το πρότυπο απ'ευθείας! Είναι μόνο για μετάφραση. Χρησιμοποιήστε το {{tl|{{{template}}}}}.'''}}|
|#default =
es={{lang|es|'''''NOTA:'' No utilice directemente esta plantilla de licencia. Es solamente una traducción. Por favor utilice {{tl|{{{template}}}}}.'''}}|
{{#switch:localisation|{{{1}}}|{{{2}}}=<!-- it may be used directly so the message doesn't apply -->|#default =
fa={{rtl-lang|fa|'''''توجه:'' از این الگو مستقیماً استفاده نکنید. این الگو تنها برای ترجمه است. به این الگو رجوع نمائید {{tl|{{{template}}}}}.'''}}|
{{#invoke:Autotranslate|autotranslate
fr={{lang|fr|'''''NOTE :'' Ne pas utiliser directement ce modèle de licence. Il s’agit uniquement d’une traduction. Merci d’utiliser {{tl|{{{template}}}}}.'''}}|
|base=Template:Translated tag/i18n
he={{rtl-lang|he|'''הערה:'' אין להשתמש בתבנית זו ישירות. אנא השתמשו במקומה בתבנית {{tl|{{{template}}}}}.'''}}|
|lang={{{lang|}}}
hu={{lang|hu|'''''FIGYELEM:'' Kérünk ne használd ezt a sablont magában: ez csak egy fordítás. Használd inkább a {{tl|{{{template}}}}} sablont.'''}}|
|template={{{template|{{#ifexist:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{#titleparts:{{PAGENAME}}|1}}}}}}}
it={{lang|it|'''''NOTA:'' Per favore, non utilizzare direttamente questo template di licenza. Questa è soltanto una traduzione. Per favore, usa {{tl|{{{template}}}}}.'''}}|
}}
ja={{lang|ja|'''''注意:'' このテンプレートは直接使わないでください。これは参考訳です。かわりに {{tl|{{{template}}}}} を使ってください。'''}}|
}}<!--
ku={{lang|ku|'''''AGAHDARÎ:'' Vê şablonê bikarmîne. Ev bes ji tercemekirinê ra ye. Şonê vê {{tl|{{{template}}}}}.'''}}|
auto-categorizer
nl={{lang|nl|'''''ATTENTIE:'' Gebruikt u dit sjabloon aub niet direct! Dit sjabloon is slechts bedoeld voor vertaling, gebruik in plaats het sjabloon {{tl|{{{template}}}}}.'''}}|
-->{{#ifeq:{{FULLPAGENAME}}|{{ns:10}}:{{BASEPAGENAME}}/{{SUBPAGENAME}}
pl={{lang|pl|'''''UWAGA:'' Proszę nie wykorzystywać tego tekstu jako szablonu! To tylko tłumaczenie. Użyj {{tl|{{{template}}}}}.'''}}|
  | {{DEFAULTSORT:{{PAGENAME}}}}<!--
pt={{lang|pt|'''''NOTA:'' Esta predefinição é apenas uma tradução &ndash; por favor ''não'' a use directamente! Use {{tl|{{{template}}}}} ao invés desta.'''}}|
-->{{{localcat|[[Category:{{#ifexist:Template:Translated tag/local category-{{SUBPAGENAME}}
ru={{lang|ru|'''''ВНИМАНИЕ:'' Пожалуйста, ''не используйте'' этот шаблон напрямую! Это просто перевод. Используйте шаблон {{tl|{{{template}}}}}.'''}}|
  | {{translated tag/local category-{{SUBPAGENAME}}|{{{1}}}}}
sk={{lang|sk|'''''POZNÁMKA:'' Prosíme ''nepoužívajte'' túto šablónu priamo. Toto je len preklad. Použite {{tl|{{{template}}}}}.'''}}|
  | Commons templates-{{SUBPAGENAME}} }}]]}}}<!--
zh={{zh|'''注意:不要直接使用这个模版,这个模版只是一种语言译本,请使用 {{tl|{{{template}}}}}.'''}}|
-->[[Category:Translated {{#switch:{{lc:{{{1}}}}}
zh-tw={{zh-tw|'''注意:不要直接使用這個模版,這個模版僅供翻譯之用,請使用 {{tl|{{{template}}}}}.'''}}|  
  | cleanup = media cleanup templates
}}<br />
  | license = license tags
{{lang|en|'''''NOTE:'' Please do ''not'' use this template directly! This is just for translation. Use {{tl|{{{template}}}}} instead!'''}}
  | marker = marker templates
</div><noinclude>
  | problem = problem tags
----
  | restriction = restriction tags
This template is used on translated template messages, to avoid getting these on image pages.
  | header = header templates
[[Category:Translated license tags| ]]
  | infobox = infobox templates
</noinclude>
  | navigational = navigational templates
  | protection = protection templates
  | source = source templates
  | documentation = documentation templates
  | user = user templates
  | localisation = templates for localisation
  | templates needing categories
  }}]]
| {{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:Images using translated tags]]}}<!-- check for misuse -->
}}<!--
end auto-categorizer
-->}}
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 13:16, 8 August 2024

NOTE: Please do not use this template directly! This is just for translation. Use {{Translated tag}} instead.
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Translated tag/doc.

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[Edit template data]

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.