Difference between revisions of "ScanCategory"

From Sega Retro

Line 3: Line 3:
 
{{#vardefine:type|{{#explode:{{#var:name}}| |{{#expr:{{#var:wordcount}}-1}}}}}}
 
{{#vardefine:type|{{#explode:{{#var:name}}| |{{#expr:{{#var:wordcount}}-1}}}}}}
 
{{#vardefine:region|{{#explode:{{#var:name}}| |{{#expr:{{#var:wordcount}}-2}}}}}}
 
{{#vardefine:region|{{#explode:{{#var:name}}| |{{#expr:{{#var:wordcount}}-2}}}}}}
{{#vardefine:format|{{#replace:{{#replace:{{#replace:{{#var:name}}|{{#var:region}}|}}|{{#var:type}}}}|scans|}}}}</div>
+
{{#vardefine:format|{{#replace:{{#replace:{{#replace:{{#var:name}}|{{#var:region}}|}}|{{#var:type}}}}|scans|}}}}
 +
{{#ifeq:{{#var:format}}|X|{{#vardefine:format|Xbox}}|}}<!--lazy Xbox fix--></div>
 
{{#switch:{{lc:{{#var:region}}}}
 
{{#switch:{{lc:{{#var:region}}}}
 
|as|ex=
 
|as|ex=
Line 16: Line 17:
 
You can override it with "override=". You shouldn't need to though - it's more of a testing thing
 
You can override it with "override=". You shouldn't need to though - it's more of a testing thing
  
{{hr}}
+
{{clear}}
  
 
<pre>{{ScanCategory|override=Mega Drive BR box scans}}</pre>
 
<pre>{{ScanCategory|override=Mega Drive BR box scans}}</pre>
 
{{ScanCategory|override=Mega Drive BR box scans}}
 
{{ScanCategory|override=Mega Drive BR box scans}}
  
{{hr}}
+
{{clear}}
  
 
<pre>{{ScanCategory|override=32X BX box scans}}</pre>
 
<pre>{{ScanCategory|override=32X BX box scans}}</pre>
 
{{ScanCategory|override=32X BX box scans}}
 
{{ScanCategory|override=32X BX box scans}}
 +
 +
{{clear}}
 +
 +
<pre>{{ScanCategory|override=Xbox US box scans}}</pre>
 +
{{ScanCategory|override=Xbox US box scans}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15: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

Mega Drive box scans from Brazil.


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



Belgium Netherlands Luxembourg

32X box scans from the Benelux region.


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



United States of America

Xbox box scans from the United States.