Difference between revisions of "Talk:Weapons/Extraneous row in melee weapons table"
(New thread: Extraneous row in melee weapons table) |
m (Added followup.) |
||
Line 1: | Line 1: | ||
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. | 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 <nowiki>[[Kind::Weapons| ]]</nowiki> 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 <nowiki>[[Kind::!List]]</nowiki>, 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. |
Latest revision as of 00:14, 22 January 2017
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.