Difference between revisions of "SpriteCategory"

From Sega Retro

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#vardefine:name | {{#if:{{{override|}}} | {{{override}}} | {{PAGENAME}} }} }}{{#vardefine:title | {{#ifeq:{{#sub:{{#var:name}} | -8 | 0 }} | sprites | {{#sub:{{#var:name}} | 0 | -8 }} | {{#var:name}} }} }}
 
<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.
+
{{#ifeq:{{{italics|}}} | no | [[{{#var:title}}]] | {{#if:{{#pos:{{#var:title}} | ( }} | [[{{#var:title}}|''{{#replace:{{#var:title}} | ( | '' (}}]] | ''[[{{#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|}}}
 
| [[Category:{{Code2Format|{{{2|}}}}} sprites]] }}{{#if:{{{3|}}}
 
| [[Category:{{Code2Format|{{{2|}}}}} sprites]] }}{{#if:{{{3|}}}
Line 12: Line 12:
 
| [[Category:{{Code2Format|{{{10|}}}}} sprites]] }}{{#if:{{{11|}}}
 
| [[Category:{{Code2Format|{{{10|}}}}} sprites]] }}{{#if:{{{11|}}}
 
| [[Category:{{Code2Format|{{{11|}}}}} sprites]] }}{{#if:{{{12|}}}
 
| [[Category:{{Code2Format|{{{11|}}}}} sprites]] }}{{#if:{{{12|}}}
| [[Category:{{Code2Format|{{{12|}}}}} sprites]] }}</includeonly><noinclude>
+
| [[Category:{{Code2Format|{{{12|}}}}} sprites]] }}{{#ifeq:{{#sub:{{PAGENAME}} | 0 | 4 }} | The | {{DEFAULTSORT:{{#sub:{{PAGENAME}} | 4 }}, The }} | }}</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 19: Line 19:
 
==Usage==
 
==Usage==
  
<pre>{{ScanCategory|SMS|GG}}</pre>
+
<pre>{{SpriteCategory|SMS|GG}}</pre>
  
 
Multiple platforms can be included as positional arguments (using [[:Sega Retro:Format codes|format codes]]).
 
Multiple platforms can be included as positional arguments (using [[:Sega Retro:Format codes|format codes]]).
 +
 +
The optional named arguments are:
 +
 +
<pre>
 +
| override=
 +
| italics=
 +
</pre>
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 06:58, 26 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.

See also Template:MapCategory and Template:ScreenshotCategory.

Usage

{{SpriteCategory|SMS|GG}}

Multiple platforms can be included as positional arguments (using format codes).

The optional named arguments are:

| override=
| italics=