Actions

Template

Difference between revisions of "EnemyBob"

From Sonic Retro

m (fixed affiliation2 section)
(restored sprite scaling)
 
Line 10: Line 10:
 
| icon2={{{imagetitle2|Image 2}}}
 
| icon2={{{imagetitle2|Image 2}}}
 
| icon3={{#if:{{{image3|}}}|{{{imagetitle3|Image 3}}}}}
 
| icon3={{#if:{{{image3|}}}|{{{imagetitle3|Image 3}}}}}
| content1=[[File:{{{image}}}|{{{imagewidth}}}]]
+
| content1={{#if:{{{spritescale|}}}|{{SpriteImage|{{{image}}}|{{{spritescale}}}}}|[[File:{{{image}}}|{{{imagewidth}}}px|]]}}
| content2=[[File:{{{image2}}}|{{{imagewidth2}}}]]
+
| content2={{#if:{{{spritescale2|}}}|{{SpriteImage|{{{image2}}}|{{{spritescale2}}}}}|[[File:{{{image2}}}|{{{imagewidth2}}}px|]]}}
| content3={{#if:{{{image3|}}}|[[File:{{{image3}}}|{{{imagewidth3}}}]]}}
+
| content3={{#if:{{{image3|}}}|{{#if:{{{spritescale3|}}}|{{SpriteImage|{{{image3}}}|{{{spritescale3}}}}}|[[File:{{{image3}}}|{{{imagewidth3}}}px|]]|}}}}
 
}}
 
}}
|[[File:{{{image}}}|{{{imagewidth}}}]]}}{{#ifeq: {{fileext|{{{image}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
+
|{{#if:{{{spritescale|}}}|{{SpriteImage|{{{image}}}|{{{spritescale}}}}}|[[File:{{{image}}}|{{{imagewidth}}}px|]]}}}}{{#ifeq: {{fileext|{{{image}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
 
{{BobRow||{{{name|}}}|default={{PAGENAME}}|content={{{name}}}|headline=yes|align=center}}
 
{{BobRow||{{{name|}}}|default={{PAGENAME}}|content={{{name}}}|headline=yes|align=center}}
 
{{BobRow||{{{game|}}}|default=<includeonly>[[Category:Enemy without game]]</includeonly>|content='''Game{{#if:{{{game2|}}}|s|}}:''' ''[[{{{game}}}]]''[[Category:{{{game}}} enemies]]{{
 
{{BobRow||{{{game|}}}|default=<includeonly>[[Category:Enemy without game]]</includeonly>|content='''Game{{#if:{{{game2|}}}|s|}}:''' ''[[{{{game}}}]]''[[Category:{{{game}}} enemies]]{{
Line 49: Line 49:
 
| imagewidth2=
 
| imagewidth2=
 
| imagewidth3=
 
| imagewidth3=
 +
| spritescale=
 +
| spritescale2=
 +
| spritescale3=
 
| name=
 
| name=
 
| game=
 
| game=
Line 60: Line 63:
  
 
Up to 15 games, 3 images and 2 affiliations may be associated with a single enemy.
 
Up to 15 games, 3 images and 2 affiliations may be associated with a single enemy.
 +
 +
For regular images, the "<tt>imagewidth</tt>" parameters are completely optional and use absolute pixel sizes (e.g. "<tt>| imagewidth=200</tt>" produces a 200-pixel image). For sprites, the "<tt>spritescale</tt>" parameters are recommended and use integers (e.g. "<tt>| spritescale=2</tt>" scales a sprite to double its size).
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:45, 15 April 2024

Notavailable.svg
EnemyBob

Usage

{{EnemyBob
| image=
| image2=
| image3=
| imagetitle1=
| imagetitle2=
| imagetitle3=
| imagewidth=
| imagewidth2=
| imagewidth3=
| spritescale=
| spritescale2=
| spritescale3=
| name=
| game=
| game2=
| game3=
| affiliation=
| affiliation2=
| hits=
| points=
}}

Up to 15 games, 3 images and 2 affiliations may be associated with a single enemy.

For regular images, the "imagewidth" parameters are completely optional and use absolute pixel sizes (e.g. "| imagewidth=200" produces a 200-pixel image). For sprites, the "spritescale" parameters are recommended and use integers (e.g. "| spritescale=2" scales a sprite to double its size).