模块:少女歌剧/images

来自萌娘文库
< 模块:少女歌剧
サンムル讨论 | 贡献2020年8月14日 (五) 17:39的版本 (数据库写入中文名)
跳转至: 导航搜索

此模块的文档可以在模块:少女歌剧/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

function module.officialName(name)
	return map[name][3]
end
	
return module