diff --git a/js/WikiTextRenderer.js b/js/WikiTextRenderer.js
index 5239a8b38..e770bf876 100644
--- a/js/WikiTextRenderer.js
+++ b/js/WikiTextRenderer.js
@@ -79,6 +79,20 @@ WikiTextRenderer.prototype.toString = function(type) {
[HTML.text(node.step.toString())],
[HTML.text(node.type.toString())]
));
+ if(node.macro) {
+ ret.push(HTML.splitLabel(
+ "macro",
+ [HTML.text("macro")],
+ [HTML.text(node.macro)]
+ ));
+ }
+ if(node.params) {
+ ret.push(HTML.splitLabel(
+ "params",
+ [HTML.text("params")],
+ [HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"
"))]
+ ));
+ }
if(node.dependencies) {
var dependencies = [];
for(var d in node.dependencies) {
@@ -98,20 +112,6 @@ WikiTextRenderer.prototype.toString = function(type) {
dependencies
));
}
- if(node.macro) {
- ret.push(HTML.splitLabel(
- "macro",
- [HTML.text("macro")],
- [HTML.text(node.macro)]
- ));
- }
- if(node.params) {
- ret.push(HTML.splitLabel(
- "params",
- [HTML.text("params")],
- [HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"
"))]
- ));
- }
if(node.content) {
ret.push(HTML.splitLabel(
"content",