Difference between revisions of "EnemyBob"
From Sonic Retro
m |
BSonirachi (talk | contribs) (restored sprite scaling) |
||
(3 intermediate revisions by one other user not shown) | |||
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|}}}|{{ | + | | content3={{#if:{{{image3|}}}|{{#if:{{{spritescale3|}}}|{{SpriteImage|{{{image3}}}|{{{spritescale3}}}}}|[[File:{{{image3}}}|{{{imagewidth3}}}px|]]|}}}} |
}} | }} | ||
− | |{{ | + | |{{#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 32: | 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 42: | 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= | ||
− | |||
| affiliation= | | affiliation= | ||
| affiliation2= | | affiliation2= | ||
Line 56: | 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
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).