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:56, 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 lang = require("Module:Lang").lang
local p = {}

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

return p