Module:灰烬战线links
跳到导航
跳到搜索
local getArgs = require('Module:Arguments').getArgs local data = mw.loadData("Module:灰烬战线links/Data") local p = {} function p.main(frame) local args = getArgs(frame) return p._main(args) end function p._main(args) local linkList = {} for _, v in ipairs(args) do if v ~= "end" then if data[v] then table.insert(linkList, '[[灰烬战线:' .. data[v]["link"] .. '|<span style="background:' .. data[v]["color"] .. '">' .. data[v]["display"] .. '</span>]]') else table.insert(linkList, '[[灰烬战线:' .. v .. "|" .. v .. "]]") end end end return table.concat(linkList, " • ") end return p