Module:Country extract
Appearance
मॉड्यूल बिबरनलेख[बनाईं]
You might want to बनाईं a documentation page for this Scribunto module. संपादक लोग एह मॉड्यूल के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना पर अभ्यास भा प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह मॉड्यूल के उपपन्ना (सबपेज) देखीं। |
local p = {}
--[[
to enable us to replicate the current functioning of CountryAbbr and CountryAbbr2
We need to deal with
1 alternative names ISO 3166 should do that
]]
function p.extractCountry(frame)
local rv= mw.ustring.toNFC (frame.args[1])
rv = mw.ustring.gsub(rv,"{{","")
return rv
end
--[[
]]
function p.helper(frame)
local rv= mw.ustring.toNFC (frame.args[1])
return rv
end
return p