Thread:Project:Support desk/How to get TemplateBox to properly generate a “Template data” section?

MediaWiki 1.22alpha (8967ed3) 01:48, 13 September 2013 PHP 5.3.15 (apache2handler) MySQL 5.6.10 Lua 5.1.5 Scribunto (32bb3e2) 21:27, 9 September 2013

what needs to be set-up in a local wiki to get the to properly generate a “Template data” section?


 * 1) install and activate the following Extensions:
 * 2) ParserFunctions
 * 3) Scribunto
 * 4) TemplateData
 * 5) make sure the following Modules are installed:
 * 6) Date
 * 7) JSON
 * 8) Languages
 * 9) TemplateBox

i understand that the “Template data” section on a Template page can be generated using either a section or a &lt;templatedata/> section, however, if i try to copy the source of https://commons.wikimedia.org/wiki/Template:Artwork/doc and save it in my local wiki it does not work. i get “Syntax error in JSON”. i can use the Special:Export and Special:Import pages to create that doc page, but then the “Template data” section of the page still says “Syntax error in JSON”.

even using a simple TemplateBox example does not work locally, using Special:ExpandTemplates, whereas it does work on commons.

TemplateBox example 