Template:Gameid: Difference between revisions

Template page
(Regex fix)
(Edited source information of IRDs)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:  
<includeonly>{{#if:
{{{id|}}}
{{{id|}}}
{{{oid|}}}
{{{oid|}}}
| {{#if: {{{ird|}}}  
| {{#if: {{{ird|}}}
| {{#switch: {{{ird|}}}
| {{#switch: {{{ird|}}}
<!-- Links when ird files are available -->
<!-- Links when ird files are available -->
| {{#regex: {{{ird|}}} | /(Yes)/ri}} = {{#regex: {{{id|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2] <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}} | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}{{#regex: {{{oid|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | $1$2<span class="plainlinks"> <small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD])</sup></small>$3</span>[[Category:Games having IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}} | $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
| {{#regex: {{{ird|}}} | /(Yes)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
| 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}}
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--
-->{{#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 -->
| {{#regex: {{{ird|}}} | /(No)/ri}} = {{#regex: {{{id|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2]$3</span>[[Category:Games missing IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}} | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}{{#regex: {{{oid|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | $1$2<span>$3</span>[[Category:Games missing IRD file(s) (GameID)]]{{#vardefine: iddisc | 1}} | $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
| {{#regex: {{{ird|}}} | /(No)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
| 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}}
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--
-->{{#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 -->
| {{#regex: {{{ird|}}} | /(NA)/ri}} = {{#regex: {{{id|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2]$3</span>[[Category:Incorrect IRD parameter (GameID)]]{{#vardefine: iddisc | 1}} | <span class="plainlinks">[https://duckduckgo.com/?q=\\$1$2+site%3Aforums.rpcs3.net%2Fthread $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}{{#regex: {{{oid|}}} | /([BN])([^,]+)(,? ?)/re | {{#ifeq: B | $1 | $1$2<span>$3</span>[[Category:Incorrect IRD parameter (GameID)]]{{#vardefine: iddisc | 1}} | $1$2<span>$3</span>{{#vardefine: idpsn | 1}}}}}}
| {{#regex: {{{ird|}}} | /(NA)/ri}} = {{#regex: {{{id|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
<!-- Error when anything else is input in the ird parameter -->
| B
| [[Category:Incorrect IRD parameter (GameID)]]
| 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}}
| N = <span class="plainlinks">[https://duckduckgo.com/?q=%5C$1$2+site%3Aforums.rpcs3.net $1$2]$3</span>{{#vardefine: idpsn | 1}}}}}}<!--
-->{{#if: {{{oid|}}} | {{#if: {{{id|}}} | <span>, </span>}}}}<!--
-->{{#regex: {{{oid|}}} | /([BNM])([^,]+)(,? ?)/re | {{#switch: $1  
| B
| 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 --> [[Category:Missing IRD parameter (GameID)]]
| <!-- Error when ird parameter is not used --> [[Category:Missing IRD parameter (GameID)]]

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