Template:TemplateDataInfo/toggler

From Wikimedia Commons, the free media repository
Jump to: navigation, search
 Parameter text is empty
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext or the template as described in various Wikipediae.

Discussion
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.


Wikipedia's help about TemplateDataCommons-specific information
https://commons.wikimedia.org/wiki/Template:TemplateDataInfo/toggler
commons.wikimedia.org
crawl=CC-MAIN-2015-32
24069
application/http; msgtype=response
sha1:6E2GC6JZCODMEYCZY4E5Y4AB7WTJHV45
<urn:uuid:dba87087-5a93-4751-a0fb-1a2aa1af2139>
2015-07-29T01:22:12Z
208.80.154.224
sha1:2TBIEGMZHACY5UONPCPKKXJYUDZHJRM2
<urn:uuid:494b796d-4327-49d0-a0a9-940589992d7a>
https://commons.wikimedia.org/wiki/Template:TemplateDataInfo/toggler
response
<urn:uuid:9eb17788-41a5-4a91-bfb2-646bdef5ada9>
robots: classic
hostname: ip-10-236-191-2.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-32
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf