Template talk:CnTest
Where are the newlines coming from?
- It looks like the CreatureNew template refuses to be inside of a paragraph block (<p></p>), even when it is a popup and doesn't actually appear. Is there some way to fix this in the javascript or something for the popupable class? --Legate (talk) 20:42, 21 August 2025 (UTC)
- No idea where its coming from. Do you think it'll be a problem to use string replace like this as a solution? –imahero 21:04, 21 August 2025 (UTC)
- Haha, that is a clever solution for getting rid of an unknown newline! That definitely makes the table nicer, but I think it is actually a paragraph block issue. I can see a structural difference using Chrome's Dev Tools (i.e. right-click>inspect), but I am not yet good enough to be able to trace down how it is getting added. --Legate (talk) 21:21, 21 August 2025 (UTC)
- The solution seems to be to make a separate popupables section. Call Template:CnPopup with the same parameters as CnTest. Put them all together at the bottom of the page. Should be easy to automate adding CnPopups for all the existing Cn. Are you satisfied with this solution? –imahero 21:52, 21 August 2025 (UTC)
- I've written the code to add equivalent CnPopups for every Cn on each page (namespace=0). I'll run it if you give the go ahead. –imahero 06:02, 22 August 2025 (UTC)
- The solution seems to be to make a separate popupables section. Call Template:CnPopup with the same parameters as CnTest. Put them all together at the bottom of the page. Should be easy to automate adding CnPopups for all the existing Cn. Are you satisfied with this solution? –imahero 21:52, 21 August 2025 (UTC)