diff --git a/src/uncategorized/buildingWidgets.tw b/src/uncategorized/buildingWidgets.tw index 4f2bd8d8869cad66f14f2b25e9776f06e1c08294..947f3c0e2e4bfb66ed13a481c1b8551c73a97510 100644 --- a/src/uncategorized/buildingWidgets.tw +++ b/src/uncategorized/buildingWidgets.tw @@ -54,6 +54,7 @@ Yes, I am aware this is horrible. If anyone can figure out how to get widgets to </style> <<script>> +/* This code only runs once per page load */ if(!Macro.has('sectorblock')) { /* Usage: <<sectorblock sector index "other text (optional)">> */ Macro.add('sectorblock', { @@ -102,7 +103,6 @@ if(!Macro.has('sectorblock')) { }, handler() { - console.log(this); let sec = this.args[0]; if(!sec || !sec.type) { return; @@ -116,7 +116,6 @@ if(!Macro.has('sectorblock')) { + '[[' + name + '|' + basetype + '][$AS=' + this.args[1] + ']]' + (meta.extra || '') + (this.args[2] || '') + '</td>'; - console.log(text); new Wikifier(this.output, text); }, });