Difference between revisions of "Template:Status extended infobox"

Jump to navigation Jump to search
no edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 7: Line 7:
| Has image = {{{filename|}}}
| Has image = {{{filename|}}}
| Has ID = {{{id|0}}}
| Has ID = {{{id|0}}}
| Has availability = {{#ifexist:{{{en name|}}}/Used Skills|Current|Unobtainable}}
| Has status tags = {{#var:status tags|Other}}|+sep=;
| Has status type = {{#vardefineecho:status type|{{#switch:{{lc:{{{type|none}}}}}
| Has status type = {{#vardefineecho:status type|{{#switch:{{lc:{{{type|none}}}}}
| 0 | none = None
| 0 | none = None
| 1 | buff = Buff
| 1 | buff = Buff
| 2 | debuff = Debuff
| 2 | debuff = Debuff
| 3 | special status id 3 = Special Status id 3
| 4 | special status id 4 = Special Status id 4
| 5 | irremovable buff = Irremovable Buff
| 5 | irremovable buff = Irremovable Buff
| 6 | irremovable debuff = Irremovable Debuff
| 6 | irremovable debuff = Irremovable Debuff
Line 16: Line 20:
}}}}
}}}}
| Has duration = {{{duration|1}}}
| Has duration = {{{duration|1}}}
| Has English note = {{#if:{{{expanded note|}}}|{{{note|}}} ({{{expanded note|}}})|{{{note|}}}}}
| Has English note = {{#if:{{{expanded note|}}}|{{{expanded note|}}}|{{{note|}}}}}
| Has Japanese note = {{{jp-note|{{{note|}}}}}}
| Has Japanese note = {{{jp-note|{{{note|}}}}}}


Line 42: Line 46:


}}[[Category:Status effects]]
}}[[Category:Status effects]]
}}<!-- end subobj creation --><!---->{{#css:
}}<!-- end subobj creation -->{{#vardefine:expand tips|left}}<!---->{{#css:


table.status-preview-infobox {
table.status-preview-infobox {
Line 48: Line 52:
     border: 1px solid #aaa;
     border: 1px solid #aaa;
     font-size: 11px;
     font-size: 11px;
     margin: 1em 0em 1em 2em;
     margin: 1em 1em 1em 1em;
     padding: 2px;
     padding: 2px;
     text-align: center;
     text-align: center;
     overflow: visible;
     overflow: visible;
     position: relative;
     position: relative;
    max-width: 50em;
}
}


Line 151: Line 156:
}}<table id="status{{#var:statusnumber}}" class="status-preview-infobox status-{{#replace:{{#var:status type|{{{type|}}}}}| |-}}" style="{{#ifeq:{{{floats|true}}}|true|float: right;}}">
}}<table id="status{{#var:statusnumber}}" class="status-preview-infobox status-{{#replace:{{#var:status type|{{{type|}}}}}| |-}}" style="{{#ifeq:{{{floats|true}}}|true|float: right;}}">
<tr>
<tr>
   <th colspan="4">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_status/icon_status_{{lc:{{{filename|}}}}}.png}}}}<abbr title="{{{jp name|}}}">{{{en name|{{{jp name|???}}}}}}</abbr></th>
   <th colspan="4">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_status/icon_status_{{lc:{{{filename|}}}}}.png}}}}{{Tooltip|{{{en name|{{{jp name|???}}}}}}|{{{jp name|}}}}}</th>
</tr><!--
</tr><!--
Status Type-->{{#if:{{#var:status type}}|
Status Type-->{{#if:{{#var:status type}}|
<tr>
<tr>
   <th colspan="2">Type</th>
   <th colspan="2">Type</th>
   <td colspan="2"><abbr title="{{#switch:{{#var:status type}}
   <td colspan="2">{{Tooltip|{{#var:status type}}|{{#switch:{{#var:status type}}
|Buff = Affected by statuses related to buffs, e. g. Spread Buffs or Nullify Buff.
|Buff = Affected by statuses related to buffs, e. g. Spread Buffs or Nullify Buff.
|Debuff = Affected by statuses related to debuffs, e. g. Nullify Debuff or Reflect Debuff.
|Debuff = Affected by statuses related to debuffs, e. g. Nullify Debuff or Reflect Debuff.
|#default = Unaffected by other statuses (cannot be copied or preemptively removed by them).}}">{{#var:status type}}</abbr></td>
|#default = Unaffected by other statuses (cannot be copied or preemptively removed by them).}}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 183: Line 188:
</tr>
</tr>
}}<tr>
}}<tr>
  <th colspan="2">Tags</th>
  <td colspan="2">{{#show:{{#var:status subobj}}|?Has status tags}}</td>
</tr>
<tr>
   <th colspan="2"></th>
   <th colspan="2"></th>
   <th colspan="1">Base Value</th>
   <th colspan="1">Base Value</th>
Line 256: Line 265:
}}<!--
}}<!--
   Show related
   Show related
-->{{#ifexist:{{{en name|}}}/Used Skills |
-->{{#ifeq: {{#show:{{#var:status subobj}} | ?Has availability}} | Current |
<tr>
<tr>
   <th colspan="4">[[{{{en name|}}}/Used Skills|Used Skills]]</th>
   <th colspan="4">[[{{{en name|}}}/Used Skills|Used Skills]]</th>
Line 262: Line 271:
| [[Category:Unused status]]}}
| [[Category:Unused status]]}}
</table>
</table>
</includeonly></onlyinclude>
</includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
== Description ==
 
This templates creates an infobox for a status effect, as well as a status effect subobject using the following properties:
 
== Usage ==
<pre>{{Status extended infobox
| id =
| en name =
| jp name =
| filename =
| duration =
| damage-add =
| damage-add-max =
| damage-mult =
| damage-mult-max =
| damaged-add =
| damaged-add-max =
| damaged_mult =
| damaged_mult_max =
| hp-recovery =
| hp-recovery-max =
| cp-add =
| locks =
| type =
| note =
}}</pre>
 
=== Parameters ===
 
; en name : (Officially localized) English name of the status
; jp-en name : (Unofficially) translated English name of the status
; jp name : Original Japanese name of the status
; filename : Filename the status icon uses
; id : internal ID used
; type : Whether this is a buff or a debuff
; duration : How many turns the status effect persists
; note : Note that displays when the status effect is added
; jp-note : Original Japanese for the above
; damage-add : Additional damage applied when attacking (constant)
; damage-add-max : Max value for the above
; damage-mult : Damage multiplier applied when attacking (coefficient)
; damaged-add : Additional damage applied when attacked (constant)
; damaged-add-max : Max value for the above
; damage-mult-max : Max value for the above
; damaged-mult : Damage multiplier applied when attacked (coefficient)
; damaged-mult-max : Max value for the above
; hp-recovery : HP recovered at end turn
; hp-recovery-max : Max value for the above
; cp-add : CP recovered at end turn
; rate-add : Max value for the above
; locks : Restrictions applied to unit. These include: movement, attack, skill, CS, blowback
 
 
== Examples ==
 
<pre>{{Status extended infobox
| id = 41
| en name = Guts
| jp name = 根性
| filename = guts
| duration = 5
| type = buff
| note = HPゼロ時に復活
}}
</pre>
{{Status extended infobox
| id = 41
| en name = Guts
| jp name = 根性
| filename = guts
| duration = 5
| type = Buff
| note = HPゼロ時に復活
}}
 
[[Category:Infobox templates]][[Category:Subobject templates]]
4,366

edits

Navigation menu