Module:Flag/data/sandbox

विकिपुस्तक से

"इस मॉड्यूल हेतु प्रलेख Module:Flag/data/sandbox/doc पर बनाया जा सकता है"

-- This module stores flag data for [[Module:Flag]].

--------------------------------------------------------------------------------
-- flag data
--------------------------------------------------------------------------------

local data = {
	IND = {
		image = "Flag of India.svg",
		name = "भारत",
	},
	UK = {
		image = "Flag of the United Kingdom.svg",
		name = "यूनाइटेड किंगडम",
	},
	_DEFAULT = {
		image = "Symbol comment vote.svg",
		name = " [[साँचा:Flag/sandbox#Flagerror|झंडा उपलब्ध नहीं]][[श्रेणी:पताका साँचे का त्रुटिपूर्ण प्रयोग करने वाले पृष्ठ]]",
	}
}

--------------------------------------------------------------------------------
-- End icon data
--------------------------------------------------------------------------------

-- Make aliases work the same as normal keys, and remove the "aliases" subtables. 
for k, t in pairs(data) do
	if t.aliases then
		for i, alias in ipairs(t.aliases) do
			data[alias] = t
		end
		t.aliases = nil
	end
	data[k] = t
end

return data