Template:TemplateDataInfo/i18n/en: Difference between revisions
More actions
Importing a new version from external source |
Importing a new version from external source |
||
| Line 3: | Line 3: | ||
<onlyinclude>{{TemplateDataInfo/layout | <onlyinclude>{{TemplateDataInfo/layout | ||
|title=TemplateData | |title=TemplateData | ||
|text=[[:mw:Special:MyLanguage/Extension: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 [[:mw:Special:MyLanguage/:VisualEditor|VisualEditor]] and possibly other tools like [[Special:MyLanguage/Commons:Upload Wizard|Upload Wizard]]. | |text=[[<tvar|page>:mw:Special:MyLanguage/Extension: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 [[:mw:Special:MyLanguage/:VisualEditor|VisualEditor]] and possibly other tools like [[Special:MyLanguage/Commons:Upload Wizard|Upload Wizard]]. | ||
---- | ---- | ||
<u>Existing template documentation</u><br/> | <u>Existing template documentation</u><br/> | ||
Revision as of 16:03, 30 August 2014
- 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 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 or the template as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information