Template talk:CampaignHero

From Heroes 3 wiki
Jump to navigation Jump to search

A more vertical layout may be better? With what's on the right half being put below instead. It would have a little more room for long names (like Bow of the Sharpshooter) and it could also possibly allow to cut the template's display to avoid showing so many empty boxes when a hero doesn't have all those "sparts" filled. --Turnam (talk) 09:24, 7 January 2025 (UTC)

  • Thank you for the feedback, and I think I know how to implement some of what you said whilst being able to keep all the spart slots open: move all creatures in a vertical layout, possibly move the EXP and move points to below the skills, and free up more space by only having ONE column of sparts (which I can slim down). The empty boxes will still be there (it's impossible to remedy this without making some convoluted expansion code I wouldn't even know how to go about) but they'll be slimmer and give more room for the rest of the page. After all, some heroes (from my browse through the campaign heroes) have almost 20 slots full of spells and artifacts! → Phasma 16:00, 7 January 2025 (UTC)
  • Maybe keep the spells/artifacts separate like they are in the current template? That way you can have many fewer empty boxes as creature/skills can be much less variable. --Legate (talk) 16:37, 7 January 2025 (UTC)
    • It's not as simple as that, because some heroes have more spells and some have more artifacts. The template would be huge trying to accommodate for that, so it's either keep it as it is or resize slightly (which I'm doing) with all the spells/artifact in one column. And then if I separate them, I don't yet know how to code expanding UI with CSS so that's not really doable right now :( → Phasma 17:27, 7 January 2025 (UTC)
    • Never mind, I just understood what you meant, but I'd rather keep it all in one place (in this new template) than separate. → Phasma 17:31, 7 January 2025 (UTC)

Something else is baffling me: I cannot figure out why ONLY (from my testing) the Advanced and Expert Logistics icons refuse to show. They work with other templates and on other pages, so why not here? Very confusing... I won't push this live until it's resolved. → Phasma 20:06, 7 January 2025 (UTC)

  • It is something to do with the #ifexist, because it isn't even trying to put a file there. If you remove it, the icon shows, but then will have an issue if a hero doesn't use that ss slot. --Legate (talk) 20:29, 7 January 2025 (UTC)
  • Got it. Use #if to check if a variable is set, #ifexist is to check if a file is there. --Legate (talk) 20:34, 7 January 2025 (UTC)
    • Oh my goodness, thank you for fixing that - good spot! So weird that it only affected two inputs... but well done! → Phasma 21:37, 7 January 2025 (UTC)