Difference between revisions of "Template:Enemy infobox"
Jump to navigation
Jump to search
m |
|||
(12 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 style="display: flex; align-items: center; justify-content: center; | |<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 | ||
---|---|---|
| ||
heart | {{{heart}}} | |
juice | {{{juice}}} | |
attack | {{{attack}}} | |
defense | {{{defense}}} | |
speed | {{{speed}}} | |
luck | {{{luck}}} | |
hit | {{{hit}}} | |
drops | {{{drops}}} |
An overview of an enemy.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the enemy; else, the page name will be used | String | optional |
Thumbnail | image | The image to use as the thumbnail
| String | suggested |
Thumbnail Size | size | The size of the thumbnail image
| String | suggested |
Heart | heart | The enemy's health
| Number | suggested |
Juice | juice | The enemy's juice
| Number | suggested |
Attack | attack | The enemy's attack
| Number | suggested |
Defense | defense | The enemy's defense
| Number | suggested |
Speed | speed | The enemy's speed
| Number | suggested |
Luck | luck | The enemy's luck
| Number | suggested |
Hit | hit | The enemy's hit | Number | optional |
Drops | drops | What the enemy can drop upon defeat
| String | suggested |