Cebur nuju daging

Modul:Efn native lang

Saking Wikipédia

Dokuméntasi antuk modul puniki prasida kakardi ring Modul:Efn native lang/doc

local getArgs = require("Modul:Arguments").getArgs
local lang = require("Modul: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{"<span class=\"nowrap\">", lang{tag, s}, "</span>"}
		else
			return lang{tag, s}
		end
	end
	return args[1] == "tw" and frame:expandTemplate{
		title = "Efn-ur",
		args = {
			name = args.name,
			require("Modul:List").bulleted{
				args.t and "[[Aksara_Han_tradisional|Han tradisional]]: " .. nowrap("zh-Hant-TW", args.t),
				args.p and "[[Pinyin]] [[Basa_Mandarin_Taiwan|Mandarin]]: " .. lang{"cmn-Latn-TW", args.p},
				args.m and "[[Basa_Hokkien_Taiwan|Hokkien]]: " .. lang{"nan-Latn-TW", args.m},
				args.s and "Basa Hakka [[dialek Sixian|Sixian]]: " .. lang{"hak-Latn-TW", args.s},
				args.h and "Basa Hakka [[dialek Hailu|Hailu]]: " .. lang{"hak-Latn-TW", args.h},
				args.a and "[[Basa Amis|Amis]]: " .. lang{"ami-Latn-TW", args.a},
				args.pw and "[[Basa Paiwan|Paiwan]]: " .. lang{"pwn-Latn-TW", args.pw},
				args.ma and "[[dialek Matsu|Matsu]]: " .. lang{"cdo-Latn-TW", args.ma},
			}
		}
	}
end

return p