Difference between revisions of "Template:Sprites"

From Monster Crown Wiki
Jump to: navigation, search
m (ifexist makes me cry)
m
Line 1: Line 1:
 
<includeonly>{| class="wikitable"
 
<includeonly>{| class="wikitable"
!colspan="1"|Default
+
!Default
!colspan="1"|Brute
+
!Brute
!colspan="1"|Relentless
+
!Relentless
!colspan="1"|Unstable
+
!Unstable
!colspan="1"|Vicious
+
!Vicious
!colspan="1"|Will
+
!Will
 
|-
 
|-
|rowspan="1"| {{#ifexist: File:{{PAGENAME}} sprite.png | [[File:{{PAGENAME}} sprite.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite.png | [[File:{{PAGENAME}} sprite.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite brute.png | [[File:{{PAGENAME}} sprite brute.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite brute.png | [[File:{{PAGENAME}} sprite brute.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite relentless.png | [[File:{{PAGENAME}} sprite relentless.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite relentless.png | [[File:{{PAGENAME}} sprite relentless.png]] | [[File:Questionmark_sprite.png]] }}
Line 13: Line 13:
 
| {{#ifexist: File:{{PAGENAME}} sprite vicious.png | [[File:{{PAGENAME}} sprite vicious.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite vicious.png | [[File:{{PAGENAME}} sprite vicious.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite will.png | [[File:{{PAGENAME}} sprite will.png]] | [[File:Questionmark_sprite.png]] }}
 
| {{#ifexist: File:{{PAGENAME}} sprite will.png | [[File:{{PAGENAME}} sprite will.png]] | [[File:Questionmark_sprite.png]] }}
 +
|}
 
|}</includeonly>
 
|}</includeonly>
<noinclude>
+
<noinclude>Adding '''<nowiki>{{Sprites}}</nowiki>''' to a monster page will generate a sprite table, including all available forms. Any missing sprites will be replaced with a question mark.
 +
 
 
{| class="wikitable"
 
{| class="wikitable"
 
!Default
 
!Default
Line 23: Line 25:
 
!Will
 
!Will
 
|-
 
|-
| {{#ifexist: File:Primigon_sprite.png | [[File:Primigon_sprite.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite.png | [[File:{{PAGENAME}} sprite.png]] | [[File:Questionmark_sprite.png]] }}
| {{#ifexist: File:Primigon_sprite_brute.png | [[File:Primigon_sprite_brute.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite brute.png | [[File:{{PAGENAME}} sprite brute.png]] | [[File:Questionmark_sprite.png]] }}
| {{#ifexist: File:Primigon_sprite_relentless.png | [[File:Primigon_sprite_relentless.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite relentless.png | [[File:{{PAGENAME}} sprite relentless.png]] | [[File:Questionmark_sprite.png]] }}
| {{#ifexist: File:Primigon_sprite_unstable.png | [[File:Primigon_sprite_unstable.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite unstable.png | [[File:{{PAGENAME}} sprite unstable.png]] | [[File:Questionmark_sprite.png]] }}
| {{#ifexist: File:Primigon_sprite_vicious.png | [[File:Primigon_sprite_vicious.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite vicious.png | [[File:{{PAGENAME}} sprite vicious.png]] | [[File:Questionmark_sprite.png]] }}
| {{#ifexist: File:Primigon_sprite_will.png | [[File:Primigon_sprite_will.png]] | [[File:Questionmark_sprite.png]] }}
+
| {{#ifexist: File:{{PAGENAME}} sprite will.png | [[File:{{PAGENAME}} sprite will.png]] | [[File:Questionmark_sprite.png]] }}
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 23:34, 11 May 2018

Adding {{Sprites}} to a monster page will generate a sprite table, including all available forms. Any missing sprites will be replaced with a question mark.

Default Brute Relentless Unstable Vicious Will
Questionmark sprite.png Questionmark sprite.png Questionmark sprite.png Questionmark sprite.png Questionmark sprite.png Questionmark sprite.png