GameID Confirmation Guide: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 36: Line 36:


== How does the wiki handle IDs? ==
== How does the wiki handle IDs? ==
The ID database here works off of redirect pages, each ID is its own wiki page which simply contains a redirect to the page of the game the ID is for. This makes adding a GameID to the wiki rather simple on a technical level. As such example, suppose ID "GALE01" was for the game [[Super Smash Bros. Melee]], it was created simply as a new page on the wiki titled exactly "GALE01", and its contents is written as <code><nowiki>#REDIRECT [[Super Smash Bros. Melee]]</nowiki></code>.
The ID database here works off of redirect pages, each ID is its own wiki page which simply contains a redirect to the page of the game the ID is for. This makes adding a GameID to the wiki rather simple on a technical level. As such example, suppose ID "GALE01" was for the game [[Super Smash Bros. Melee]], it was created simply as a new page on the wiki titled exactly "GALE01", and then its contents is written as <code><nowiki>#REDIRECT [[Super Smash Bros. Melee]]</nowiki></code>.


Then game page will pick up its IDs in its Infobox VG with the help of [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DPL]. It works by looking through redirect pages to find the matching title it's about to redirect to itself, and then output the titles of those redirect pages.
Then game page will pick up its IDs in its Infobox VG with the help of [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DPL]. It works by looking through redirect pages to find the matching title it's about to redirect to itself, and then output the titles of those redirect pages.