Template talk:Creature comparison 'see also': Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "Look at this page with HotA disabled. How can we fix this? - ~~~")
 
mNo edit summary
 
Line 1: Line 1:
Look at this page with HotA disabled. How can we fix this? - [[User:Csaros|Csaros]] ([[User talk:Csaros|talk]])
Look at this page with HotA disabled. How can we fix this? - [[User:Csaros|Csaros]] ([[User talk:Csaros|talk]])
:The issue is that when having <nowiki>* {{showwithhota|blah}}</nowiki>, 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. --[[User:Turnam|Turnam]] ([[User talk:Turnam|talk]]) 19:43, 27 September 2024 (UTC)

Latest revision as of 19:43, 27 September 2024

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)