Module:ISO 3166 and Module:ISO 3166/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Decode HTML entities (passed from wikidata?) |
Fail faster if parameter exists but is blank |
||
Line 7: | Line 7: | ||
local p = {} |
local p = {} |
||
local getArgs = require("Module:Arguments").getArgs |
local getArgs = require("Module:Arguments").getArgs |
||
local data = mw.loadData("Module:ISO 3166/data/National") |
local data = mw.loadData("Module:ISO 3166/data/National/sandbox") |
||
--[[----------F I N D N A M E----------]]-- -- Finds the name in the database |
--[[----------F I N D N A M E----------]]-- -- Finds the name in the database |
||
Line 72: | Line 72: | ||
} |
} |
||
text = mw.text.decode(text) -- Decode HTML entities (passed from wikidata?) |
|||
text = mw.text.unstripNoWiki(text) -- Remove <nowiki> tags |
text = mw.text.unstripNoWiki(text) -- Remove <nowiki> tags |
||
text = mw.ustring.upper(text) -- Case insensitivity |
text = mw.ustring.upper(text) -- Case insensitivity |