Trying to make a table full of clickable links to other passages. Not sure how to continue from this point, but I think the code is self-explanatory enough.
macros.add("hublinks", { version: {major: 1, minor: 0, revision: 0 }, handler: function (place, macroName, params, parser) { if (this.args.length < 1) { return "Enter the hub variable"; } var tab = document.createElement("table"); tab.id = "hubtable"; var row = tab.insertRow(0); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell1.innerHTML = "Wikifier who now?"; cell2.innerHTML = "I'd appreciate a link in here."; this.output.appendChild(tab); } });