---------- Module:WikiLoop ----------------local p = local supported_languages =
-- Returns the conflict tablelocal function parseConflictValueObject(frame) local qid = frame.args.qid -- Qnum id local conflict_value_object = -- out = for i, lang in ipairs(supported_languages) do local prefix = "lang_" .. lang if frame.args["lang_" .. lang] ~= nil then local site_link = mw.wikibase.getSitelink(qid, lang.."wiki") local value = frame.args[prefix] conflict_value_object[lang] = end end return conflict_value_objectend
local function conflictValueObjectToTableData(conflict_value_object) local headers = local rows = for lang, value_pair in pairs(conflict_value_object) do table.insert(rows,) end return end
local function printTableHtml(table_data) local column_headers = table_data[1] local rows = table_data[2]
local output = "
" .. th .. " |
---|
" .. col .. " |
function p.PrintConflictTable(frame) conflict_value_object = parseConflictValueObject(frame) table_data = conflictValueObjectToTableData(conflict_value_object) return printTableHtml(table_data)end
return p