Difference between revisions of "ScanCategory"
From Sega Retro
Line 12: | Line 12: | ||
{{#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:{{#pos:{{#var:format}}|X<nowiki> </nowiki>}}|0|{{#vardefine:format|Xbox{{#sub:{{#var:format}}|1}}}}|}}<!--lazy Xbox fix--></div> | {{#ifeq:{{#pos:{{#var:format}}|X<nowiki> </nowiki>}}|0|{{#vardefine:format|Xbox{{#sub:{{#var:format}}|1}}}}|}}<!--lazy Xbox fix--></div> | ||
− | {{ | + | {{CategoryFlag|{{#var:region}}}} |
− | |||
− | |||
− | |||
− | }} | ||
Scans of [[{{#var:format}}]] {{#switch:{{#var:type}}|box=boxes|#default={{#var:type}}s}} from {{CountrySentence|{{CountryCode2Country|{{#var:region}}}}}}.{{#ifeq:{{NAMESPACE}}|Category|[[Category:{{#var:format}} {{#var:type}} scans]][[Category:All {{#var:region}} scans]]{{#if:{{#var:format2}}|[[Category:{{#var:format2}} {{#var:region}} {{#var:type}} scans]]}}}}</includeonly><noinclude> | Scans of [[{{#var:format}}]] {{#switch:{{#var:type}}|box=boxes|#default={{#var:type}}s}} from {{CountrySentence|{{CountryCode2Country|{{#var:region}}}}}}.{{#ifeq:{{NAMESPACE}}|Category|[[Category:{{#var:format}} {{#var:type}} scans]][[Category:All {{#var:region}} scans]]{{#if:{{#var:format2}}|[[Category:{{#var:format2}} {{#var:region}} {{#var:type}} scans]]}}}}</includeonly><noinclude> | ||
Template to make region categories consistent. It's mostly automated, working off the category name: | Template to make region categories consistent. It's mostly automated, working off the category name: |
Revision as of 16:37, 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}}
Scans of Mega Drive boxes from Brazil.
{{ScanCategory|override=32X BX box scans}}
Scans of 32X boxes from the Benelux region.
{{ScanCategory|override=Xbox 360 US box scans}}
Scans of Xbox 360 boxes from the United States.
{{ScanCategory|override=Mega Drive US console box scans}}
Scans of Mega Drive console boxes from the United States.