Line 1: |
Line 1: |
| local p = {} | | local p = {} |
− | local remiLib = require("Module:RemiLib") | + | --local remiLib = require("Module:RemiLib") |
| -- Module for enemy encounter tables written by | | -- Module for enemy encounter tables written by |
| -- Remi_Scarlet | | -- Remi_Scarlet |
Line 10: |
Line 10: |
| | | |
| function getLetterNum(x) | | function getLetterNum(x) |
− | local ab = mw.text.split(x, "-")
| + | local ab = mw.text.split(x, "-") |
− | return ab[2] and ab[1] or x:sub(1, 1), ab[2] and ab[2]:sub(1, 1) or x:sub(2, 2)
| + | return ab[2] and ab[1] or x:sub(1, 1), ab[2] and ab[2]:sub(1, 1) or x:sub(2, 2) |
| end | | end |
| -- local letter, num = getLetterNum("A1_xxx") -- A and 1 | | -- local letter, num = getLetterNum("A1_xxx") -- A and 1 |
Line 91: |
Line 91: |
| -- actually discern what "map" it's being used on, I'm just using a hash function on the time of | | -- actually discern what "map" it's being used on, I'm just using a hash function on the time of |
| -- rendering to replace the map identifier. | | -- rendering to replace the map identifier. |
− | local uniqueID = remiLib.timeHash(info) | + | local uniqueID = "" -- remiLib.timeHash(info) |
| | | |
| local classString = "mw-customtoggle-" .. tostring(uniqueID) | | local classString = "mw-customtoggle-" .. tostring(uniqueID) |