Template talk:Game4

Latest comment: 1 May 2023 by Landfish7 in topic Fix

USUM and B2W2

The implementation for USUM and B2W2 has some minor issues. For USUM, if you do {{game4|Sun|Moon|Sun|Moon}}, you get Pokémon Sun, Moon, Ultra Sun, and Ultra Moon, which incorrectly links to the redirect Pokémon Sun and Moon Versions. For B2W2, if you do {{game4|Black|White|Black|White}}, you get Pokémon Black, White, Black 2, and White 2, which is missing a serial comma. Landfish7 11:07, 15 March 2023 (UTC)Reply

RGBY

Linking to RGBY with {{game4|Red|Green|Blue|Yellow}} results in Pokémon Red, Green, Blue, and Yellow, which is missing an "and" between "Blue," and "Yellow". Landfish7 11:16, 15 March 2023 (UTC)Reply

Fix

I was able to fix some of the above issues here. Linking to BWB2W2 with this version using {{game4|Black|White|Black|White}} will output Black, which is no longer missing a serial comma. Linking to RGBY with this version using {{game4|Red|Green|Blue|Yellow}} will output Red, which is no longer missing an "and" between "Blue," and "Yellow". However, there are still some redirects when using this version. When linking to RGBY, Blue links to Pokémon Blue Version, which redirects to Pokémon Red and Blue Versions. When linking to SMUSUM, it still incorrectly links to the redirect Pokémon Sun and Moon Versions. Landfish7 22:11, 13 April 2023 (UTC)Reply

As far as I can tell, all remaining issues have been fixed! Landfish7 22:33, 13 April 2023 (UTC)Reply
Would a staff member mind copying over these changes? Landfish7 23:21, 24 April 2023 (UTC)Reply
Here's the raw code if it makes things easier (category excluded).
{{#switch: {{{1|}}}|Sun=[[Pokémon {{{1}}} and {{{2}}}|Pokémon {{{1}}}, {{{2}}}]]|[[Pokémon {{{1}}} and {{{2}}} Versions|Pokémon {{{1}}}, {{{2}}}]]}}, {{#switch: {{{3|}}}|Blue=[[Pokémon {{{1}}} and {{{3}}} Versions|{{{3}}}]], and [[Pokémon {{{4}}} Version|{{{4}}}]]|Black=[[Pokémon {{{3}}} and {{{4}}} Versions 2|{{{3}}} 2, and {{{4}}} 2]]|Sun=[[Pokémon Ultra {{{3}}} and Ultra {{{4}}}|Ultra {{{3}}}, and Ultra {{{4}}}]]|[[Pokémon {{{3}}} Version|{{{3}}}]], and [[Pokémon {{{4}}} Version|{{{4}}}]]}}
- Landfish7 06:22, 1 May 2023 (UTC)Reply