Talk:Weapons/Extraneous row in melee weapons table

From RimWorld Wiki
< Talk:Weapons
Revision as of 00:14, 22 January 2017 by Jimyoda (talk | contribs) (Added followup.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I see Neolithic Weapons is listed in a row on the melee weapons table. I'll try to fix it (it won't be quick or simple), but will explain what's going on here. The page Neolithic Weapons is transcluding the infoboxes of various weapons. Infoboxes set properties on whatever page they're displayed on. The melee weapons table is using a query (where melee cooldown base is greater than zero) to figure out what items/pages to display. That query result includes the Neolithic Weapons page, because it technically has the melee cooldown property (multiple in fact, one for each weapon displayed). The fix is to adjust the query such that it excludes the Neolithic Weapons page. Even that is not straight-forward, but believe I know how to do it. A few other pages run into this issue too. That's why I started moving away from transcluding infoboxes on the Production page.

Followup: I came up with a solution, using properties. I added [[Kind::Weapons| ]] to each melee weapon. Any text after the pipe becomes the link; when there's just a space nothing is displayed (as desired in this case). The query on Concept:Melee_Weapons now has the criteria [[Kind::!List]], which includes any page that has Kind set to anything except List. This effectively excludes the Neolithic Weapons page and the end result is that Neolithic Weapons no longer appears on the list of melee weapons.