Template:TemplateDataInfo/i18n/sandbox: Difference between revisions
More actions
Mirror |
No edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateDataInfo/layout | {{TemplateDataInfo/layout | ||
|title=<translate><!--T:13--> TemplateData</translate> | |title=<translate><!--T:13--> TemplateData</translate> | ||
|text=<translate><!--T:1--> [[<tvar name=page>:mw:Special:MyLanguage/Extension:TemplateData</tvar>|TemplateData]] is a way | |text=<translate><!--T:1--> [[<tvar name=page>:mw:Special:MyLanguage/Extension:TemplateData</tvar>|TemplateData]] is a way of storing information about a template, such as parameter names, or a description of the template.</translate> <translate><!--T:2--> It is used by [[<tvar name=page2>:mw:Special:MyLanguage/:VisualEditor</tvar>|VisualEditor]] and possibly other tools like [[<tvar name=page3>Special:MyLanguage/Commons:Upload Wizard</tvar>|Upload Wizard]].</translate> | ||
---- | ---- | ||
<u><translate><!--T:9--> Existing template documentation</translate></u><br/> | <u><translate><!--T:9--> Existing template documentation</translate></u><br/> | ||
Revision as of 09:40, 11 December 2023
- TemplateData
TemplateData is a way of storing information about a template, such as parameter names, or a description of the template. 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