Module:Unofficial/vocadb

-- local p = {}

function p.vocadb(frame) local args = frame:getParent.args local ret = {} local title = mw.title.getCurrentTitle local found for k, v in pairs(args) do       if mw.ustring.sub(k, 0, 6) == 'vocadb' then found = true local suffix if args['p' .. mw.ustring.gsub(k, 7)] then suffix = 'Ar' else suffix = 'S'           end table.insert(ret, '* [https://vocadb.net/') table.insert(ret, suffix) table.insert(ret, '/') table.insert(ret, v)           table.insert(ret, ' Vocaloid Database') end end if not found and title.namespace == 0 then table.insert(ret, '') end return table.concat(ret) end

return p