Template:TemplateDataInfo/i18n/en: Difference between revisions

From The FunKey Wiki
Content deleted Content added
m 1 revision imported
FuzzyBot (talk | contribs)
Updating to match new version of source page
Line 6: Line 6:
----
----
<u>Existing template documentation</u><br/>
<u>Existing template documentation</u><br/>
At Wikimedia Commons, it is recommended to use {{tl|TemplateBox}} with either <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 arguments, if required, to avoid templates being expanded.<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/>
<u>Newly created template documentation and imports</u><br/>
Another option, especially for imported templates, or for users with JSON experience, is placing raw <nowiki><templatedata></nowiki>-tags into the Wikitext of the template, as described in various Wikipediae.
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.


<u>Discussion</u><br/>
<u>Discussion</u><br/>
Line 16: Line 16:
|helppage=:en:Wikipedia:VisualEditor/TemplateData/Tutorial
|helppage=:en:Wikipedia:VisualEditor/TemplateData/Tutorial
|info=Commons-specific information
|info=Commons-specific information
|lang={{#invoke:Caller title|lang|base=Template:TemplateDataInfo/i18n}}
|lang=en
}}</onlyinclude>
}}</onlyinclude>