[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
I have modified how new game IDs are created. First, it uses slugify to create a lowercase slug that replaces spaces with underscores. It also modifies this into one with hyphens instead of underscores and one that just removes the underscores. It then checks the database for one using hyphens, and if it finds one, it uses the one with hyphens. If not, it checks for one with underscores. If it finds one, it uses it. If not, it checks for one without underscores or hyphens. If it finds one, it uses it. If not, it uses the one with hyphens. So, this new method favors hyphens, but it will avoid breaking things if the pre-existing GameIDs for the same game do not use hyphens. This should also help prevent people from making pages for pre-existing games whose GameID or ItemID is following a slightly different convention.