Template:Gameid: Difference between revisions

Template page
(Extended the template to differentiate games without ird files and games with misformatted input in the ird parameter. Also added a few more categories.)
(Edited source information of IRDs)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- Check if any IDs have been given -->{{#if:{{{id|}}}|
<includeonly>{{#if:
<!-- Links when ird files are available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(Yes)/rsi}}|{{#regex:{{{id|}}}|/([^b])([^,]+)(,? ?)/rse|{{#ifeq:B|$1|[https://www.google.com/search?#q={{#regex:{{PAGENAME}}|/\s/|+}}+$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<small><sup>([http://jonnysp.bplaced.net/?search=$1$2 IRD]) </sup></small>[[Category:Games having IRD file(s) (GameID)]]|[https://www.google.com/search?#q={{#regex:{{PAGENAME}}|/\s/|+}}+$1$2+site:forums.rpcs3.net/thread&btnI $1$2]<sup> </sup>[[Category:Games having IRD file(s) (GameID)]]}}}}|
{{{id|}}}
<!-- Links when only PSN IDs are available for a game -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(NA)/rsi}}|{{#regex:{{{id|}}}|/([^,]+)(,? ?)/rs|[https://www.google.com/search?#q={{#regex:{{PAGENAME}}|/\s/|+}}+$1+site:forums.rpcs3.net/thread&btnI $1]<sup> </sup>}}[[Category:Games with only PSN version(s) (GameID)]]|
{{{oid|}}}
<!-- Links when ird files are not available -->{{#ifeq:{{{ird|}}}|{{#regex:{{{ird|}}}|/(No)/rsi}}|{{#regex:{{{id|}}}|/([^,]+)(,? ?)/rs|[https://www.google.com/search?#q={{#regex:{{PAGENAME}}|/\s/|+}}+$1+site:forums.rpcs3.net/thread&btnI $1]<sup> </sup>}}[[Category:Games missing IRD file(s) (GameID)]]|
| {{#if: {{{ird|}}}
<!-- Links when ird parameter is wrong -->{{#regex:{{{id|}}}|/([^,]+)(,? ?)/rs|[https://www.google.com/search?#q={{#regex:{{PAGENAME}}|/\s/|+}}+$1+site:forums.rpcs3.net/thread&btnI $1]<sup> </sup>}}[[Category:Misformatted IRD parameter]]}}}}}}|[[Category:Game pages without GameID(s)]]}}</includeonly><noinclude>{{gameid/doc}}</noinclude>
| {{#switch: {{{ird|}}}
<!-- Links when ird files are available -->
| {{#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 -->
| {{#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 -->
| {{#regex: {{{ird|}}} | /(NA)/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: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 id parameter is not used --> [[Category:Missing GameID parameter (GameID)]]
}}</includeonly><noinclude>{{/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}}