Hello,
I need some help with adjusting a panel section inside infoboxes.
I have created the infobox so that only if their x_rarity_primary_ damage or x_rarity_blast_damage values are added, the sections show up in the panels. However, in one case, additional section(s) is/are showing up even when they are empty.
At any instance, either Epic, Rare, Uncommon and Common must show up, or Legendary and Masterwork must show up as the section names. The words bolded here are the rarity in x_rarity_damage or x_rarity_blast_damage. x is a number
Here is the infobox template:
https://anthem.fandom.com/wiki/Template:Infobox-Weapons-Legacy
I'm using this infobox in another page template:
https://anthem.fandom.com/wiki/Template:Weapons-Legacy
This is how it should correctly show up (example):
https://anthem.fandom.com/wiki/Sentinel%27s_Vengeance
However, additional sections are showing up in this case (You can see LEG show up after COMMON in the section name on the desktop site) :
https://anthem.fandom.com/wiki/Aftershock
Data such as RPM, Range, Ammo, and Magazine are not a part of the panel, and are grouped separately without a header. So they are not the ones causing the issue.
The mobile page also behaves similarly, and shown all 6 section names when scrolled from left to right.
Any help or suggestion will be appreciated.