Template:TemplateDataInfo/i18n/sandbox: Difference between revisions
Template page
More actions
Mirror |
Replace language interwiki prefix in helppage with :w: form |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateDataInfo/layout | {{TemplateDataInfo/layout | ||
|title=<translate><!--T: | |title=<translate><!--T:1--> TemplateData</translate> | ||
|text=<translate><!--T: | |text=<translate><!--T:2--> [[<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:3--> 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: | <u><translate><!--T:4--> Existing template documentation</translate></u><br/> | ||
<translate><!--T: | <translate> | ||
<!--T:5--> | |||
At Wikimedia Commons, it is recommended to use <tvar name=tag2>{{tl|TemplateBox}}</tvar> with either <tvar name=param1><code><nowiki>‎useTemplateData=1</nowiki></code></tvar> or <tvar name=param2><code><nowiki>‎useTemplateData=only</nowiki></code></tvar> on the <tvar name=relPage><code><nowiki>‎/doc</nowiki></code></tvar> subpage and transcluding it with <tvar name=template>{{tl|Documentation}}</tvar> into the template. <tvar name=tag3>{{tag|nowiki|o}}</tvar>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.</translate> | At Wikimedia Commons, it is recommended to use <tvar name=tag2>{{tl|TemplateBox}}</tvar> with either <tvar name=param1><code><nowiki>‎useTemplateData=1</nowiki></code></tvar> or <tvar name=param2><code><nowiki>‎useTemplateData=only</nowiki></code></tvar> on the <tvar name=relPage><code><nowiki>‎/doc</nowiki></code></tvar> subpage and transcluding it with <tvar name=template>{{tl|Documentation}}</tvar> into the template. <tvar name=tag3>{{tag|nowiki|o}}</tvar>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.</translate> | ||
<u><translate><!--T: | <u><translate><!--T:6--> Newly created template documentation and imports</translate></u><br/> | ||
<translate><!--T: | <translate> | ||
<!--T:7--> | |||
Another option, especially for imported templates, or for users with JSON experience, is placing raw <tvar name=tag>{{tag|templatedata|o}}</tvar>-tags into the Wikitext of the template, as described in various Wikipediae.</translate> | Another option, especially for imported templates, or for users with JSON experience, is placing raw <tvar name=tag>{{tag|templatedata|o}}</tvar>-tags into the Wikitext of the template, as described in various Wikipediae.</translate> | ||
<u><translate><!--T: | <u><translate><!--T:8--> Discussion</translate></u><br/> | ||
[[Commons:Requests for comment/How Commons should deal with TemplateData|<translate><!--T: | [[Commons:Requests for comment/How Commons should deal with TemplateData|<translate><!--T:9--> 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.</translate>]] | ||
|help=<translate><!--T: | |help=<translate><!--T:10--> Wikipedia's help about TemplateData</translate> | ||
|helppage=<translate nowrap><!--T: | |helppage=<translate nowrap><!--T:11--> :w:Wikipedia:VisualEditor/TemplateData/Tutorial</translate> | ||
|info=<translate><!--T: | |info=<translate><!--T:12--> Commons-specific information</translate> | ||
|lang={{#invoke:Caller title|lang|base=Template:TemplateDataInfo/i18n}} | |lang={{#invoke:Caller title|lang|base=Template:TemplateDataInfo/i18n}} | ||
}} | }} | ||