Module:RosterChangeDataDoc

local util_args = require('Module:ArgsUtil') local util_html = require("Module:HtmlUtil") local util_sort = require("Module:SortUtil") local i18n = require('Module:i18nUtil')

local Sentences = require('Module:RosterChangeData/Sentences') local COLUMNS = { 'key', 'desc', 'howto', 'sentence' }

local h = {}

local p = {} function p.preloads(frame) local args = util_args.merge(true) i18n.init('RosterChangeDataDoc') local tbl = {} for k, v in pairs(Sentences.lookup) do		v.key = k		tbl[#tbl+1] = v	end util_sort.tablesByKeys(tbl, 'key', true) local output = mw.html.create('table') :addClass('wikitable') util_html.printHeaderFromI18n(output, COLUMNS) util_html.printRowsByList(output, tbl, COLUMNS) return output end return p