Difference between revisions of "Template:Infobox monster"

From Stardew Valley Wiki
Jump to navigation Jump to search
(remove "levels" from skull cavern monsters)
m (Text replacement - "colspan=2" to "colspan="2"")
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><div id="infoboxborder">
 
<includeonly><div id="infoboxborder">
 
{| id="infoboxtable"
 
{| id="infoboxtable"
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}}
+
|colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
|colspan="2" style="padding-bottom: 15px;"|{{#if: {{{portrait}}}|[[File:{{{portrait|Villager Placeholder.png}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}
+
|colspan="2" style="padding-bottom: 15px;"|{{#if: {{{portrait}}}|[[File:{{{portrait|Villager Placeholder.png}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}}}|center]]|[[File:Villager Placeholder.png|center|link=]]}}
 
|-
 
|-
 
|colspan="2" id="infoboxsection" style="text-align: center;"|Information
 
|colspan="2" id="infoboxsection" style="text-align: center;"|Information
 
|-
 
|-
 
|id="infoboxsection"|Spawns In:
 
|id="infoboxsection"|Spawns In:
|id="infoboxdetail"|{{#if:{{{location|}}}|[[{{{location}}}]]|N/A}}{{#switch:{{lc:{{{location|}}}}}
+
|id="infoboxdetail"|{{#switch:{{lc:{{{location|}}}}}
|the mines|skull cavern=<nowiki/>
+
| the mines | mines = [[The Mines]]
 +
| the skull cavern | skull cavern = [[Skull Cavern]]
 +
| the farm | farm = [[The Farm]]
 +
| #default = {{{location|}}}}}{{#switch:{{lc:{{{location|}}}}}
 +
|the mines|mines=<nowiki />
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection"{{!}}Levels:
+
{{!}}id="infoboxsection"{{!}}Floors:
 
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|N/A}}
 
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|N/A}}
|farm|the farm|skull cavern=
+
|the skull cavern|skull cavern=<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Floors:
 +
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|All}}
 +
|the farm|farm =
 +
|#default=<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Floors:
 +
{{!}}id="infoboxdetail"{{!}}{{{levels|}}}
 
}}
 
}}
 
|-
 
|-
Line 20: Line 32:
 
|-
 
|-
 
|id="infoboxsection"|Base HP:
 
|id="infoboxsection"|Base HP:
|id="infoboxdetail"|{{#if:{{{hp|}}}|{{{hp}}}|N/A}}
+
|id="infoboxdetail" class="no-wrap"|{{#if:{{{hp|}}}|{{{hp}}}|N/A}}
 
|-
 
|-
 
|id="infoboxsection"|Base Damage:
 
|id="infoboxsection"|Base Damage:
Line 31: Line 43:
 
|id="infoboxdetail"|{{#if:{{{spd|}}}|{{{spd}}}|N/A}}
 
|id="infoboxdetail"|{{#if:{{{spd|}}}|{{{spd}}}|N/A}}
 
|-
 
|-
|id="infoboxsection"|EXP Given:
+
|id="infoboxsection"|XP:
 
|id="infoboxdetail"|{{#if:{{{exp|}}}|{{{exp}}}|N/A}}{{#if:{{{variations|}}}
 
|id="infoboxdetail"|{{#if:{{{exp|}}}|{{{exp}}}|N/A}}{{#if:{{{variations|}}}
 
| <nowiki/>
 
| <nowiki/>
Line 42: Line 54:
 
   {{!}}id="infoboxsection"{{!}}Drops:
 
   {{!}}id="infoboxsection"{{!}}Drops:
 
   {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{location|}}}}}
 
   {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{location|}}}}}
   |mines|the mines|the farm|farm|mutant bug lair={{{drops|N/A}}}<p>If reached bottom of Mines:</p>
+
   |the skull cavern|skull cavern={{{drops|N/A}}}{{name|Diamond|0.05%}}{{name|Prismatic Shard|0.05%}}
  <ul><li>{{name|Diamond|0.4%}}</li>
+
   |#default={{{drops|N/A}}}<p>If reached bottom of Mines:</p>{{name|Diamond|0.05%}}{{name|Prismatic Shard|0.05%}}}}
      <li>{{name|Prismatic Shard|0.4%}}</li></ul>
 
   |skull cavern={{{drops|N/A}}}{{name|Diamond|0.4%}}{{name|Prismatic Shard|0.4%}}
 
  |#default={{{drops|N/A}}}}}
 
 
|}}
 
|}}
 
|-
 
|-
 
|}
 
|}
</div>{{InfoboxSEO}}{{#seo:
+
</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|og:image={{#if:{{{portrait|}}}|{{filepath:{{{portrait|}}}}}}}
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 18:58, 23 October 2021

Description

This template is used to display an infobox for monster pages.

Use

Do not use this on your user page. It is reserved for content pages. This template can be used by entering the following onto a relevant page.

{{Infobox monster
|name       = Name of monster, defaults to {{PAGENAME}}
|portrait   = Image of monster with file extension
|location   = Monster location
|levels     = Location level
|killable   = Yes/no
|hp         = Health amount
|dmg        = Damage to done to player
|def        = Defense amount
|spd        = Movement Speed
|exp        = Experience given on defeat
|variations = List variations. Optional
|drops      = List drops
}}

Sample

Bats
Bat Anim.gif
Information
Spawns In: The Mines
Floors: 31-120
Killable: yes
Base HP: Bat.png 24, Frost Bat.png 36, Lava Bat.png 80
Base Damage: Bat.png 06, Frost Bat.png 07, Lava Bat.png 15
Base Def: 1
Speed: 3
XP: Bat.png 03, Frost Bat.png 07, Lava Bat.png 15
Variations: Bat, Frost Bat, Lava Bat
Drops: Bat Wing.png Bat Wing (75%)

If reached bottom of Mines:

Diamond.png Diamond (0.05%)Prismatic Shard.png Prismatic Shard (0.05%)
{{Infobox monster
|name = Bats
|portrait   = Bat_Anim.gif
|location   = The Mines
|levels     = 31-120
|killable   = yes
|hp         = [[File:Bat.png|16px|link=]] 24, [[File:Frost Bat.png|16px|link=]] 36, [[File:Lava Bat.png|16px|link=]] 80
|dmg        = [[File:Bat.png|16px|link=]] 06, [[File:Frost Bat.png|16px|link=]] 07, [[File:Lava Bat.png|16px|link=]] 15
|def        = 1
|spd        = 3
|exp        = [[File:Bat.png|16px|link=]] 03, [[File:Frost Bat.png|16px|link=]] 07, [[File:Lava Bat.png|16px|link=]] 15
|variations = Bat, Frost Bat, Lava Bat
|drops      = {{name|Bat Wing|75%}}
}}