Module:Iconflags

--[[ Module:Iconflags A unified module for HPW's icon, flag and fontawesome classes by Mfaizsyahmi, 2017

notes: 1. The express intent of this module is to try and incorporate emoji regional indicator (flags) and other emoji. 2. Support using useemoji argument, taking value of o (oasis), m (mobile) or a combination of both (om, mo) indicating for which skin emoji should be used. ]] local getArgs = require("Dev:Arguments").getArgs local p = {}

local regTbl = { a = "🇦", b = "🇧", c = "🇨", d = "🇩", e = "🇪", f = "🇫", g = "🇬", h = "🇭", i = "🇮", j = "🇯", k = "🇰", l = "🇱", m = "🇲", n = "🇳", o = "🇴", p = "🇵", q = "🇶", r = "🇷", s = "🇸", t = "🇹", u = "🇺", v = "🇻", w = "🇼", x = "🇽", y = "🇾", z = "🇿" }

-- returns regional indicator characters of the input string local function emojiReg(str) -- do stuff local s = mw.ustring.lower(str) for i in mw.ustring.len(s) do       --local c = mw.ustring. end end

function p.icon(frame) local args = getArgs(frame) -- do stuff end

function p.flag(frame) local args = getArgs(frame) if args.useemoji=='o' then return end end

function p.fa(frame) -- do stuff end

function p.test(frame) return "🇩🇪✋" end

return p