Difference between revisions of "Template:Infobox monster"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) m (Text replacement - "colspan=2" to "colspan="2"") |
||
(15 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 | + | |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"|{{# | + | |id="infoboxdetail"|{{#switch:{{lc:{{{location|}}}}} |
− | |the mines=<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"{{!}} | + | {{!}}id="infoboxsection"{{!}}Floors: |
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|N/A}} | {{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|N/A}} | ||
− | |skull cavern=<nowiki/> | + | |the skull cavern|skull cavern=<nowiki /> |
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}} | + | {{!}}id="infoboxsection"{{!}}Floors: |
− | {{!}}id="infoboxdetail"{{!}}All | + | {{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|All}} |
− | |farm| | + | |the farm|farm = |
+ | |#default=<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}}Floors: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{levels|}}} | ||
}} | }} | ||
|- | |- | ||
Line 24: | 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 35: | Line 43: | ||
|id="infoboxdetail"|{{#if:{{{spd|}}}|{{{spd}}}|N/A}} | |id="infoboxdetail"|{{#if:{{{spd|}}}|{{{spd}}}|N/A}} | ||
|- | |- | ||
− | |id="infoboxsection"| | + | |id="infoboxsection"|XP: |
|id="infoboxdetail"|{{#if:{{{exp|}}}|{{{exp}}}|N/A}}{{#if:{{{variations|}}} | |id="infoboxdetail"|{{#if:{{{exp|}}}|{{{exp}}}|N/A}}{{#if:{{{variations|}}} | ||
| <nowiki/> | | <nowiki/> | ||
Line 46: | Line 54: | ||
{{!}}id="infoboxsection"{{!}}Drops: | {{!}}id="infoboxsection"{{!}}Drops: | ||
{{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{location|}}}}} | {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{location|}}}}} | ||
− | + | |the skull cavern|skull cavern={{{drops|N/A}}}{{name|Diamond|0.05%}}{{name|Prismatic Shard|0.05%}} | |
− | | | + | |#default={{{drops|N/A}}}<p>If reached bottom of Mines:</p>{{name|Diamond|0.05%}}{{name|Prismatic Shard|0.05%}}}} |
− | |||
|}} | |}} | ||
|- | |- | ||
|} | |} | ||
− | </div>{{InfoboxSEO | + | </div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
− | |||
− | }}</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 | |
Information | |
Spawns In: | The Mines |
Floors: | 31-120 |
Killable: | yes |
Base HP: | 24, 36, 80 |
Base Damage: | 06, 07, 15 |
Base Def: | 1 |
Speed: | 3 |
XP: | 03, 07, 15 |
Variations: | Bat, Frost Bat, Lava Bat |
Drops: | Bat Wing (75%) If reached bottom of Mines: Diamond (0.05%) 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%}} }}