Difference between revisions of "Template:Enemy infobox"

From OMORI Wiki
Jump to navigation Jump to search
m
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox theme-generic-border theme-generic-light" style="float:right; margin-left: 10px; margin-bottom: 10px; font-family:OMORI_GAME2; width:300px; text-transform:uppercase !important;"
{| class="infobox theme-generic-border theme-generic-light" style="float:right; margin-left: 10px; margin-bottom: 10px; font-family:OMORI_GAME2; width:300px; text-transform:uppercase !important;border-radius:2px"
|-  
|-  
! colspan="2" class="theme-generic-border theme-generic-dark" style="font-size:250%; line-height:1; padding:5px; text-align:center;"| {{{name|{{PAGENAME}}}}}
! colspan="2" class="theme-generic-border theme-generic-dark" style="font-size:250%; line-height:1; padding:5px; text-align:center;border-radius:2px"| {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="padding:0.5em; text-align:center;" |
| colspan="2" style="padding:0.5em; text-align:center;" |
<center>
<center>
{|style="text-align:center;"
{|style="text-align:center;"
|<div class="theme-generic-border theme-generic-dark" style="display: flex; align-items: center; justify-content: center;">[[File:{{{image}}}|100%]]</div>
|<div style="display: flex; align-items: center; justify-content: center;border-radius:2px">[[File:{{{image}}}|{{{size}}}]]</div>
|}
|}
</center>
</center>
|-
|-
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{#if:{{{heart<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}heart
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}{{HP}} heart
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{heart}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{heart}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{#if:{{{juice<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}juice
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}{{MP}} juice
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{juice}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{juice}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{#if:{{{attack<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}attack
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}attack
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{attack}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{attack}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{#if:{{{defense<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}defense
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}defense
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{defense}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{defense}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{#if:{{{speed<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}speed
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}speed
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{speed}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{speed}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{#if:{{{luck<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}luck
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}luck
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{luck}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{luck}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{#if:{{{hit<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}hit
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}hit
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{hit}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{hit}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
{{#if:{{{drops<includeonly>|</includeonly>}}} |
{{#if:{{{drops<includeonly>|</includeonly>}}} |
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" {{!}}drops
{{!}} class="theme-generic-border theme-generic-dark item-infobox-row-left" style="border-radius:2px"{{!}}drops
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" {{!}}{{{drops}}}
{{!}} class="theme-generic-border theme-generic-light generic-infobox-row" style="border-radius:2px"{{!}}{{{drops}}}
{{!}}-
{{!}}-
}}
}}
|-
|-
|}
|}
<noinclude>[[Category:Infobox templates]]<templatedata>
{
"params": {
"name": {
"type": "string",
"description": "The name of the enemy; else, the page name will be used",
"label": "Name"
},
"image": {
"description": "The image to use as the thumbnail",
"example": "Forest Bunny (neutral).gif",
"type": "string",
"label": "Thumbnail",
"suggested": true
},
"size": {
"description": "The size of the thumbnail image",
"example": "150px",
"label": "Thumbnail Size",
"type": "string",
"suggested": true
},
"heart": {
"type": "number",
"suggested": true,
"description": "The enemy's health",
"example": "85",
"label": "Heart"
},
"juice": {
"type": "number",
"description": "The enemy's juice",
"example": "42",
"suggested": true,
"label": "Juice"
},
"attack": {
"type": "number",
"label": "Attack",
"description": "The enemy's attack",
"example": "10",
"suggested": true
},
"defense": {
"type": "number",
"label": "Defense",
"description": "The enemy's defense",
"example": "2",
"suggested": true
},
"speed": {
"type": "number",
"label": "Speed",
"description": "The enemy's speed",
"example": "10",
"suggested": true
},
"luck": {
"type": "number",
"label": "Luck",
"description": "The enemy's luck",
"example": "10",
"suggested": true
},
"hit": {
"type": "number",
"label": "Hit",
"description": "The enemy's hit"
},
"drops": {
"description": "What the enemy can drop upon defeat",
"example": "Candy",
"type": "string",
"label": "Drops",
"suggested": true
}
},
"description": "An overview of an enemy.",
"format": "block"
}
</templatedata></noinclude>

Latest revision as of 19:19, 10 March 2023

Enemy infobox
[[File:{{{image}}}|{{{size}}}]]
HP.png heart {{{heart}}}
MP.png juice {{{juice}}}
attack {{{attack}}}
defense {{{defense}}}
speed {{{speed}}}
luck {{{luck}}}
hit {{{hit}}}
drops {{{drops}}}

An overview of an enemy.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the enemy; else, the page name will be used

Stringoptional
Thumbnailimage

The image to use as the thumbnail

Example
Forest Bunny (neutral).gif
Stringsuggested
Thumbnail Sizesize

The size of the thumbnail image

Example
150px
Stringsuggested
Heartheart

The enemy's health

Example
85
Numbersuggested
Juicejuice

The enemy's juice

Example
42
Numbersuggested
Attackattack

The enemy's attack

Example
10
Numbersuggested
Defensedefense

The enemy's defense

Example
2
Numbersuggested
Speedspeed

The enemy's speed

Example
10
Numbersuggested
Luckluck

The enemy's luck

Example
10
Numbersuggested
Hithit

The enemy's hit

Numberoptional
Dropsdrops

What the enemy can drop upon defeat

Example
Candy
Stringsuggested