Template:TemplateDataInfo/i18n: Difference between revisions
Template page
More actions
m extending |
Replace language interwiki prefix in helppage with :w: form |
||
| (25 intermediate revisions by 9 users not shown) | |||
| Line 2: | Line 2: | ||
<onlyinclude>{{TemplateDataInfo/layout | <onlyinclude>{{TemplateDataInfo/layout | ||
|title=TemplateData | |title=<translate><!--T:13--> TemplateData</translate> | ||
|text=<translate>[[<tvar | |text=<translate><!--T:1--> [[<tvar name=page>:mw:Special:MyLanguage/Extension:TemplateData</tvar>|TemplateData]] is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines.</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> | ||
|help=<translate>Wikipedia's help about TemplateData</translate> | ---- | ||
|helppage=<translate>: | <u><translate><!--T:9--> Existing template documentation</translate></u><br/> | ||
| | <translate><!--T:8--> | ||
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:10--> Newly created template documentation and imports</translate></u><br/> | |||
<translate><!--T:3--> | |||
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> | |||
|help=<translate><!--T:4--> Wikipedia's help about TemplateData</translate> | |||
|helppage=<translate nowrap><!--T:5--> :w:Wikipedia:VisualEditor/TemplateData/Tutorial</translate> | |||
|info=<translate><!--T:7--> Commons-specific information</translate> | |||
|lang={{TRANSLATIONLANGUAGE}} | |||
}}</onlyinclude> | }}</onlyinclude> | ||
{{translated tag| | {{translated tag|header}} | ||