Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K 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:Auxiliary template common notice/doc: Difference between revisions

Template page
Create documentation subpage for {{Auxiliary template common notice}}
 
Line 10: Line 10:
| namespace = Template
| namespace = Template
| usergroup = all
| usergroup = all
| relieson  = {{Tl|Escape template list}}
| relieson  =
* {{tld|Escape template list}}
| placement = {{LangSwitch
| placement = {{LangSwitch
| en = in the '/doc' subpage of a template
| en = in the '/doc' subpage of a template
Line 26: Line 27:


| 1 = name
| 1 = name
| 1default = <nowiki>{{</nowiki>BASEPAGENAME<nowiki>}}</nowiki>
| 1default = <nowiki>{{BASEPAGENAME}}</nowiki>
| 1stat = required
| 1stat = required
| 1type = wiki-template-name
| 1type = wiki-template-name


| 1label = title
| 1label-en = Title
| 1label-de = Titel
| 1label-de = Titel
| 1label-et = pealkiri
| 1label-et = pealkiri
Line 39: Line 40:
| 1label-pt = título
| 1label-pt = título


| 1d     = name of the template <small>''(needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately)''</small>
| 1d-en  = name of the template <small>''(needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately)''</small>
| 1d-bar = Name vo da Vurlog <small>''(den braucht ma, um de Dokumentazion auf a åndern Seit ois auf da Vurlgnseitn — speziell auf da Dokumentationsseitn soibst — dårstoin zum kenna)''</small>
| 1d-bar = Name vo da Vurlog <small>''(den braucht ma, um de Dokumentazion auf a åndern Seit ois auf da Vurlgnseitn — speziell auf da Dokumentationsseitn soibst — dårstoin zum kenna)''</small>
| 1d-de  = Name der Vorlage <small>''(wird benötigt um die Dokumentation auf einer anderen Seite als der Vorlagenseite — insbesondere auf der Dokumentationsseite selbst — darstellen zu können)''</small>
| 1d-de  = Name der Vorlage <small>''(wird benötigt um die Dokumentation auf einer anderen Seite als der Vorlagenseite — insbesondere auf der Dokumentationsseite selbst — darstellen zu können)''</small>
Line 53: Line 54:
| 2type = string
| 2type = string


| 2label   = description
| 2label-en = Description
| 2label-de = Beschreibung
| 2label-de = Beschreibung
| 2label-et = kirjeldus
| 2label-et = kirjeldus
Line 60: Line 61:
| 2label-pt = descrição
| 2label-pt = descrição


| 2d   = description of what the template does
| 2d-en = description of what the template does
| 2d-et = kirjeldus sellest, mida mall teeb
| 2d-et = kirjeldus sellest, mida mall teeb
| 2d-hu = Sablon leírása
| 2d-hu = Sablon leírása
Line 68: Line 69:
| 3      = entity
| 3      = entity
| 3label = HTML Entity
| 3label = HTML Entity
| 3d     = HTML character entity name
| 3d-en  = HTML character entity name
| 3stat  = optional-
| 3stat  = optional-
| 3type  = string
| 3type  = string
Line 74: Line 75:
<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>

Revision as of 03:50, 13 June 2021

Preformatted {{TemplateBox}} for character-substitution templates.

Usage

{{Auxiliary template common notice
 |name =
 |desc =
}}

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 TemplateData • Commons-specific information

Preformatted {{TemplateBox}} for character-substitution templates.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondesc

description of what the template does

Stringrequired
HTML Entityentity

HTML character entity name

Stringoptional
Titlename

name of the template <small>''(needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately)''</small>

Default
{{BASEPAGENAME}}
Templaterequired

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:

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