Template talk:GlobalProblems/Virtual Console: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 25: Line 25:
::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)
::[[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)
Wonderful work you guys too! An issue with header underline abuting with infobox fixed and several code clean ups, the custom header is now indistinguishable with others. The current issues with this template are pretty minor, they may not qualify some additional code to make them "look right" with others. I've seen some edit button having color of external link somewhere else (psst, that edit and purge buttons you find in beginning of template's documentation page). [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 11:46, 5 September 2017 (CEST)
Wonderful work you guys too! An issue with header underline abuting with infobox fixed and several code clean ups, the custom header is now indistinguishable with others. The current issues with it are pretty minor, they may not qualify some additional code to make them "look right" with others. I've seen some edit button having color of external link somewhere else (psst, that edit and purge buttons you find in beginning of template's documentation page). [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 11:46, 5 September 2017 (CEST)
6,576

edits