Template:Infobox mob: Difference between revisions

From ALttPR Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> An infobox for a mob profile in the Main namespace. = Usage = <nowiki>{{Infobox mob</nowiki> | world = Light/Dark | image = Uploaded Mob Image | subzon...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
  }}
  }}
[[Image:Infobox mob example.png|right]]
[[Image:Infobox mob example.png|right]]
</noinclude>{| class="infobox wikitable" style="float:right;"
</noinclude><includeonly>{| class="infobox wikitable" style="float:right;"
|-
|-
! colspan="2" | {{ROOTPAGENAME}}
! colspan="2" | {{ROOTPAGENAME}}
Line 17: Line 17:
! colspan="2" | [[Image:{{{image}}}]]
! colspan="2" | [[Image:{{{image}}}]]
|- {{#if: {{{world|}}} | | style="display:none;" }}
|- {{#if: {{{world|}}} | | style="display:none;" }}
! World || [[{{{world|}}} World]]
! World || {{#switch:{{{world|}}}|Light=[[Light World]]|Dark=[[Dark World]]|[[{{{world|}}}]]}}
|- {{#if: {{{subzone|}}} | | style="display:none;" }}
|- {{#if: {{{subzone|}}} | | style="display:none;" }}
! Subzone || [[{{{subzone}}}]]
! Subzone || [[{{{subzone}}}]]
|- {{#ifexpr: {{{green|0}}} + {{{blue|0}}} + {{{red|0}}} > 0 | | style="display:none;" }}
! colspan="2" | Incoming Damage
|- {{#ifexpr: {{{green|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{green|0}}} > 0 | | style="display:none;" }}
! [[Green Mail]] || {{#expr: {{{green|0}}}/8}}
! [[Green Mail]] || {{#expr: {{{green|0}}}/8}}{{Icon|Heart}}
|- {{#ifexpr: {{{blue|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{blue|0}}} > 0 | | style="display:none;" }}
! [[Blue Mail]] || {{#expr: {{{blue|0}}}/8}}
! [[Blue Mail]] || {{#expr: {{{blue|0}}}/8}}{{Icon|Heart}}
|- {{#ifexpr: {{{red|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{red|0}}} > 0 | | style="display:none;" }}
! [[Red Mail]] || {{#expr: {{{red|0}}}/8}}
! [[Red Mail]] || {{#expr: {{{red|0}}}/8}}{{Icon|Heart}}
|}
|}</includeonly>

Latest revision as of 03:04, 24 January 2024

An infobox for a mob profile in the Main namespace.

Usage

{{Infobox mob
| world   = Light/Dark
| image   = Uploaded Mob Image
| subzone = Subzone/Region Name 
| green   = 0 
| blue    = 0 
| red     = 0 
}}