Template:Auxiliary template common notice/doc: Difference between revisions
More actions
Create documentation subpage for {{Auxiliary template common notice}} |
+de |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 3: | Line 3: | ||
| name = Auxiliary template common notice | | name = Auxiliary template common notice | ||
| desc = Preformatted {{tl|TemplateBox}} for character-substitution templates. | | desc = Preformatted {{tl|TemplateBox}} for character-substitution templates. | ||
| desc-de = Vorgefertigte Vorlage {{tl|TemplateBox}} für Zeichenersetzungsvorlagen. | |||
| desc-td = Preformatted {{((}}TemplateBox{{))}} for character-substitution templates. | | desc-td = Preformatted {{((}}TemplateBox{{))}} for character-substitution templates. | ||
| desc-td-de = Vorgefertigte Vorlage {{((}}TemplateBox{{))}} für Zeichenersetzungsvorlagen. | |||
| | |||
| namespace = Template | | namespace = Template | ||
| usergroup = all | | usergroup = all | ||
| placement = {{LangSwitch | | placement = {{LangSwitch | ||
| en = in the '/doc' subpage of a template | | en = in the '/doc' subpage of a template | ||
| Line 23: | Line 21: | ||
}} | }} | ||
| type = infobox | |||
| relieson = | |||
* {{tld|Escape template list}} | |||
* {{tld|TemplateBox}} | |||
| i18n-method = switch | |||
| print = multi | |||
| useTemplateData = only | | useTemplateData = only | ||
| 1 = name | | 1 = name | ||
| 1default = <nowiki>{{</nowiki> | | 1default = <nowiki>{{BASEPAGENAME}}</nowiki> | ||
| 1stat = | | 1av = <nowiki>{{subst:BASEPAGENAME}}</nowiki> | ||
| 1stat = suggested | |||
| 1type = wiki-template-name | | 1type = wiki-template-name | ||
| 1label = | | 1label-en = Title | ||
| 1label-de = Titel | | 1label-de = Titel | ||
| 1label-et = pealkiri | | 1label-et = pealkiri | ||
| Line 39: | Line 46: | ||
| 1label-pt = título | | 1label-pt = título | ||
| 1d | | 1d-en = name of the template (needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately) | ||
| 1d-bar = Name vo da Vurlog | | 1d-bar = Name vo da Vurlog (den braucht ma, um de Dokumentazion auf a åndern Seit ois auf da Vurlgnseitn — speziell auf da Dokumentationsseitn soibst — dårstoin zum kenna) | ||
| 1d-de = Name der Vorlage | | 1d-de = Name der Vorlage (wird benötigt um die Dokumentation auf einer anderen Seite als der Vorlagenseite — insbesondere auf der Dokumentationsseite selbst — darstellen zu können) | ||
| 1d-et = malli nimi | | 1d-et = malli nimi (on vajalik dokumentatsiooni vaatamiseks teisel leheküljel kui malli leheküljel, eriti kui on tarvis vaadata dokumentatsioonilehekülge eraldi) | ||
| 1d-fr = Nom du modèle | | 1d-fr = Nom du modèle | ||
| 1d-hu = A sabon neve | | 1d-hu = A sabon neve (ahhoz kell, hogy akkor is helyesen jelenjen meg a leírás, ha nem a sablon főlapján nézzük – pl. a dokumentációs allapon) | ||
| 1d-it = Nome del template | | 1d-it = Nome del template (necessario per la visualizzazione della documentazione su una pagina che non sia quella del template stesso, in particolare per visualizzare separatamente la pagina della documentazione) | ||
| 1d-mk = име на шаблонот | | 1d-mk = име на шаблонот | ||
| 1d-pt = Nome da predefinição | | 1d-pt = Nome da predefinição (necessário para ver a documentação numa página que não seja a da predefinição e, em particular, para ver a página da documentação em isolamento). | ||
| 3 = entity | | 3 = entity | ||
| 3label = HTML Entity | | 3label = HTML Entity | ||
| 3d | | 3label-de = HTML-Entität | ||
| 3d-en = HTML character entity name | |||
| 3d-de = HTML-Zeichenentitätsname | |||
| 3stat = optional- | | 3stat = optional- | ||
| 3type = string | | 3type = string | ||
| Line 74: | Line 66: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Multi-template documentation]] | |||
[[Category:Template documentation]] | [[Category:Template documentation]] | ||
[[Category:TemplateData documentation]] | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 07:13, 9 November 2025
Preformatted {{TemplateBox}} for character-substitution templates.
Usage
{{Auxiliary template common notice
|name =
}}
Template parameters
- 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 TemplateData • Commons-specific information
Preformatted {{TemplateBox}} for character-substitution templates.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| HTML Entity | entity | HTML character entity name | String | optional |
| Title | name | name of the template (needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately)
| Template | suggested |
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:
in the '/doc' subpage of a template
Relies on:
- {{Escape template list}}
- {{TemplateBox}}
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)