HerrHulaHoop (talk | contribs) (Minor spacing fix) |
HerrHulaHoop (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><!-- Check if both parameters have been used -- | <includeonly><!-- Check if both parameters have been used -->{{#if:{{{id|}}}|{{#if:{{{ird|}}}| | ||
<!-- Links when ird files are available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(Yes)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2] <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small><span> | <!-- Links when ird files are available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(Yes)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(?:,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small><span> </span>[[Category:Games having IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> </span>[[Category:Games with Digital (PSN) version (GameID)]]}}}}| | ||
<!-- Links when ird files are not available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(No)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> | <!-- Links when ird files are not available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(No)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(?:,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> </span>[[Category:Games missing IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> </span>[[Category:Games with Digital (PSN) version (GameID)]]}}}}| | ||
<!-- Links when only PSN IDs are available for a game -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(NA)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> | <!-- Links when only PSN IDs are available for a game -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(NA)/ri}}|{{#regex:{{{id|}}}|/([BN])([^,]+)(?:,? ?)/re|{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> </span>[[Category:Incorrect IRD parameter (GameID)]][[Category:Games with Blu-ray version (GameID)]]|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> </span>[[Category:Games with Digital (PSN) version (GameID)]]}}}}| | ||
<!-- Error when anything else is input in the ird parameter -->[[Category:Incorrect IRD parameter (GameID)]]}}}}}}| | <!-- Error when anything else is input in the ird parameter -->[[Category:Incorrect IRD parameter (GameID)]]}}}}}}| | ||
<!-- Error when ird parameter is not used -->[[Category:Missing IRD parameter (GameID)]]}}| | <!-- Error when ird parameter is not used -->[[Category:Missing IRD parameter (GameID)]]}}| | ||
<!-- Error when gameid parameter is not used -->[[Category:Missing GameID parameter (GameID)]]}} | <!-- Error when gameid parameter is not used -->[[Category:Missing GameID parameter (GameID)]]}}</includeonly><noinclude>{{gameid/doc}}</noinclude> |
Revision as of 22:32, 1 October 2018
This template is designed to be used in conjunction with the |gameid parameter of the vginfobox template. This template will allow every game ID mentioned in the infobox to be linked to its respective forum thread and ird file (if available).
Syntax
{{ gameid | id = GameID1, GameID2, GameID3 | oid = GameID1, GameID2, GameID3 | ird = Option }}
- |id = is used to mention the game IDs separated simply by a comma and a space. Only game IDs that are present in the compatibility list and forums are to be mentioned here. Game IDs that were never tested in the forums should NOT be mentioned in this parameter as the template will produce broken links to non-existent forum threads. Use
oid
parameter for such game IDs. - |oid = is used for game IDs that are NOT present in the compatibility list and forums. Similar to
id
parameter, game IDs are separated by a comma and a space. - |ird = is used to capture details relating to the availability of IRD files for a particular game at FlexBy IRD Database. The following options are accepted by this parameter:
- Yes - Blu-ray game ID is present and the IRD file for the same is available.
- No - Blu-ray game ID is present but the IRD file for the same is not available.
- NA - No Blu-ray game ID exists for the game (PSN exclusive).
In case the game IDs for a game need to be distinguished from each other (e.g. when one ID pertains to a demo), the template can be used twice with breaks added in between. Similarly, where a few game IDs have IRD files but other game IDs for the same game do not, the template can be used twice with the corresponding ird
parameter as Yes and No respectively. Do note that when using the template twice without breaks in between, you will have to manually add a comma and space between the templates to maintain formatting.
Examples
Demon's Souls - Standard
{{gameid|id=BLES00932, BLUS30443, NPEB01202, NPUB30910|oid=BCAS20071|ird=yes}}
Catherine - Call separated to distinguish the regular IDs from the demo version
{{gameid|id=BLUS30428, BLES01459, NPUB30698, NPEB00875|oid=BLJM60215|ird=Yes}}<br>'''''Demo'''''<br>{{gameid|id=NPUB90645|ird=NA}}
.hack//Versus - Games that have Blu-ray game IDs but the ird file for the same is not available
{{gameid|id=BLJS93008|ird=No}}
Disgaea 4: A Promise Unforgotten - Games that have Blu-ray game IDs where few game IDs have ird files but other game IDs do not. Take note of how ,
has been manually added to separate the 2 templates.
{{gameid|id=BLES01225, BLUS30727|ird=Yes}}, {{gameid|id=BCAS20185|ird=No}}
Scott Pilgrim vs. The World: The Game - Games without any Blu-ray game IDs
{{gameid|id=NPEB00258, NPUB30162|ird=NA}}