Template:TemplateDataInfo/i18n/en: Difference between revisions
Template page
More actions
Updating to match new version of source page |
Replace language interwiki prefix in helppage with :w: form |
||
| (23 intermediate revisions by 2 users not shown) | |||
| 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 | |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]]. | ||
---- | |||
<u>Existing template documentation</u><br/> | |||
At Wikimedia Commons, it is recommended to use {{tl|TemplateBox}} with either <code><nowiki>‎useTemplateData=1</nowiki></code> or <code><nowiki>‎useTemplateData=only</nowiki></code> on the <code><nowiki>‎/doc</nowiki></code> subpage and transcluding it with {{tl|Documentation}} into the template. {{tag|nowiki|o}}-tags can be wrapped around the arguments, if required, to avoid templates being expanded. | |||
<u>Newly created template documentation and imports</u><br/> | |||
Another option, especially for imported templates, or for users with JSON experience, is placing raw {{tag|templatedata|o}}-tags into the Wikitext of the template, as described in various Wikipediae. | |||
|help=Wikipedia's help about TemplateData | |help=Wikipedia's help about TemplateData | ||
|helppage=: | |helppage=:w:Wikipedia:VisualEditor/TemplateData/Tutorial | ||
|info=Commons-specific information | |||
|lang=en | |lang=en | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{translated tag| | {{translated tag|header}} | ||