Template:Gameid: Difference between revisions

Template page
(Implementation of plainlinks and new "oid" parameter to capture GameIDs not present in the compatibility database.)
No edit summary
Line 1: Line 1:
<includeonly><span class="plainlinks"><!--  
<includeonly><span class="plainlinks"><!--  
--><!-- GameIDs that are available in compatibility list --><!--
--><!-- Check if both parameters have been used --><!--  
--><!-- Check if both parameters have been used --><!--  
-->{{#if:{{{id|}}}|
-->{{#if:{{{id|}}}|
Line 5: Line 6:
<!-- Links when ird files are available -->
<!-- Links when ird files are available -->
{{#ifeq:{{{ird|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(Yes)/ri
{{#regex:{{{ird|}}}|/(Yes)/ri}}|
}}|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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)]]}}
}}
}}|
}}|
<!-- Links when ird files are not available -->
<!-- Links when ird files are not available -->
{{#ifeq:{{{ird|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(No)/ri
{{#regex:{{{ird|}}}|/(No)/ri}}|
}}|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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)]]}}
}}
}}|
}}|
<!-- Links when only PSN IDs are available for a game -->
<!-- Links when only PSN IDs are available for a game -->
{{#ifeq:{{{ird|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(NA)/ri
{{#regex:{{{ird|}}}|/(NA)/ri}}|
}}|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#regex:{{{id|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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)]]}}
}}
}}|
}}|
<!-- 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)]]
}}
}}
}}
}}
Line 37: Line 33:
[[Category:Missing GameID parameter (GameID)]]
[[Category:Missing GameID parameter (GameID)]]
}}<!--  
}}<!--  
--><!-- Other GameIDs not available in compatibility list --><!--  
--><!-- GameIDs that are NOT available in compatibility list --><!--
--><!-- Check if both parameters have been used --><!--  
-->{{#if:{{{oid|}}}|
-->{{#if:{{{oid|}}}|
{{#if:{{{ird|}}}|
{{#if:{{{ird|}}}|
<!-- Links when ird files are available -->
<!-- Links when ird files are available -->
{{#ifeq:{{{ird|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(Yes)/ri
{{#regex:{{{ird|}}}|/(Yes)/ri}}|
}}|
<!-- Output when id parameter is also used -->
{{#if:{{{id|}}}|<span>, </span>
{{#if:{{{id|}}}|<span>, </span>{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]}}
{{#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)]]
}}
}}|
}}|
<!-- Output when id parameter is not used -->
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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 -->
<!-- Output when ird files are not available -->
{{#ifeq:{{{ird|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(No)/ri
{{#regex:{{{ird|}}}|/(No)/ri}}|
<!-- Output when id parameter is also used -->
{{#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)]]}}
}}|
}}|
{{#if:{{{id|}}}|<span>, </span>
<!-- Output when id parameter is not used -->
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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|
<!-- Output when only PSN IDs are available for a game -->
{{#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|}}}|
{{#ifeq:{{{ird|}}}|
{{#regex:{{{ird|}}}|/(NA)/ri
{{#regex:{{{ird|}}}|/(NA)/ri}}|
<!-- Output when id parameter is also used -->
{{#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)]]}}
}}|
}}|
{{#if:{{{id|}}}|<span>, </span>
<!-- Output when id parameter is not used -->
{{#regex:{{{oid|}}}|/([BN])([^,]+)(,? ?)/re|
{{#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)]]
{{#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|
<!-- Error when anything else is input in the ird parameter -->
{{#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)]]
[[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)]]
}}|
}}|
<!-- No error is reported when oid parameter is not used -->
<!-- No error is reported when oid parameter is not used -->
}}</span></includeonly><noinclude>{{gameid/doc}}</noinclude>
}}</span></includeonly><noinclude>{{gameid/doc}}</noinclude>

Revision as of 11:55, 2 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}}