“模块:少女歌剧/images”的版本间的差异

来自萌娘文库
跳转至: 导航搜索
第12行: 第12行:
 
["kaoruko"] = { "Kaoruko Hanayagi", "seisho" },
 
["kaoruko"] = { "Kaoruko Hanayagi", "seisho" },
 
 
["akira"] = { "Akira Yukishiro", "siegfeld" },
+
["akira"] = { "Akira Yukishiro", "siegfelt" },
 
 
 
["kirin"] = { "Kirin", "other" }
 
["kirin"] = { "Kirin", "other" }

2020年8月14日 (五) 00:07的版本

此模块的文档可以在模块:少女歌剧/images/doc创建

local module = {}

local map = {
	["karen"] = { "Karen Aijo", "seisho" },
	["hikari"] = { "Hikari Kagura", "seisho" },
	["maya"] = { "Maya Tendo", "seisho" },
	["junna"] = { "Hoshimi Junna", "seisho" },
	["mahiru"] = { "Mahiru Tsuyuzaki", "seisho" },
	["nana"] = { "Karen Aijo", "seisho" },
	["claudine"] = { "Claudine Saijo", "seisho" },
	["futaba"] = { "Futaba Isurugi", "seisho" },
	["kaoruko"] = { "Kaoruko Hanayagi", "seisho" },
	
	["akira"] = { "Akira Yukishiro", "siegfelt" },
	
	["kirin"] = { "Kirin", "other" }
}

function module.icon(name)
	return mw.ustring.format("Icn-%s-%s.png", map[name][2], name)
end

function module.uniform(name)
	return mw.ustring.format("%s uniform.png", map[name][1])
end

function module.revue(name)
	return mw.ustring.format("%s revue.png", map[name][1])
end

return module