Difference between revisions of "SpriteCategory"
From Sega Retro
m |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:name | {{#if:{{{override|}}} | {{{override}}} | {{PAGENAME}} }} }}{{#vardefine:title | {{#sub:{{#var:name}} | 0 | -8 }} }} | + | <includeonly>{{#vardefine:name | {{#if:{{{override|}}} | {{{override}}} | {{PAGENAME}} }} }}{{#vardefine:title | {{#ifeq:{{#sub:{{#var:name}} | -8 | 0 }} | sprites | {{#sub:{{#var:name}} | 0 | -8 }} | {{#var:name}} }} }} |
''[[{{#var:title}}]]'' sprites. | ''[[{{#var:title}}]]'' sprites. | ||
[[Category:{{#var:title}}]]{{#if:{{{1|}}} | [[Category:{{Code2Format|{{{1|}}}}} sprites]] }}{{#if:{{{2|}}} | [[Category:{{#var:title}}]]{{#if:{{{1|}}} | [[Category:{{Code2Format|{{{1|}}}}} sprites]] }}{{#if:{{{2|}}} | ||
Line 6: | Line 6: | ||
| [[Category:{{Code2Format|{{{4|}}}}} sprites]] }}{{#if:{{{5|}}} | | [[Category:{{Code2Format|{{{4|}}}}} sprites]] }}{{#if:{{{5|}}} | ||
| [[Category:{{Code2Format|{{{5|}}}}} sprites]] }}{{#if:{{{6|}}} | | [[Category:{{Code2Format|{{{5|}}}}} sprites]] }}{{#if:{{{6|}}} | ||
− | | [[Category:{{Code2Format|{{{6|}}}}} sprites]] }}</includeonly><noinclude> | + | | [[Category:{{Code2Format|{{{6|}}}}} sprites]] }}{{#if:{{{7|}}} |
+ | | [[Category:{{Code2Format|{{{7|}}}}} sprites]] }}{{#if:{{{8|}}} | ||
+ | | [[Category:{{Code2Format|{{{8|}}}}} sprites]] }}{{#if:{{{9|}}} | ||
+ | | [[Category:{{Code2Format|{{{9|}}}}} sprites]] }}{{#if:{{{10|}}} | ||
+ | | [[Category:{{Code2Format|{{{10|}}}}} sprites]] }}{{#if:{{{11|}}} | ||
+ | | [[Category:{{Code2Format|{{{11|}}}}} sprites]] }}{{#if:{{{12|}}} | ||
+ | | [[Category:{{Code2Format|{{{12|}}}}} sprites]] }}</includeonly><noinclude> | ||
Used for game subcategories in [[:Category:Sprites]]. Adds boilerplate text and includes the category in the appropriate console categories and the appropriate game category. | Used for game subcategories in [[:Category:Sprites]]. Adds boilerplate text and includes the category in the appropriate console categories and the appropriate game category. | ||
Line 13: | Line 19: | ||
<pre>{{ScanCategory|SMS|GG}}</pre> | <pre>{{ScanCategory|SMS|GG}}</pre> | ||
− | Multiple platforms can be included as positional arguments. | + | Multiple platforms can be included as positional arguments (using [[:Sega Retro:Format codes|format codes]]). |
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 15:34, 13 October 2024
Used for game subcategories in Category:Sprites. Adds boilerplate text and includes the category in the appropriate console categories and the appropriate game category.
Usage
{{ScanCategory|SMS|GG}}
Multiple platforms can be included as positional arguments (using format codes).