Difference between revisions of "Template:Status extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(45 intermediate revisions by 3 users not shown)
Line 7: Line 7:
| Has image = {{{filename|}}}
| Has image = {{{filename|}}}
| Has ID = {{{id|0}}}
| Has ID = {{{id|0}}}
| Has status type = {{#vardefineecho:status type|{{switch:{{lc:{{{type|}}}}}
| 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}}}}}
| 0 | none = None
| 0 | none = None
| 1 | buff = Buff
| 1 | buff = Buff
| 2 | debuff = Debuff
| 2 | debuff = Debuff
|#default = {{lc:{{{type|}}}}}
| 3 | special status id 3 = Special Status id 3
| 4 | special status id 4 = Special Status id 4
| 5 | irremovable buff = Irremovable Buff
| 6 | irremovable debuff = Irremovable Debuff
|#default = {{lc:{{{type|None}}}}}
}}}}
}}}}
| Has duration = {{{duration|1}}}
| Has duration = {{{duration|1}}}
| Has English note = {{{note|}}}
| Has English note = {{#if:{{{expanded note|}}}|{{{expanded note|}}}|{{{note|}}}}}
| Has Japanese note = {{{jp-note|{{{note|}}}}}}
| Has Japanese note = {{{jp-note|{{{note|}}}}}}


Line 40: 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 46: 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 77: Line 84:
}
}


table.buff tr:first-child th {
table.status-Buff tr:first-child th {
    background-color: #fcc;
    padding: 0.5em 1em 0.5em 1em;
    font-size: 1.2em;
}
 
table.status-Buff tr:not(:first-child) th {
    background-color: #fdd;
}
 
table.status-Buff tr:not(:first-child) th + th {
    background-color: #ffe4e4;
}
 
table.status-Debuff tr:first-child th {
     background-color: #ccf;
     background-color: #ccf;
     padding: 0.5em 1em 0.5em 1em;
     padding: 0.5em 1em 0.5em 1em;
Line 83: Line 104:
}
}


table.buff tr:not(:first-child) th {
table.status-Debuff tr:not(:first-child) th {
     background-color: #ddf;
     background-color: #ddf;
}
}


table.buff tr:not(:first-child) th + th {
table.status-Debuff tr:not(:first-child) th + th {
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}


table.debuff tr:first-child th {
table.status-Irremovable-Buff tr:first-child th {
     background-color: #ccf;
    background-color: #daa;
    padding: 0.5em 1em 0.5em 1em;
    font-size: 1.2em;
}
 
table.status-Irremovable-Buff tr:not(:first-child) th {
    background-color: #dbb;
}
 
table.status-Irremovable-Buff tr:not(:first-child) th + th {
    background-color: #ddc2c2;
}
 
table.status-Irremovable-Debuff tr:first-child th {
     background-color: #aad;
     padding: 0.5em 1em 0.5em 1em;
     padding: 0.5em 1em 0.5em 1em;
     font-size: 1.2em;
     font-size: 1.2em;
}
}


table.debuff tr:not(:first-child) th {
table.status-Irremovable-Debuff tr:not(:first-child) th {
     background-color: #ddf;
     background-color: #bbd;
}
}


table.debuff tr:not(:first-child) th + th {
table.status-Irremovable-Debuff tr:not(:first-child) th + th {
     background-color: #e4e4ff;
     background-color: #c2c2dd;
}
}


Line 119: Line 154:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}<table id="status{{#var:statusnumber}}" class="status-preview-infobox status-{{#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>
  <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><!--
Status Type-->{{#if:{{#var:status type}}|
<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="2">Type</th>
  <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.
|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).}}}}</td>
</tr>
</tr>
<!--
}}<!--
   Notes
   Notes
-->{{#if:{{{note|{{{jp-note|}}}}}}|  
-->{{#if:{{{note|{{{jp-note|}}}}}}|  
<tr>
<tr>
   <th colspan="2">Notes</th>
   <th colspan="2">Notes</th>
   <td coslapn="2">{{{note|{{{jp-note|?}}}}}}</td>
   <td colspan="2">{{{note|{{{jp-note|?}}}}}}</td>
</tr>
}}<!--
  Expanded Notes
-->{{#if:{{{expanded note|}}}|
<tr>
  <th colspan="2">Description</th>
  <td colspan="2">{{{expanded note|}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 135: Line 185:
<tr>
<tr>
   <th colspan="2">Duration</th>
   <th colspan="2">Duration</th>
   <td coslapn="2">{{{duration|?}}}</td>
   <td colspan="2">{{{duration|?}}}</td>
</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 146: Line 200:
<tr>
<tr>
   <th colspan="2">Additional Damage Dealt</th>
   <th colspan="2">Additional Damage Dealt</th>
   <td coslapn="1">{{{damage-add|?}}}</td>
   <td colspan="1">{{{damage-add|?}}}</td>
   <td coslapn="1">{{{damage-add-max|?}}}</td>
   <td colspan="1">{{{damage-add-max|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 154: Line 208:
<tr>
<tr>
   <th colspan="2">Damage Multiplier Dealt</th>
   <th colspan="2">Damage Multiplier Dealt</th>
   <td coslapn="1">{{{damage-mult|?}}}%</td>
   <td colspan="1">{{{damage-mult|?}}}%</td>
   <td coslapn="1">{{{damage-mult-max|?}}}%</td>
   <td colspan="1">{{{damage-mult-max|?}}}%</td>
</tr>
</tr>
}}<!--
}}<!--
Line 162: Line 216:
<tr>
<tr>
   <th colspan="2">Additional Damaged Received</th>
   <th colspan="2">Additional Damaged Received</th>
   <td coslapn="1">{{{damaged-add|?}}}</td>
   <td colspan="1">{{{damaged-add|?}}}</td>
   <td coslapn="1">{{{damaged-add-max|?}}}</td>
   <td colspan="1">{{{damaged-add-max|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 170: Line 224:
<tr>
<tr>
   <th colspan="2">Damage Multiplier Received</th>
   <th colspan="2">Damage Multiplier Received</th>
   <td coslapn="1">{{{damaged-mult|?}}}%</td>
   <td colspan="1">{{{damaged-mult|?}}}%</td>
   <td coslapn="1">{{{damaged-mult-max|?}}}%</td>
   <td colspan="1">{{{damaged-mult-max|?}}}%</td>
</tr>
</tr>
}}<!--
}}<!--
Line 178: Line 232:
<tr>
<tr>
   <th colspan="2">HP Recovered</th>
   <th colspan="2">HP Recovered</th>
   <td coslapn="1">{{{hp-recovery|?}}}</td>
   <td colspan="1">{{{hp-recovery|?}}}</td>
   <td coslapn="1">{{{hp-recovery-max|?}}}</td>
   <td colspan="1">{{{hp-recovery-max|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 186: Line 240:
<tr>
<tr>
   <th colspan="2">CP Added</th>
   <th colspan="2">CP Added</th>
   <td coslapn="2">{{{cp-add|?}}}</td>
   <td colspan="2">{{{cp-add|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 193: Line 247:
<tr>
<tr>
   <th colspan="2">Skill Proc Rate Up</th>
   <th colspan="2">Skill Proc Rate Up</th>
   <td coslapn="2">{{{rate-add|?}}}</td>
   <td colspan="2">{{{rate-add|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
Line 200: Line 254:
<tr>
<tr>
   <th colspan="2">Unit Restrictions</th>
   <th colspan="2">Unit Restrictions</th>
   <td coslapn="2">{{{locks|?}}}</td>
   <td colspan="2">{{{locks|?}}}</td>
</tr>
}}<!--
  Adds hate
-->{{#if: {{{hate-add|}}} |
<tr>
  <th colspan="2">Additional Aggro</th>
  <td colspan="2">{{{hate-add|?}}}</td>
</tr>
</tr>
}}<!--
}}<!--
   Show related
   Show related
-->{{#ifexist:Category:Skill that uses {{{en name|}}} |
-->{{#ifeq: {{#show:{{#var:status subobj}} | ?Has availability}} | Current |
<tr>
<tr>
   <th colspan="4">[[:Category:Skill that uses {{{en name|}}}|Used Skills]]</th>
   <th colspan="4">[[{{{en name|}}}/Used Skills|Used Skills]]</th>
</tr>
</tr>
| [[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
| filename = Guts
| id = 41
| en name = Guts
| jp name = 根性
| filename = guts
| duration = 5
| 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 = buff
| note = HPゼロ時に復活
}}
</pre>
{{Status extended infobox
| filename = Guts
| id = 41
| en name = Guts
| jp name = 根性
| filename = guts
| duration = 5
| 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 = buff
| note = HPゼロ時に復活
}}
 
[[Category:Infobox templates]][[Category:Subobject templates]]

Latest revision as of 21:50, 11 September 2021

Template documentation[view] [edit] [history] [purge]

Description

This templates creates an infobox for a status effect, as well as a status effect subobject.

Usage

To invoke the template, simply write
{{#masterdata:Status|<id>}}

Where <id> is the ID of the status.

Additional variables can also be declared to alter the infobox.

Variables

  • status en name - English name of the status. This name will usually be the one that's going to be displayed by other templates.
  • status en note - a description of the status. This description will also be displayed via Template:Status.
  • status tags - tags for the status. Among other uses, they determine where the status will appear in the navbox. Full list is below.

Status tags

See: Property:Has status tags

  • ATK Up
  • DEF Up
  • Status-related
  • Increase CP
  • Conditional
  • Affinity Burst
  • Increase HP
  • Proc rate up
  • Weapon change
  • DEF Down
  • Decrease CP
  • Decrease HP
  • Proc rate down
  • Lock movement
  • Skill acquisition
  • Extra stack (to prevent extra stackable statuses from polluting the navbox)
  • Other (default)

Usability

In order for the declared status to be declared as usable (and visible in the status navbox), there must be a /Used Skills page for a status, with the prefix matching the status English name. If done correctly, a link to the page will show up at the bottom of the infobox.

Examples

{{#vardefine:status en name|Acceleration}}
{{#vardefine:status tags|Increase CP}}
{{#vardefine:status en note|+8CP/turn for 3 turns}}
{{#masterdata:Status|35}}



Acceleration加速
Notes Gain CP each turn
Description +8CP/turn for 3 turns
Duration 3
Tags Increase CP
Base Value Maximum Value
CP Added 8
Used Skills