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:Shared Template Warning/doc: Difference between revisions

Template page
Created page with '{{#invoke:TNT|doc|Shared Template Warning}}'
 
Use main {{TemplateBox}}
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#invoke:TNT|doc|Shared Template Warning}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateBox
| name = Shared Template Warning
 
| i18n-method = TNT
 
| print = line
| useTemplateData = TNT
| 1
 
<!-- Converted from [[Data:Templatedata/Shared Template Warning.tab]]: -->
<!-- TODO: Support this natively in {{TemplateBox}} -->
| desc-en  = This warning should be placed at the top of all templates and modules that are shared between wikis.
| desc-fr  = Cet avertissement doit être placé en tête de tous les modèles et de tous les modules  partagés entre plusieurs wikis.
| desc-be  = Гэтае папярэджанне мусіць быць размешчана ўверсе ва ўсіх шаблонах і модулях, якія выкарыстоўваюцца рознымі вікі-праектамі.
| desc-bg  = Това предупреждение трябва да бъде поставяно най-отгоре на всички шаблони и модули, споделящи се между уикитата.
| desc-bn  = উইকিসমূহের মধ্যে ভাগাভাগি করা সকল টেমপ্লেট ও মডিউলের শীর্ষে এই সতর্কবার্তাটি থাকা উচিত।
| desc-ca  = Aquesta alerta s’ha de col·locar al capdamunt de qualssevol plantilles i mòduls compartits entre wikis.
| desc-es  = Esta alerta debe colocarse en la parte superior de cualesquier plantillas y módulos compartidos entre wikis.
| desc-hr  = Ovo bi upozorenje trebalo biti postavljeno na početak svih predložaka i modula koji su dijeljeni među wikijima.
| desc-hu  = Ezt a figyelmeztetést azon sablonok és modulok tetején kell elhelyezni, melyeken több wiki is osztozik.
| desc-ilo = Daytoy a ballaag ket nasken a maikabil iti ngato kadagiti amin a plantilia ken dagiti modulo a nagbibingayan kadagiti amin a wiki.
| desc-mk  = Ова предупредување треба да се стави најгоре врз сите предлошки и модули кои се заеднички за повеќе викија.
| desc-pl  = To ostrzeżenie powinno być umieszczone na górze wszystkich szablonów i modułów, które są współdzielone pomiędzy różnymi wiki.
| desc-pt  = Esse aviso deve ser colocado no topo de todas as predefinições e módulos que são compartilhados entre wikis.
| desc-sv  = Denna varning bör placeras längst upp på alla mallar och moduler som delas över flera wikier.
| desc-te  = వివిధ వికీల్లో పంచుకున్న ఉమ్మడి మూసలు, మాడ్యూళ్ళనిటికీ పైన ఈ హెచ్చరిక ఉంచాలి.
| desc-tr  = Bu uyarı, vikiler arasında paylaşılan tüm şablon ve modüllerin en üstüne yerleştirilmelidir.
| desc-zh-hans = 此警告应防止于所有模板和模块顶端,只要其在wiki间分享。
}}
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Maintenance templates]]
}}</includeonly>

Latest revision as of 20:43, 24 November 2024

This warning should be placed at the top of all templates and modules that are shared between wikis.

Usage

{{Shared Template Warning |1= }}

Template parameters

<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 warning should be placed at the top of all templates and modules that are shared between wikis.

Template parameters

ParameterDescriptionTypeStatus
page name1

The full name of the shared template or module, as stored at mediawiki.org, including the namespace.

Example
Template:My_shared_template
Auto value
{{subst:NAMESPACE}}:{{subst:BASEPAGENAME}}
Page namerequired
translation table2

Optional title of the Commons data table with translations for this template or module, without the Data: prefix, and without the ".tab" suffix.

Example
My_shared_template
Auto value
{{subst:BASEPAGENAME}}
Stringsuggested
Originorigin

Custom origin. Supported values: “mw”/“MediaWiki” for MediaWiki (default), “c”/“Commons” for Wikimedia Commons, “m”/“Meta” for Wikimedia Meta-Wiki.

Default
MediaWiki
Stringoptional

Edit parameter translations

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Localization

This template is localized using Module:TNT. These translations are stored in Data:I18n/Shared Template Warning.tab.

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