Jump to content

Module:Country extract

From Simple English Wikipedia, the free encyclopedia
Revision as of 02:14, 15 November 2015 by Rich Farmbrough (talk | changes) (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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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