8,756
edits
mNo edit summary |
(fixed liquid favilink) |
||
Line 5: | Line 5: | ||
local util_table = require('Module:Table Utility') | local util_table = require('Module:Table Utility') | ||
local util_text = require('Module:Text Utility') | local util_text = require('Module:Text Utility') | ||
local favilink = require('Module:Favilink') | |||
local COLUMNS = { 'Liquid', 'Factions' } | local COLUMNS = { 'Liquid', 'Factions' } | ||
Line 11: | Line 12: | ||
local p = {} | local p = {} | ||
function p.main(frame) | function p.main(frame) | ||
frame=mw.getCurrentFrame() | |||
local data = h.makeAndRunQuery(nil) | local data = h.makeAndRunQuery(nil) | ||
h.formatRows(data) | h.formatRows(data) | ||
Line 39: | Line 42: | ||
function h.getFields() | function h.getFields() | ||
return { | return { | ||
' | 'WaterRitualLiquid=Liquid' | ||
} | } | ||
end | end | ||
Line 49: | Line 52: | ||
function h.formatOneRow(row) | function h.formatOneRow(row) | ||
row.Factions = util_table.concat(row.Factions, ' • ') | row.Factions = util_table.concat(row.Factions, ' • ') | ||
row.Liquid = favilink.modulefavilink(row.Liquid) | |||
end | end | ||