Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TemplateDataInfo/i18n: Difference between revisions

Template page
mNo edit summary
m Use new <tvar> syntax
Line 4: Line 4:
|title=TemplateData
|title=TemplateData
|text=<translate><!--T:1-->
|text=<translate><!--T:1-->
[[<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.</translate> <translate><!--T:2-->
[[<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|page2>:mw:Special:MyLanguage/:VisualEditor</>|VisualEditor]] and possibly other tools like [[<tvar|page3>Special:MyLanguage/Commons:Upload Wizard</>|Upload Wizard]].</translate>
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:9-->
<u><translate><!--T:9-->
Existing template documentation</translate></u><br/>
Existing template documentation</translate></u><br/>
<translate><!--T:8-->
<translate><!--T:8-->
At Wikimedia Commons, it is recommended to use <tvar|tag2>{{tl|TemplateBox}}</> with either <tvar|param1><code><nowiki>useTemplateData=1</nowiki></code></> or <tvar|param2><code><nowiki>useTemplateData=only</nowiki></code></> on the <tvar|relPage><code><nowiki>/doc</nowiki></code></> subpage and transcluding it with <tvar|template>{{tl|Documentation}}</> into the template. <tvar|tag3><code><nowiki><nowiki></nowiki></code></>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.</translate><br/>
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><code><nowiki><nowiki></nowiki></code></tvar>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.</translate><br/>


<u><translate><!--T:10-->
<u><translate><!--T:10-->
Newly created template documentation and imports</translate></u><br/>
Newly created template documentation and imports</translate></u><br/>
<translate><!--T:3-->
<translate><!--T:3-->
Another option, especially for imported templates, or for users with JSON experience, is placing raw <tvar|tag><nowiki><templatedata></nowiki></>-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><nowiki><templatedata></nowiki></tvar>-tags into the Wikitext of the template, as described in various Wikipediae.</translate>


<u><translate><!--T:11-->
<u><translate><!--T:11-->
Cookies help us deliver our services. By using our services, you agree to our use of cookies.