Module:Middle East conflicts map marks/display

MyWikiBiz, Author Your Legacy — Saturday November 30, 2024
< Module:Middle East conflicts map marks
Revision as of 05:00, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Middle East conflicts map marks/display/doc

local p = {}

local m = mw.loadData('Module:Middle East conflicts map marks')

function p.main(frame)
	local out = {}
	for k,v in pairs(m) do
		out[#out + 1] = string.format('\n* %s: [[File:%s|16x16px]]', k, v)
	end
	table.sort(out)
	return frame:expandTemplate{title='Div col', args={colwidth='250px'}} .. table.concat(out) .. frame:expandTemplate{title='Div col end'}
end

return p