Jump to content

Module:Efn native lang

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ythlev (talk | contribs) at 15:11, 21 November 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	if args[1] == "tw" then
		return frame:expandTemplate{
			title = "efn",
			args = {
				require('Module:List').bulleted(
					args.t and "[[Chinese characters|Chinese script]]: " .. require('Module:Lang').lang("zh-tw", args.t),
					args.p and "[[Taiwanese Mandarin|Mandarin]] [[Pinyin]]: " .. args.p,
					args.m and "[[Taiwanese Hokkien|Minnan]]: " .. args.m,
					args.s and "[[Sixian dialect|Sixian]] [[Taiwanese Hakka|Hakka]]: " .. args.s,
					args.h and "[[Hailu dialect|Hailu]] [[Taiwanese Hakka|Hakka]]: " .. args.h,
					args.d and "Dapu [[Taiwanese Hakka|Hakka]]: " .. args.d,
					args.r and "[[Raoping dialect|Raoping]] [[Taiwanese Hakka|Hakka]]: " .. args.r,
					args.z and "Zao'an [[Taiwanese Hakka|Hakka]]: " .. args.z,
					args.a and "[[Amis language|Amis]]: " .. args.a,
					args.ma and "[[Matsu dialect|Matsu]]: " .. args.ma
				)
			}
		}
	end
end

return p