Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.

Template talk:Good

From WiKirby, your independent source of Kirby knowledge.
Revision as of 12:40, 24 May 2020 by Pinkyoshifan (talk | contribs)
Jump to navigationJump to search

should we add <includeonly>[[Category:Good pages]]</includeonly>to this? ---PinkYoshiFan 18:13, 27 April 2020 (UTC)

Yeah, because an article with this template never goes without the category. --DeepFriedCabbage 19:38, 27 April 2020 (UTC)
No. The reason we don't is because files and audio can also be marked as good, for which we have Category:Good images and Category:Good audio. --YFJ (talk · edits) 19:43, 27 April 2020 (UTC)
Oh; I thought the same category applied to all of the wiki's Good Content. --DeepFriedCabbage 19:47, 27 April 2020 (UTC)
Could we do separate templates for those and have the templates have their corresponding categories, or would that be too hard and uneseccary? ---PinkYoshiFan 19:49, 27 April 2020 (UTC)
@Pinkyoshifan, YoshiFlutterJump, Obsessive Mario Fan: How about adding a 1= parameter that would check if it's an image, audio, or article? image and picture will result in Category:Good images, audio and sound will result in Category:Good audio, and page and article will result in Category:Good pages. Should be easy to do with #if. Pandakekok9 (talk) 07:03, 23 May 2020 (UTC)
And if there's no text in the 1= param, it defaults to Category:Good pages. Pandakekok9 (talk) 07:04, 23 May 2020 (UTC)
Actually, it should be #switch:. Anyway, I got my solution working now, see my sandbox. If there's no objections, I will be implementing it. pandakekok9 (poyo) 12:11, 24 May 2020 (UTC)
I really like this idea, but will it retroactively affect images and audio that previously didn't use the parameter? Because I could see that being an issue, and we would need to add the image or audio parameter to all those. Even if we can somehow do it with a text replacement, that's something to keep in mind. Regardless, really nice work here, this change certainly will help a lot. Gigi (talk) 12:28, 24 May 2020 (UTC)

Yeah, that could be an issue, because it looks like it would, but we can do text replacements for specific namespaces. But how to differentiate between audio and images... ---PinkYoshiFan 12:30, 24 May 2020 (UTC)

Not a problem. The images are already in Category:Good images, and the audio files in Category:Good audio. A few text replacements wouldn't be hard, so I think this could work. --YFJ (talk · edits) 12:34, 24 May 2020 (UTC)
Yeah, an automated tool can look for both {{Good}} and either Category:Good images or Category:Good audio, and then replace {{Good}} with {{Good|image}} or {{Good|audio}} respectively, then remove the good category as it is redundant. pandakekok9 (poyo) 12:37, 24 May 2020 (UTC)
Oh yeah, text replaces can only affect certain categories. ---PinkYoshiFan 12:40, 24 May 2020 (UTC)