Difference between revisions of "GameList"

From Sega Retro

Line 1: Line 1:
{{#vardefine:formatlong|{{Code2Format|{{{format}}}}}}}{{#vardefine:norrp|{{{norrp|}}}}}{{#vardefine:nocatalog|{{{nocatalog|}}}}}{{#vardefine:norating|{{{norating|}}}}}{{#vardefine:formatoverride|{{{format2|}}}}}{{GameListTable|
+
{{#vardefine:formatlong|{{Code2Format|{{{format}}}}}}}{{#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 15: Line 16:
 
}}<!-- 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 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>
 
[[Category:Sega Retro templates]]</noinclude>

Revision as of 15:44, 22 November 2021

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.