Difference between revisions of "GameList"

From Sega Retro

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:formatlong|{{Code2Format|{{{format}}}}}}}{{#vardefine:norrp|{{{norrp|}}}}}{{#vardefine:nocatalog|{{{nocatalog|}}}}}{{#vardefine:norating|{{{norating|}}}}}{{#vardefine:formatoverride|{{{format2|}}}}}{{GameListTable|
+
{{#vardefine:formatlong|{{#replace:{{Code2Format|{{{format}}}}}|i-mode|I-mode}}}}{{#vardefine:norrp|{{{norrp|}}}}}{{#vardefine:nocatalog|{{{nocatalog|}}}}}{{#vardefine:norating|{{{norating|}}}}}{{#vardefine:formatoverride|{{{format2|}}}}}
 +
{{GameListTable|
 
{{#dpl:
 
{{#dpl:
|categorymatch={{#ifeq:{{{demo|}}}|yes||{{{region|}}}}} {{#var:formatlong}} {{#ifeq:{{{demo|}}}|yes|demo discs|games}}
+
|categorymatch={{#ifeq:{{{demo|}}}|yes||{{#if:{{{ignoreregion|}}}||{{{region}}}}}}} {{#var:formatlong}} {{#ifeq:{{{demo|}}}|yes|demo discs|games}}
 
|categorymatch={{#if:{{{download|}}}|Download-only {{#var:formatlong}} games|}}
 
|categorymatch={{#if:{{{download|}}}|Download-only {{#var:formatlong}} games|}}
 
|notcategorymatch={{#if:{{{download|}}}||Download-only {{#var:formatlong}} games}}
 
|notcategorymatch={{#if:{{{download|}}}||Download-only {{#var:formatlong}} games}}
Line 10: Line 11:
 
|title<=M
 
|title<=M
 
|noresultsheader=\n
 
|noresultsheader=\n
|include={{GameListTable/Include|system={{{format}}}|region={{lc:{{{region}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|}}}}}}|region2={{lc:{{{region2}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|}}}}}}}}
+
|include={{GameListTable/Include|system={{{format}}}|region={{lc:{{{region}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|{{#if:{{{type|}}}|_{{{type}}}|}}}}}}}}|region2={{lc:{{{region2}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|{{#if:{{{type|}}}|_{{{type}}}|}}}}}}}}}}
 
|mode=userformat
 
|mode=userformat
 
|secseparators={{GameListTable/Secseparators}}
 
|secseparators={{GameListTable/Secseparators}}
 
}}<!-- we query twice because of DPL count limits -->
 
}}<!-- we query twice because of DPL count limits -->
 
{{#dpl:
 
{{#dpl:
|categorymatch={{#ifeq:{{{demo|}}}|yes||{{{region}}}}} {{#var:formatlong}} {{#ifeq:{{{demo|}}}|yes|demo discs|games}}
+
|categorymatch={{#ifeq:{{{demo|}}}|yes||{{#if:{{{ignoreregion|}}}||{{{region}}}}}}} {{#var:formatlong}} {{#ifeq:{{{demo|}}}|yes|demo discs|games}}
 
|categorymatch={{#if:{{{download|}}}|Download-only {{#var:formatlong}} games|}}
 
|categorymatch={{#if:{{{download|}}}|Download-only {{#var:formatlong}} games|}}
 
|notcategorymatch={{#if:{{{download|}}}||Download-only {{#var:formatlong}} games}}
 
|notcategorymatch={{#if:{{{download|}}}||Download-only {{#var:formatlong}} games}}
Line 24: Line 25:
 
|title>=M0
 
|title>=M0
 
|noresultsheader=\n
 
|noresultsheader=\n
|include={{GameListTable/Include|system={{{format}}}|region={{lc:{{{region}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}|_c|}}}}}}|region2={{lc:{{{region2}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}|_c|}}}}}}}}
+
|include={{GameListTable/Include|system={{{format}}}|region={{lc:{{{region}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|{{#if:{{{type|}}}|_{{{type}}}|}}}}}}}}|region2={{lc:{{{region2}}}{{#if:{{{download|}}}{{{disk|}}}|_d|{{#if:{{{cassette|}}}{{{card|}}}|_c|{{#if:{{{type|}}}|_{{{type}}}|}}}}}}}}}}
 
|mode=userformat
 
|mode=userformat
 
|secseparators={{GameListTable/Secseparators}}
 
|secseparators={{GameListTable/Secseparators}}
Line 36: Line 37:
 
| region2=
 
| region2=
 
}}</pre>
 
}}</pre>
 +
 
"region2" is a fall-back for Europe. e.g. if there's no data for the UK, try EU.
 
"region2" is a fall-back for Europe. e.g. if there's no data for the UK, try EU.
  
[[Category:Sega Retro templates]]</noinclude>
+
<pre>{{GameList
 +
| format=PC
 +
| region=JP
 +
| type=pch
 +
}}</pre>
 +
{{GameList
 +
| format=PC
 +
| region=JP
 +
| type=pch
 +
}}
 +
 
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 08:17, 11 July 2023

Title Release Date RRP Catalog Num. Rating

Template for listing games.

Usage

{{GameList
| format=
| region=
| region2=
}}

"region2" is a fall-back for Europe. e.g. if there's no data for the UK, try EU.

{{GameList
| format=PC
| region=JP
| type=pch
}}
Title Release Date RRP Catalog Num. Rating
Daytona USA Deluxe 199x ¥1,980 (2,039)1,980e
Sega Rally Championship 1999-02-10[1] ¥1,980 (2,079)1,980e[2]
Sega Worldwide Soccer 97 1999-06-10[3] ¥1,980 (2,079)1,980e[4]
Sky Target 2000-02-10[5] ¥1,980 (2,079)1,980e[6]
The House of the Dead 1999-06-10[3] ¥1,980 (2,079)1,980e[7]
Virtua Fighter PC 1999-02-10[1] ¥1,980 (2,079)1,980e[8]