Module:Enemy List: Difference between revisions

search will now include versions of monsters that have versions, and only display the default version, using the name of the overall monster and not the specific version
m (add purge link)
(search will now include versions of monsters that have versions, and only display the default version, using the name of the overall monster and not the specific version)
Line 60:
local row = out:tag('tr')
:tag('td'):wikitext(monster.Image):done()
:tag('td'):wikitext(('[[%s]]'):format(monster[1'Name'])):done()
:tag('td'):wikitext(monster['Unlock level']):done()
:tag('td'):wikitext(monster['Profession Level A']):done()
Line 100:
local row = out:tag('tr')
:tag('td'):wikitext(monster.Image):done()
:tag('td'):wikitext(('[[%s]]'):format(monster[1'Name'])):done()
:tag('td'):wikitext(monster['Unlock level']):done()
:tag('td'):wikitext(monster['Unlock level'] and monster['Unlock level'] + 20):done()
Line 121:
function p._main(profession, passive)
local data = mw.smw.ask{
'[[CategoryInfobox:Monsters:Monster]]',
('[[Profession A::%s]]'):format(profession),
('[[Passive::%s]]'):format(passive and 'true' or 'false'),
Line 134:
'?Experience',
'?Quest',
'?Name',
'?Knowledge',
'?Variant of#-',
'?Version anchor',
'?Version default',
'sort=Profession Level A',
'order=asc',
Line 142 ⟶ 145:
 
data = Array.filter(data, function(monster)
return monster.Quest == nil and monster[1] ~= '[[:Training Dummy|Training Dummy]]' and ( monster['Version default'] or not(monster['Version anchor'] or false) )
end)
 
21,691

edits