Module:AppellationTest

local p = {} local getArgs = require('Dev:Arguments').getArgs -- local var = mw.loadData("Module:NAME")

local appell = { ["Keito"] = { ["Kuro"] = "· Kiryu (鬼龍) ", ["Souma"] = "· Kanzaki (神崎) ", },	["Kuro"] = { ["Keito"] = "· Hasumi (蓮巳) · Danna (旦那)", ["Souma"] = "· Kanzaki (神崎)", },	["Souma"] = { ["Keito"] = "· Hasumi-dono (蓮巳殿)", ["Kuro"] = "· Kiryu-dono (鬼龍殿)", } }

function p.main( frame ) local args = getArgs(frame) local char1 = args.char1 or nil local char2 = args.char2 or nil if char1 ~= nil and char2 ~= nil then local result = mw.html.create :wikitext(appell[char1][char2], " ") return result else return "" end end

return p