diff --git a/core/modules/parsers/wikiparser/rules/transcludeblock.js b/core/modules/parsers/wikiparser/rules/transcludeblock.js index b41d24e19..c033c2440 100644 --- a/core/modules/parsers/wikiparser/rules/transcludeblock.js +++ b/core/modules/parsers/wikiparser/rules/transcludeblock.js @@ -41,7 +41,7 @@ exports.parse = function() { }; $tw.utils.each(params,function(paramValue,index) { var name = "" + index; - transcludeNode.attributes["" + index] = { + transcludeNode.attributes[name] = { name: name, type: "string", value: paramValue diff --git a/core/modules/parsers/wikiparser/rules/transcludeinline.js b/core/modules/parsers/wikiparser/rules/transcludeinline.js index 6358fd28f..3ce9dc78e 100644 --- a/core/modules/parsers/wikiparser/rules/transcludeinline.js +++ b/core/modules/parsers/wikiparser/rules/transcludeinline.js @@ -40,7 +40,7 @@ exports.parse = function() { }; $tw.utils.each(params,function(paramValue,index) { var name = "" + index; - transcludeNode.attributes["" + index] = { + transcludeNode.attributes[name] = { name: name, type: "string", value: paramValue