Module:Enemy List: Difference between revisions

Commas
(Deal with pages that have a {{LocationList}} of the variant category)
(Commas)
 
(One intermediate revision by the same user not shown)
Line 3:
local album_xp_data = require('Module:Experience/data').album
local Array = require('Module:Array')
local lang = mw.language.getContentLanguage()
 
local function formatNum(n)
if n == nil then
return ''
end
return lang:formatNum(n)
end
 
local p = {}
Line 51 ⟶ 59:
:tag('td'):wikitext(monster['Unlock level']):done()
:tag('td'):wikitext(monster['Profession Level A']):done()
:tag('td'):wikitext(formatNum(monster.Health)):done()
:tag('td'):wikitext(format_attack_style(monster['Attack style'])):done()
:tag('td'):wikitext(format_attack_style(monster['Immune to'])):done()
Line 62 ⟶ 70:
row
:tag('td'):wikitext(table.concat(location_text, ', ')):done()
:tag('td'):wikitext(formatNum(monster.Experience)):done()
:tag('td'):wikitext(formatNum(monster['Album XP'])):done()
end
 
Line 94 ⟶ 102:
 
data = Array.filter(data, function(monster)
return monster.Quest == nil and monster.Name[1] ~= '[[:Training Dummy|Training Dummy]]'
end)
 
411

edits