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

[Resolved] see | 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 http://gwtoolset.wmflabs.org/wiki/Template:TemplateBox/doc

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
 * 10) Special:Import the Template:TemplateBox

Template data section i understand that the “Template data” section on a Template page can be generated using either a or a &lt;templatedata/> section in the template. creating a test template with a &lt;templatedata section works, however, creating a simple TemplateBox section in the template yields a “Syntax error in JSON” in the “Template data” section.

TemplateBox example 

Special:Import vs Manual Copy
 * 1) i copied the TemplateBox source from https://commons.wikimedia.org/wiki/Template:TemplateBox using the Special:Export from that wiki and the Special:Import in the local wiki.
 * 2) i also did the same for any missing templates that showed up in the “Templates used on this page” section.
 * 3) The odd thing is that “Templates used on this page” section is different between commons and the local wiki. usually the local wiki will show in red any missing templates.
 * 4) because there was a difference i tried to manually copy the contents of the Template:TemplateBox/doc from commons to the local wiki. that didn't work; the local wiki wouldn’t let me save the page. it gave me a “Syntax error in JSON” message instead.
 * 5) so i ran a Special:Export and Special:Import for the missing templates i noticed between the two wikis and those extra templates still don't show under “Templates used on this page” section of the local wiki.