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

来自萌娘文库
跳转至: 导航搜索
第2行: 第2行:
  
 
local map = {
 
local map = {
["karen"] = { "Karen Aijo", "seisho" },
+
    ["karen"] = { "Karen Aijo", "seisho", "爱城华恋" },
["hikari"] = { "Hikari Kagura", "seisho" },
+
    ["hikari"] = { "Hikari Kagura", "seisho", "神乐光" },
["maya"] = { "Maya Tendo", "seisho" },
+
    ["maya"] = { "Maya Tendo", "seisho", "天堂真矢" },
["junna"] = { "Hoshimi Junna", "seisho" },
+
    ["junna"] = { "Hoshimi Junna", "seisho", "星见纯那" },
["mahiru"] = { "Mahiru Tsuyuzaki", "seisho" },
+
    ["mahiru"] = { "Mahiru Tsuyuzaki", "seisho", "露崎真昼" },
["nana"] = { "Karen Aijo", "seisho" },
+
    ["nana"] = { "Karen Aijo", "seisho", "大场奈奈" },
["claudine"] = { "Claudine Saijo", "seisho" },
+
    ["claudine"] = { "Claudine Saijo", "seisho", "西条克洛迪娜" },
["futaba"] = { "Futaba Isurugi", "seisho" },
+
    ["futaba"] = { "Futaba Isurugi", "seisho", "石动双叶" },
["kaoruko"] = { "Kaoruko Hanayagi", "seisho" },
+
    ["kaoruko"] = { "Kaoruko Hanayagi", "seisho", "花柳香子" },
+
   
["akira"] = { "Akira Yukishiro", "siegfelt" },
+
    ["akira"] = { "Akira Yukishiro", "siegfelt", "雪代晶" },
+
   
["kirin"] = { "Kirin", "other" }
+
    ["kirin"] = { "Kirin", "other", "长颈鹿" }
 
}
 
}
  
 
function module.icon(name)
 
function module.icon(name)
return mw.ustring.format("Icn-%s-%s.png", map[name][2], name)
+
    return mw.ustring.format("Icn-%s-%s.png", map[name][2], name)
 
end
 
end
  
 
function module.uniform(name)
 
function module.uniform(name)
return mw.ustring.format("%s uniform.png", map[name][1])
+
    return mw.ustring.format("%s uniform.png", map[name][1])
 
end
 
end
  
 
function module.revue(name)
 
function module.revue(name)
return mw.ustring.format("%s revue.png", map[name][1])
+
    return mw.ustring.format("%s revue.png", map[name][1])
 
end
 
end
  
 
return module
 
return module

2020年8月14日 (五) 17:34的版本

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