Template:Gameid: Difference between revisions

Template page
(Implementation of plainlinks and new "oid" parameter to capture GameIDs not present in the compatibility database.)
(Edited source information of IRDs)
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="plainlinks"><!--
<includeonly>{{#if:
--><!-- Check if both parameters have been used --><!--
{{{id|}}}
-->{{#if:{{{id|}}}|
{{{oid|}}}
{{#if:{{{ird|}}}|
| {{#if: {{{ird|}}}
| {{#switch: {{{ird|}}}
<!-- Links when ird files are available -->
<!-- Links when ird files are available -->
{{#ifeq:{{{ird|}}}|
| {{#regex: {{{ird|}}} | /(Yes)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
{{#regex:{{{ird|}}}|/(Yes)/ri
| B
}}|
| M = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2] <small><sup>([https://flexby420.github.io/playstation_3_ird_database/ IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}}
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--
{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span> <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small>$3</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>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
-->{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}<!--
}}
-->{{#regex: {{{oid|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1
}}|
| B
| M = $1$2<span class="plainlinks"> <small><sup>([https://flexby420.github.io/playstation_3_ird_database/ IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}}
| N = $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
<!-- Links when ird files are not available -->
<!-- Links when ird files are not available -->
{{#ifeq:{{{ird|}}}|
| {{#regex: {{{ird|}}} | /(No)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
{{#regex:{{{ird|}}}|/(No)/ri
| B
}}|
| M = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>[[Category:Games missing IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}}
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--
{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span>$3</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>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
-->{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}<!--
}}
-->{{#regex: {{{oid|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1
}}|
| B
| M = $1$2<span>$3</span>[[Category:Games missing IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}}
| N = $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
<!-- Links when only PSN IDs are available for a game -->
<!-- Links when only PSN IDs are available for a game -->
{{#ifeq:{{{ird|}}}|
| {{#regex: {{{ird|}}} | /(NA)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
{{#regex:{{{ird|}}}|/(NA)/ri
| B
}}|
| M = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>[[Category:Incorrect IRD parameter (GameID)]]{{#vardefine: iddisc | 1}}
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--  
{{#ifeq:B|$1|[https://www.google.com/search?#q=$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<span>$3</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>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
-->{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}<!--  
}}
-->{{#regex: {{{oid|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
}}|
| B
<!-- Error when anything else is input in the ird parameter -->[[Category:Incorrect IRD parameter (GameID)]]
| M = $1$2<span>$3</span>[[Category:Incorrect IRD parameter (GameID)]]{{#vardefine: iddisc | 1}}
}}
| N = $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
}}
| <!-- Error when anything else is input in the ird parameter --> [[Category:Incorrect IRD parameter (GameID)]]
}}|
}}  
<!-- Error when ird parameter is not used -->
| <!-- Error when ird parameter is not used --> [[Category:Missing IRD parameter (GameID)]]
[[Category:Missing IRD parameter (GameID)]]
}}  
}}|
| <!-- Error when id parameter is not used --> [[Category:Missing GameID parameter (GameID)]]
<!-- Error when gameid parameter is not used -->
}}</includeonly><noinclude>{{/doc}}</noinclude>
[[Category:Missing GameID parameter (GameID)]]
}}<!--
--><!-- Other GameIDs not available in compatibility list --><!--
-->{{#if:{{{oid|}}}|
{{#if:{{{ird|}}}|
<!-- Links when ird files are available -->
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(Yes)/ri
}}|
{{#if:{{{id|}}}|<span>, </span>
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span> <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
}}
}}|
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span> <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
}}
}}
}}|
<!-- Links when ird files are not available -->
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(No)/ri
}}|
{{#if:{{{id|}}}|<span>, </span>
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span>$3</span>[[Category:Games missing IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
}}
}}|
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span>$3</span>[[Category:Games missing IRD file(s) (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
}}
}}
}}|
<!-- Links when only PSN IDs are available for a game -->
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(NA)/ri
}}|
{{#if:{{{id|}}}|<span>, </span>
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span>$3</span>[[Category:Incorrect IRD parameter (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</span>[[Category:Games with Digital (PSN) version (GameID)]]
}}
}}|
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#ifeq:B|$1|$1$2<span>$3</span>[[Category:Incorrect IRD parameter (GameID)]][[Category:Games with Blu-ray version (GameID)]]|$1$2<span>$3</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 ird parameter is not used -->[[Category:Missing IRD parameter (GameID)]]
}}|
<!-- No error is reported when oid parameter is not used -->
}}</span></includeonly><noinclude>{{gameid/doc}}</noinclude>

Latest revision as of 18:53, 24 February 2024

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}}