Module:ArtistData

-- local p = {}

local artistData = mw.loadData('Module:ArtistData/data') local lib       = require('Module:Feature') local userError = require('Dev:User error')

function p.links(frame) local args = {}--; if frame.args == nil then args = lib.arguments(frame) else args = lib.arguments(frame.args) end args[1] = "Joshua 'HUGEnFAST' Brian Smith" local title     = mw.title.getCurrentTitle.rootText local artistname = args[1] or title local s         = "" if artistData[artistname] ~= nil then s = "\n" local ad = artistData[artistname] if ad.Website ~= nil then s = s .. 'Website\n' end if ad.Wikipedia ~= nil then s = s .. 'Wikipedia\n' end if ad.Blog ~= nil then s = s .. 'Blog\n' end if ad.LinkedIn ~= nil then s = s .. 'LinkedIn</li>\n' end if ad.ArtStation ~= nil then s = s .. 'ArtStation</a></li>\n' end if ad.DeviantArt ~= nil then s = s .. 'DeviantArt</a></li>\n' end if ad.Twitch ~= nil then s = s .. 'Twitch</a></li>\n' end if ad.Twitter ~= nil then s = s .. 'Twitter</a></li>\n' end if ad.Youtube ~= nil then s = s .. 'Youtube</a></li>\n' end if ad.Instagram ~= nil then s = s .. 'Instagram</a></li>\n' end s = s .. "<ul>" end mw.log(lib.tbl(artistData[artistname])) return s end

return p -- --