Template talk:Creature comparison 'see also'

From Heroes 3 wiki
Revision as of 19:43, 27 September 2024 by Turnam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Look at this page with HotA disabled. How can we fix this? - Csaros (talk)

The issue is that when having * {{showwithhota|blah}}, the content switch is on what's on the list item line; not on the list item itself. You need to have the list item itself get hidden, and for this I saw no other method than using HTML directly in the page. The next issue is that MediaWiki automatically closes a list after the last * bullet point in a sequence, so the HTML list items added after don't get to be part of the list. So I had to cheat and make a new unordered list in HTML too. The bonus is that the hota class can be moved to the new unordered list and the list items don't need to carry it anymore. The bad news is that we have two separate lists instead of just one list with conditional elements. But I think that's the best we can get with those content switches. --Turnam (talk) 19:43, 27 September 2024 (UTC)