Difference between revisions of "Template:Status extended infobox"

no edit summary
(Created page with "<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | {{#subobject:status{{#vardefineecho:statusnumber|{{#expr:{{#var:statusnumber|-...")
 
Line 7: Line 7:
| Has image = {{{filename|}}}
| Has image = {{{filename|}}}
| Has ID = {{{id|0}}}
| Has ID = {{{id|0}}}
| Has status type = {{{type|}}}
| Has status type = {{#vardefineecho:status type|{{switch:{{lc:{{{type|}}}}}
| 0 | none = None
| 1 | buff = Buff
| 2 = debuff = Debuff
}}}}
| Has duration = {{{duration|1}}}
| Has duration = {{{duration|1}}}
| Has English note = {{{note|}}}
| Has English note = {{{note|}}}
Line 44: Line 48:
     padding: 2px;
     padding: 2px;
     text-align: center;
     text-align: center;
    {{#ifeq:{{{floats|true}}}|true|float: right;}}
     overflow: visible;
     overflow: visible;
     position: relative;
     position: relative;
Line 70: Line 73:


table.status-preview-infobox tr:not(:first-child) th + th {
table.status-preview-infobox tr:not(:first-child) th + th {
    background-color: #e4e4ff;
}
table.buff tr:first-child th {
    background-color: #ccf;
    padding: 0.5em 1em 0.5em 1em;
    font-size: 1.2em;
}
table.buff tr:not(:first-child) th {
    background-color: #ddf;
}
table.buff tr:not(:first-child) th + th {
    background-color: #e4e4ff;
}
table.debuff tr:first-child th {
    background-color: #ccf;
    padding: 0.5em 1em 0.5em 1em;
    font-size: 1.2em;
}
table.debuff tr:not(:first-child) th {
    background-color: #ddf;
}
table.debuff tr:not(:first-child) th + th {
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}
Line 87: Line 118:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}<table id="status{{#var:statusnumber}}" class="status-preview-infobox">
}}<table id="status{{#var:statusnumber}}" class="status-preview-infobox status-{{#var:status 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}}}}<abbr title="{{{jp name|}}}">{{{en name|{{{jp name|???}}}}}}</abbr></th>