Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Format expansion icon directly
(Add override for item '?????')
(Format expansion icon directly)
Line 1,342: Line 1,342:
--Adding a shortcut function for this
--Adding a shortcut function for this
function p.TotH()
function p.TotH()
return p.Icon({'Throne of the Herald Expansion', notext=true, img='TotH', alt=''})
return mw.html.create('span')
:addClass('img-text')
:wikitext('[[File:TotH.png|25x25px|link=Throne of the Herald Expansion]]')
:done()
end
end


function p.AoD()
function p.AoD()
return p.Icon({'Atlas of Discovery Expansion', notext=true, img='AoD', alt=''})
return mw.html.create('span')
:addClass('img-text')
:wikitext('[[File:AoD.png|25x25px|link=Atlas of Discovery Expansion]]')
:done()
end
end


function p.ItA()
function p.ItA()
return p.Icon({'Into the Abyss Expansion', notext=true, img='ItA', alt=''})
return mw.html.create('span')
:addClass('img-text')
:wikitext('[[File:ItA.png|25x25px|link=Into the Abyss Expansion]]')
:done()
end
end


-- Icon to signify base game
function p.Melvor()
function p.Melvor()
return p.Icon({'Full Version', notext=true, img='Melvor_Logo', ext='svg', alt=''})
return mw.html.create('span')
:addClass('img-text')
:wikitext('[[File:Melvor_Logo.svg|25x25px|link=Full Version]]')
:done()
end
end


2,875

edits