Template talk:Socialism

From CivWiki
Latest comment: 13 September by Specificlanguage in topic Documentation breaks the page
Jump to navigation Jump to search

What decided which notable players are in which server's section? some of these 'notable' players don't have a page so it's hard to tell on what server they made their greatest impact on socialism on civ. Lodish (talk) 23:01, 3 December 2023 (UTC)Reply

Suggestion against using DynamicPageList4

This is a very complicated template that already takes a lot of parser time. DPL4 is an extension that is known to use a lot of parser time, so it's possible a DPL version of this template will be entirely too slow.

This is in response to @RainOfPain125 in the edit history "I plan to visit this when I have free time to clean up everything to a better standard. ie proper use of dynamic categorization, automatic flags/player heads, etc." Amelorate (talk) 03:25, 30 August 2026 (UTC)Reply

Well. uh. huh. yeah. maybe I'll try it on a sandbox page to verify if it sucks or not. in the meantime I'll continue to add the appropriate categories to nations, players, etc. even if it turns out to be unrealistic to add to this template, I'm sure the category data could be used in a new/different one. RainOfPain125 (talk) 04:02, 30 August 2026 (UTC)Reply
I have completed an overhaul of Template:Socialism that uses dynamic groups and is far, far, far easier to understand and use. You can test if if is "entirely too slow" at Template:Socialism/RainSandbox. It seems to load/run perfectly fine on my phone. RainOfPain125 (talk) 01:29, 31 August 2026 (UTC)Reply
CPU time usage
2.123 seconds
Real time usage
2.429 seconds
I think that's probably within the realm of acceptable. Amelorate (talk) 01:50, 31 August 2026 (UTC)Reply
awesome. the only thing left now is to figure out why the template cant load when the documentation template is included. RainOfPain125 (talk) 02:04, 31 August 2026 (UTC)Reply

Documentation breaks the page

@Specificlanguage I was explicitly avoiding writing {{Documentatation}} because it appears to break the preview. I could not find the cause for this issue (Neither could Amelorate, I believe) and so I resorted to simply linking the documentation page. If you can find a solution, that would be much appreciated.

Thanks. RainOfPain125 (talk) 10:25, 13 September 2026 (UTC)Reply

I think that might be more with DPL3 shenanigans, this is why I don't do these kinds of technical problems lol. I don't think this matters that much though, the actual "part" of the template documentation that matters is the collapse/uncollapse which is well demonstrated in the documentation. Probably just easier to put a note in the documentation somewhere to note that while individual items doesn't render in practice, in normal usage it does show. Doesn't have to be perfect tbh Specificlanguage (talk) 19:54, 13 September 2026 (UTC)Reply