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/en: Difference between revisions

Template page
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, 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 Wikitext. 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 pre-processed.
|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>&lrm;useTemplateData=1</nowiki></code> or <code><nowiki>&lrm;useTemplateData=only</nowiki></code> on the <code><nowiki>&lrm;/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=:en:Wikipedia:VisualEditor/TemplateData/Tutorial
|helppage=:w:Wikipedia:VisualEditor/TemplateData/Tutorial
|info=Commons-specific information
|lang=en
|lang=en
}}</onlyinclude>
}}</onlyinclude>


{{translated tag|info}}
{{translated tag|header}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.