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 00:11, 19 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 = {
				frame:expandTemplate{
					title = "Bulleted list",
					args = {
						args.t and "[[Chinese characters|Chinese script]]: " .. 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
					}
				}
			}
		}
	end
end

return p