Template:TemplateDataInfo/i18n/en: Difference between revisions
More actions
Importing a new version from external source |
Updating to match new version of source page |
||
| 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 other tools. At Wikimedia Commons, we '''discouraged''' implantation of JSON-Data into Wiki-markup. Please avoid putting raw <nowiki><templatedata></nowiki>-tags into the Wikitext. Instead, use {{tl|TemplateBox}} with <code><nowiki>useTemplateData=1</nowiki></code> or <code><nowiki>useTemplateData=only</nowiki></code>. <code><nowiki><nowiki></nowiki></code>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded. | |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 [[<tvar|page2>:mw:Special:MyLanguage/:VisualEditor</>|VisualEditor]] and other tools. At Wikimedia Commons, we '''discouraged''' implantation of JSON-Data into Wiki-markup. At Wikimedia Commons, there is the '''recommendation''' to either use {{tl|TemplateBox}} with <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. <code><nowiki><nowiki></nowiki></code>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded. Please avoid putting raw <tvar|tag><nowiki><templatedata></nowiki></>-tags into the Wikitext. Instead, use <tvar|tag2>{{tl|TemplateBox}}</> with <tvar|param1><code><nowiki>useTemplateData=1</nowiki></code></> or <tvar|param2><code><nowiki>useTemplateData=only</nowiki></code></>. <tvar|tag3><code><nowiki><nowiki></nowiki></code></>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded. | ||
---- | |||
[[Commons:Requests for comment/How Commons should deal with TemplateData|There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.]] | |||
|help=Wikipedia's help about TemplateData | |help=Wikipedia's help about TemplateData | ||
|helppage=:en:Wikipedia:VisualEditor/TemplateData/Tutorial | |helppage=:en:Wikipedia:VisualEditor/TemplateData/Tutorial | ||
Revision as of 08:57, 2 September 2013
- 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 other tools. At Wikimedia Commons, we discouraged implantation of JSON-Data into Wiki-markup. At Wikimedia Commons, there is the recommendation to either use {{TemplateBox}} with 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. Please avoid putting raw <templatedata>-tags into the Wikitext. Instead, use {{TemplateBox}} with useTemplateData=1 or useTemplateData=only. <nowiki>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded.
Wikipedia's help about TemplateData • Commons-specific information