Module:MonsterVariantsTable: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Remove border between image and name)
(look only for version type subobjects, not all subobjects, when filtering)
 
Line 31: Line 31:
'?Variant name = variant',
'?Variant name = variant',
'?Version anchor = version',
'?Version anchor = version',
'?-Has subobject#- = subobject',
'?-Version subobject#- = superobject',
'sort=Profession Level A',
'sort=Profession Level A',
'order=asc'
'order=asc'
Line 50: Line 50:
for _, entry in ipairs(data) do
for _, entry in ipairs(data) do
if entry.default then
if entry.default then
entry.page = ('[[%s|%s]]'):format(entry.subobject, entry.name)
entry.page = ('[[%s|%s]]'):format(entry.superobject, entry.name)
table.insert(filtered, entry)
table.insert(filtered, entry)
elseif entry.version == nil then
elseif entry.version == nil then