Difference between revisions of "MapCategory"

From Sega Retro

Line 1: Line 1:
 
<includeonly>{{#vardefine:name | {{#if:{{{override|}}} | {{{override}}} | {{PAGENAME}} }} }}{{#vardefine:title | {{#ifeq:{{#sub:{{#var:name}} | -11 | 0 }} | map images | {{#sub:{{#var:name}} | 0 | -11 }} | {{#var:name}} }} }}
 
<includeonly>{{#vardefine:name | {{#if:{{{override|}}} | {{{override}}} | {{PAGENAME}} }} }}{{#vardefine:title | {{#ifeq:{{#sub:{{#var:name}} | -11 | 0 }} | map images | {{#sub:{{#var:name}} | 0 | -11 }} | {{#var:name}} }} }}
''[[{{#var:title}}]]'' map images.
+
{{#ifeq:{{{italics|}}} | no | [[{{#var:title}}]] | {{#if:{{#pos:{{#var:title}} | ( }} | [[{{#var:title}}|''{{#replace:{{#var:title}} | ( | '' (}}]] | ''[[{{#var:title}}]]'' }} }} map images.
 
[[Category:{{#var:title}}]]{{#if:{{{1|}}} | [[Category:{{Code2Format|{{{1|}}}}} map images]] }}{{#if:{{{2|}}}
 
[[Category:{{#var:title}}]]{{#if:{{{1|}}} | [[Category:{{Code2Format|{{{1|}}}}} map images]] }}{{#if:{{{2|}}}
 
| [[Category:{{Code2Format|{{{2|}}}}} map images]] }}{{#if:{{{3|}}}
 
| [[Category:{{Code2Format|{{{2|}}}}} map images]] }}{{#if:{{{3|}}}
Line 22: Line 22:
  
 
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>

Revision as of 21:29, 22 October 2024

Used for game subcategories in Category:Map images. Adds boilerplate text and includes the category in the appropriate console categories and the appropriate game category.

See also Template:ScreenshotCategory and Template:SpriteCategory.

Usage

{{MapCategory|SMS|GG}}

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

The optional named arguments are:

| override=
| italics=