Line 13: |
Line 13: |
| } | | } |
| | | |
− | local function generateTable(frame) | + | local function render(frame) |
| local shipClass = frame.args[1] | | local shipClass = frame.args[1] |
| local remodelSuffix = frame.args[2] | | local remodelSuffix = frame.args[2] |
Line 19: |
Line 19: |
| local coloring = frame.args[4] | | local coloring = frame.args[4] |
| | | |
− | return render(shipClass, remodelSuffix, notes, coloring) | + | return generateTable(shipClass, remodelSuffix, notes, coloring) |
| end | | end |
| | | |
− | local function render(shipClass, remodelSuffix, notes, coloring, ...) | + | local function generateTable(shipClass, remodelSuffix, notes, coloring, ...) |
| local shipClass = shipClass or frame.args[1] or "??" | | local shipClass = shipClass or frame.args[1] or "??" |
| local success, data = U.loadData("Data/Ship") | | local success, data = U.loadData("Data/Ship") |
Line 65: |
Line 65: |
| | | |
| local function test() | | local function test() |
− | mw.log(render("Destroyer", {"B Kai", "D Kai", "Mk.II", "Zwei"}, | + | mw.log(generateTable("Destroyer", {"B Kai", "D Kai", "Mk.II", "Zwei"}, |
| {"|Mikazuki/Kai_notes = Can equip [[Daihatsu Landing Craft|Daihatsu]]", | | {"|Mikazuki/Kai_notes = Can equip [[Daihatsu Landing Craft|Daihatsu]]", |
| "|Mutsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]]", | | "|Mutsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]]", |