Module:Efn native lang

local getArgs = require("Module:Arguments").getArgs local lang = require("Module:Lang").lang local p = {}

function p.main(frame) local args = getArgs(frame) local function nowrap(tag, s) -- Disables wrapping for words under four characters if string.len(s) < 12 then return table.concat{"", lang{tag, s}, " "} else return lang{tag, s}		end end return args[1] == "tw" and frame:expandTemplate{ title = "Efn-ur", args = { name = args.name, require("Module:List").bulleted{ args.t and "Traditional Chinese script: " .. nowrap("zh-Hant-TW", args.t), args.p and "Mandarin Pinyin: " .. lang{"cmn-Latn-TW", args.p}, args.m and "Hokkien: " .. lang{"nan-Latn-TW", args.m}, args.s and "Sixian Hakka: " .. lang{"hak-Latn-TW", args.s}, args.h and "Hailu Hakka: " .. lang{"hak-Latn-TW", args.h}, args.a and "Amis: " .. lang{"ami-Latn-TW", args.a}, args.pw and "Paiwan: " .. lang{"pwn-Latn-TW", args.pw}, args.ma and "Matsu: " .. lang{"cdo-Latn-TW", args.ma}, }		}	} end

return p