GameID Confirmation Guide: Difference between revisions

m
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 then 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 being 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 an 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 were written as <code><nowiki>#REDIRECT [[Super Smash Bros. Melee]]</nowiki></code>.


The game page will pick up the IDs automatically within {{tl|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.
The game page will pick up the IDs automatically within {{tl|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.
6,906

edits