Module:formatting: Difference between revisions

Created page with "local export function export.wrap_text(text, language, face) local faces = mw.loadData("Module:formatting/data")["faces"] local data = faces[face] or faces["nil"] local function compile_tags() local tags = {} if data.class and data.class ~= "" then table.insert(tags, 'class="' .. data.class .. '"') end if language then table.insert(tags, 'lang="' .. language.code .. '"') end end return (data.prefix or "") .. "<" .. data.tag .. " " .. compile_tags()..."
(Created page with "local export function export.wrap_text(text, language, face) local faces = mw.loadData("Module:formatting/data")["faces"] local data = faces[face] or faces["nil"] local function compile_tags() local tags = {} if data.class and data.class ~= "" then table.insert(tags, 'class="' .. data.class .. '"') end if language then table.insert(tags, 'lang="' .. language.code .. '"') end end return (data.prefix or "") .. "<" .. data.tag .. " " .. compile_tags()...")
(No difference)