Difference between revisions of "Template:Status extended infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
(21 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 | ||
| 5 | 6 | | | 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}}}}} | |#default = {{lc:{{{type|None}}}}} | ||
}}}} | }}}} | ||
| Has duration = {{{duration|1}}} | | Has duration = {{{duration|1}}} | ||
| Has English note = {{#if:{{{expanded note|}}}| | | Has English note = {{#if:{{{expanded note|}}}|{{{expanded note|}}}|{{{note|}}}}} | ||
| Has Japanese note = {{{jp-note|{{{note|}}}}}} | | Has Japanese note = {{{jp-note|{{{note|}}}}}} | ||
Line 41: | 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 47: | Line 52: | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
font-size: 11px; | font-size: 11px; | ||
margin: 1em | 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 106: | Line 112: | ||
} | } | ||
table.status- | table.status-Irremovable-Buff tr:first-child th { | ||
background-color: # | background-color: #daa; | ||
padding: 0.5em 1em 0.5em 1em; | padding: 0.5em 1em 0.5em 1em; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
} | } | ||
table.status- | table.status-Irremovable-Buff tr:not(:first-child) th { | ||
background-color: # | background-color: #dbb; | ||
} | } | ||
table.status- | table.status-Irremovable-Buff tr:not(:first-child) th + th { | ||
background-color: # | background-color: #ddc2c2; | ||
} | |||
table.status-Irremovable-Debuff tr:first-child th { | |||
background-color: #aad; | |||
padding: 0.5em 1em 0.5em 1em; | |||
font-size: 1.2em; | |||
} | |||
table.status-Irremovable-Debuff tr:not(:first-child) th { | |||
background-color: #bbd; | |||
} | |||
table.status-Irremovable-Debuff tr:not(:first-child) th + th { | |||
background-color: #c2c2dd; | |||
} | } | ||
Line 136: | 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}}}} | <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">{{#var:status type}}</td> | <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> | ||
}}<!-- | }}<!-- | ||
Line 165: | 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 238: | Line 265: | ||
}}<!-- | }}<!-- | ||
Show related | Show related | ||
-->{{# | -->{{#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 244: | Line 271: | ||
| [[Category:Unused status]]}} | | [[Category:Unused status]]}} | ||
</table> | </table> | ||
</includeonly></onlyinclude> | </includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> | ||
< | |||
}}</ | |||
Latest revision as of 21:50, 11 September 2021
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
- 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 |
The above documentation is transcluded from Template:Status extended infobox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |