Actions

Template

Difference between revisions of "EnemyBob"

From Sonic Retro

m
(restored sprite scaling)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{EnemyBob
+
{{BobTable|
| image=Dark_Fright_SU.png
 
| image2=DarkFrightPS2Wii.png
 
| imagetitle1=X-Box/PS3
 
| imagetitle2=PS2/Wii
 
| imagewidth=250px
 
| name=Dark Fright (example of usage)
 
| game=Sonic Unleashed
 
| affiliation=Dark Gaia
 
| points= 20 [[Dark Gaia Force]] (PS2/Wii version)
 
}}
 
</noinclude>{{BobTable|
 
 
{{BobRow||{{{image|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{image2|}}} |
 
{{BobRow||{{{image|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{image2|}}} |
 
{{tabs
 
{{tabs
Line 21: 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}}}|{{{imagewidth}}}]]
+
| content2={{#if:{{{spritescale2|}}}|{{SpriteImage|{{{image2}}}|{{{spritescale2}}}}}|[[File:{{{image2}}}|{{{imagewidth2}}}px|]]}}
| content3={{#if:{{{image3|}}}|{{bobscreen|{{{image3}}}}}}}
+
| content3={{#if:{{{image3|}}}|{{#if:{{{spritescale3|}}}|{{SpriteImage|{{{image3}}}|{{{spritescale3}}}}}|[[File:{{{image3}}}|{{{imagewidth3}}}px|]]|}}}}
 
}}
 
}}
|{{bobscreen|{{{image}}}}}}}{{#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 43: Line 32:
 
#if:{{{game15|}}}|, ''[[{{{game15}}}]]''[[Category:{{{game15}}} enemies]]|}}}}
 
#if:{{{game15|}}}|, ''[[{{{game15}}}]]''[[Category:{{{game15}}} enemies]]|}}}}
 
{{BobRow||{{{affiliation|}}}|default=<includeonly>[[Category:Enemies without affiliation]]</includeonly>
 
{{BobRow||{{{affiliation|}}}|default=<includeonly>[[Category:Enemies without affiliation]]</includeonly>
|content='''Affiliation{{#if:{{{affiliation2|}}}|s|}}:''' [[{{{affiliation}}}]][[Category:{{{affiliation}}} enemies]]{{#if:{{{affiliation2|}}}|, [[{{{affiliation2}}}]]|}}}}
+
|content='''Affiliation{{#if:{{{affiliation2|}}}|s|}}:''' [[{{{affiliation}}}]][[Category:{{{affiliation}}} enemies]]{{#if:{{{affiliation2|}}}|, [[{{{affiliation2}}}]][[Category:{{{affiliation2}}} enemies]]|}}}}
 
{{BobRow|Hits to defeat|{{{hits|}}}}}
 
{{BobRow|Hits to defeat|{{{hits|}}}}}
 
{{BobRow|Points|{{{points|}}}}}
 
{{BobRow|Points|{{{points|}}}}}
Line 53: Line 42:
 
| image=
 
| image=
 
| image2=
 
| image2=
 +
| image3=
 
| imagetitle1=
 
| imagetitle1=
 
| imagetitle2=
 
| imagetitle2=
 +
| imagetitle3=
 
| imagewidth=
 
| imagewidth=
 +
| imagewidth2=
 +
| imagewidth3=
 +
| spritescale=
 +
| spritescale2=
 +
| spritescale3=
 
| name=
 
| name=
 
| game=
 
| game=
 
| game2=
 
| game2=
 
| game3=
 
| game3=
| game4=
 
 
| affiliation=
 
| affiliation=
 
| affiliation2=
 
| affiliation2=
Line 67: Line 62:
 
}}</pre>
 
}}</pre>
  
Up to 15 games 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).