Difference between revisions of "ScanCategory"

From Sega Retro

Line 11: Line 11:
 
{{#vardefine:format|{{#replace:{{#replace:{{#replace:{{#var:name}}|{{#var:region}}|}}|{{#var:type}}}}|scans|}}}}
 
{{#vardefine:format|{{#replace:{{#replace:{{#replace:{{#var:name}}|{{#var:region}}|}}|{{#var:type}}}}|scans|}}}}
 
{{#if:{{#var:extracat}}|{{#vardefine:format2|{{#replace:{{#replace:{{#replace:{{#replace:{{#var:format}}|console|}}|accessory|}}|bootleg|}}|multi-cart|}}}}|}}
 
{{#if:{{#var:extracat}}|{{#vardefine:format2|{{#replace:{{#replace:{{#replace:{{#replace:{{#var:format}}|console|}}|accessory|}}|bootleg|}}|multi-cart|}}}}|}}
{{#ifeq:{{#var:format}}|X|{{#vardefine:format|Xbox}}|}}<!--lazy Xbox fix--></div>
+
{{#ifeq:{{#pos:{{#var:format}}|X<nowiki> </nowiki>}}|0|{{#vardefine:format|Xbox{{#sub:{{#var:format}}|1}}}}|}}<!--lazy Xbox fix--></div>
 
{{#switch:{{lc:{{#var:region}}}}
 
{{#switch:{{lc:{{#var:region}}}}
 
|as|ex=
 
|as|ex=
Line 36: Line 36:
 
{{clear}}
 
{{clear}}
  
<pre>{{ScanCategory|override=Xbox US box scans}}</pre>
+
<pre>{{ScanCategory|override=Xbox 360 US box scans}}</pre>
{{ScanCategory|override=Xbox US box scans}}
+
{{ScanCategory|override=Xbox 360 US box scans}}
  
  

Revision as of 16:31, 30 September 2024

Template to make region categories consistent. It's mostly automated, working off the category name:

{{ScanCategory}}

You can override it with "override=". You shouldn't need to though - it's more of a testing thing


{{ScanCategory|override=Mega Drive BR box scans}}




Brazil

Scans of Mega Drive boxes from Brazil.


{{ScanCategory|override=32X BX box scans}}




Belgium Netherlands Luxembourg

Scans of 32X boxes from the Benelux region.


{{ScanCategory|override=Xbox 360 US box scans}}




United States of America

Scans of Xbox 360 boxes from the United States.


{{ScanCategory|override=Mega Drive US console box scans}}




United States of America

Scans of Mega Drive console boxes from the United States.