Skip to content

Commit

Permalink
refactor(ItemVariants): Ignore subobjects; Order results
Browse files Browse the repository at this point in the history
  • Loading branch information
octfx committed Apr 1, 2024
1 parent c01125b commit b324be6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ItemVariants/ItemVariants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ local function makeSmwQueryObject( page )
smwName,
page
),
'[[Category:+]]', -- Filter out subobjects, i.e. select pages having a category. Warning, order matters? Dont put this above the variant query
'?#-=page',
'?' .. smwName .. '#-=name',
'?Page Image#-=image'
'?Page Image#-=image',
'sort=',
'order=asc',
}

return query
Expand Down

0 comments on commit b324be6

Please sign in to comment.