Template talk:GlobalProblems/Virtual Console: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:


::Yeah, you can go for it, the latest version from that image is still in the sandbox. I literally copied page source and slightly adapted it though so there's probably a much better way to do it. The header is everything between the <code><nowiki><h2></nowiki></code> tags if you ctrl-f on it, it's a giant blob of html sitting in the middle of the template. - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 00:12, 4 September 2017 (CEST)
::Yeah, you can go for it, the latest version from that image is still in the sandbox. I literally copied page source and slightly adapted it though so there's probably a much better way to do it. The header is everything between the <code><nowiki><h2></nowiki></code> tags if you ctrl-f on it, it's a giant blob of html sitting in the middle of the template. - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 00:12, 4 September 2017 (CEST)
::[[User:Lucario]] worked on it through the night and got it working a lot better. There's a few small problems but nothing as bad as the horrible TOC from the first draft, so I went ahead and pushed it to live. Ironically I was reading about it last night and headers from within templates are [https://meta.wikimedia.org/wiki/Help:Section#Editing_sections_of_included_templates supposed to generate an edit link automatically], but even if it did it'd take you to GlobalProblems and not to the individual console's page, so this solution is better. I also went ahead and purged the headers from all the virtual console platform pages, so that the edit link would work consistently in taking you to the globalproblems subpage, whereas before on platform pages it'd take you to edit an empty header with just a template call in it. (It also eliminated an #ifpageincat if anyone's keeping score.) - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 16:41, 4 September 2017 (CEST)
6,906

edits