Jump to content

Module:Country extract

विकिपीडिया से
Rich Farmbrough (बातचीत | योगदान) (Created page with '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...') के द्वारा 02:14, 15 नवंबर 2015 के बदलाव
(अंतर) ← पुरान बदलाव | हाल के संसोधन (अंतर) | नया बदलाव → (अंतर)
मॉड्यूल बिबरनलेख[बनाईं]
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