Template:Infobox Melee: Difference between revisions
From PSP2i Wiki
No edit summary |
No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table align="right" style="border: 1px solid #aaa; font-size: 95%" cellpadding="0"> | <table align="right" style="border: 1px solid #aaa; font-size: 95%; margin-bottom: 10px;" cellpadding="0"> | ||
<tr><td><table align="center"> | <tr><td><table align="center" style="width:100%;"> | ||
<tr> | <tr> | ||
<th colspan="2" style="font-size: larger; text-align: center; background-color: #A00000;">{{{title|{{PAGENAME}}}}}</th> | <th colspan="2" style="font-size: larger; text-align: center; background-color: #A00000;">{{{title|{{PAGENAME}}}}}</th> | ||
Line 41: | Line 41: | ||
<th style="background-color: #A00000;">Grade:</th> | <th style="background-color: #A00000;">Grade:</th> | ||
<td>{{#switch:{{{grade}}} | <td>{{#switch:{{{grade}}} | ||
| C = [[File:c. | | C = [[File:c.png|link=]] | ||
| B = [[File:b. | | B = [[File:b.png|link=]] | ||
| A = [[File:a. | | A = [[File:a.png|link=]] | ||
| S = [[File:s. | | S = [[File:s.png|link=]] | ||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
Line 82: | Line 82: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#ifeq:{{#expr: {{#if:{{{HP|}}}|1|0}} or {{#if:{{{ATK|}}}|1|0}} or {{#if:{{{DEF|}}}|1|0}} or {{#if:{{{ACC|}}}|1|0}} or {{#if:{{{EVA|}}}|1|0}} or {{#if:{{{TEC|}}}|1|0}} or {{#if:{{{MND|}}}|1|0}} or {{#if:{{{STA}}}|1|0}} or {{#if:{{{LCK}}}|1|0}}}}|0||<tr><td colspan="2"><table align="center" | {{#ifeq:{{#expr: {{#if:{{{HP|}}}|1|0}} or {{#if:{{{ATK|}}}|1|0}} or {{#if:{{{ATK10|}}}|1|0}} or {{#if:{{{DEF|}}}|1|0}} or {{#if:{{{ACC|}}}|1|0}} or {{#if:{{{EVA|}}}|1|0}} or {{#if:{{{TEC|}}}|1|0}} or {{#if:{{{MND|}}}|1|0}} or {{#if:{{{STA}}}|1|0}} or {{#if:{{{LCK}}}|1|0}}}}|0||<tr><td colspan="2"><table align="center" style="width:100%"> | ||
<tr> | <tr> | ||
{{#if:{{{HP|}}}|<td style="text-align: center;"><b>HP</b></td>}}{{#if:{{{ATK|}}}|<td style="text-align: center;"><b>ATK</b></td>}}{{#if:{{{DEF|}}}|<td style="text-align: center;"><b>DEF</b></td>}}{{#if:{{{ACC|}}}|<td style="text-align: center;"><b>ACC</b></td>}}{{#if:{{{EVA|}}}|<td style="text-align: center;"><b>EVA</b></td>}}{{#if:{{{TEC|}}}|<td style="text-align: center;"><b>TEC</b></td>}}{{#if:{{{MND|}}}|<td style="text-align: center;"><b>MND</b></td>}}{{#if:{{{STA|}}}|<td style="text-align: center;"><b>STA</b></td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;"><b>LCK</b></td>}} | {{#if:{{{HP|}}}|<td style="text-align: center;"><b>HP</b></td>}}{{#if:{{{ATK|}}}|<td style="text-align: center;"><b>ATK</b></td>}}{{#if:{{{ATK10|}}}|<td style="text-align: center;"><b>(10)</b></td>}}{{#if:{{{DEF|}}}|<td style="text-align: center;"><b>DEF</b></td>}}{{#if:{{{ACC|}}}|<td style="text-align: center;"><b>ACC</b></td>}}{{#if:{{{EVA|}}}|<td style="text-align: center;"><b>EVA</b></td>}}{{#if:{{{TEC|}}}|<td style="text-align: center;"><b>TEC</b></td>}}{{#if:{{{MND|}}}|<td style="text-align: center;"><b>MND</b></td>}}{{#if:{{{STA|}}}|<td style="text-align: center;"><b>STA</b></td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;"><b>LCK</b></td>}} | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
{{#if:{{{HP|}}}|<td style="text-align: center;">{{{HP}}}</td>}}{{#if:{{{ATK|}}}|<td style="text-align: center;">{{{ATK}}}</td>}}{{#if:{{{DEF|}}}|<td style="text-align: center;">{{{DEF}}}</td>}}{{#if:{{{ACC|}}}|<td style="text-align: center;">{{{ACC}}}</td>}}{{#if:{{{EVA|}}}|<td style="text-align: center;">{{{EVA}}}</td>}}{{#if:{{{TEC|}}}|<td style="text-align: center;">{{{TEC}}}</td>}}{{#if:{{{MND|}}}|<td style="text-align: center;">{{{MND}}}</td>}}{{#if:{{{STA|}}}|<td style="text-align: center;">{{{STA}}}</td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;">{{{LCK}}}</td>}} | {{#if:{{{HP|}}}|<td style="text-align: center;">{{{HP}}}</td>}}{{#if:{{{ATK|}}}|<td style="text-align: center;">{{{ATK}}}</td>}}{{#if:{{{ATK10|}}}|<td style="text-align: center;">{{{ATK10}}}</td>}}{{#if:{{{DEF|}}}|<td style="text-align: center;">{{{DEF}}}</td>}}{{#if:{{{ACC|}}}|<td style="text-align: center;">{{{ACC}}}</td>}}{{#if:{{{EVA|}}}|<td style="text-align: center;">{{{EVA}}}</td>}}{{#if:{{{TEC|}}}|<td style="text-align: center;">{{{TEC}}}</td>}}{{#if:{{{MND|}}}|<td style="text-align: center;">{{{MND}}}</td>}}{{#if:{{{STA|}}}|<td style="text-align: center;">{{{STA}}}</td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;">{{{LCK}}}</td>}} | ||
</tr> | </tr> | ||
</table></td></tr> | </table></td></tr>}} | ||
<table align="center" | <table align="center" style="width:100%"> | ||
{{#if:{{{PA|}}}| | {{#if:{{{PA|}}}| | ||
<tr> | <tr> | ||
<th style="background-color: #A00000;">PA:</th> | <th style="background-color: #A00000;">PA%:</th> | ||
<td>{{{PA}}}</td> | <td>{{{PA}}}</td> | ||
<th style="background-color: #A00000;">PP:</th> | <th style="background-color: #A00000;">PP%:</th> | ||
<td>{{{PP}}}</td> | <td>{{{PP}}}</td> | ||
</tr> | </tr> | ||
}}</table> | }}</table> | ||
<table align="center" | <table align="center" style="width:100%"> | ||
<th style="background-color: #A00000;" colspan="2">Extend Data</th> | <th style="background-color: #A00000;" colspan="2">Extend Data</th> | ||
{{#if:{{{EATK|}}}| | {{#if:{{{EATK|}}}| | ||
<tr> | <tr> | ||
<th style="background-color: #A00000;">ATK:</th> | <th style="background-color: #A00000;">EXT ATK:</th> | ||
<td>{{{EATK}}} (+{{#expr:{{{ | <td>{{{EATK}}} (+{{#expr:{{{EATK}}}-{{{ATK10}}}}})</td> | ||
</tr> | |||
}} | |||
{{#if:{{{EACC|}}}| | |||
<tr> | |||
<th style="background-color: #A00000;">EXT ACC:</th> | |||
<td>{{{EACC}}} (+{{#expr:{{{EACC}}}-{{{ACC}}}}})</td> | |||
</tr> | |||
}} | |||
{{#if:{{{IATK|}}}| | |||
<tr> | |||
<th style="background-color: #A00000;">EXT∞ ATK:</th> | |||
<td>{{{IATK}}} (+{{#expr:{{{IATK}}}-{{{EATK}}}}})</td> | |||
</tr> | |||
}} | |||
{{#if:{{{IACC|}}}| | |||
<tr> | |||
<th style="background-color: #A00000;">EXT∞ ACC:</th> | |||
<td>{{{IACC}}} (+{{#expr:{{{IACC}}}-{{{EACC}}}}})</td> | |||
</tr> | </tr> | ||
}}</table> | }}</table> | ||
<table | <table style="width:100%"><tr> | ||
<th style="background:#FF7979;">[[File:Burn.png|link=]]</th> | <th style="background:#FF7979;">[[File:Burn.png|link=]]</th> | ||
<th style="background:#40C9FF;">[[File:Freeze.png|link=]]</th> | <th style="background:#40C9FF;">[[File:Freeze.png|link=]]</th> | ||
Line 128: | Line 146: | ||
</table> | </table> | ||
</td></tr> | </td></tr> | ||
</table> | </table> | ||
{{#if:{{{desc|}}}| | <div class="noexcerpt">{{#if:{{{desc|}}}| | ||
: ''{{{desc|}}}'' | : ''{{{desc|}}}''}}</div> | ||
<noinclude>{{/doc}}</noinclude> |
Latest revision as of 14:04, 2 October 2022
|
Usage[edit source]
This template is used to generate the infoboxes on melee weapon pages. All fields are optional, so only relevant information to the weapon should be defined. If a weapon does not grant any DEF for example, the field should be deleted or left empty.
Syntax[edit source]
{{Infobox Melee | jp = | romaji = | image = | stars = | type = | manufacturer = | grade = | requirement = | special = | rate = | element = | HP = | PP = | ATK = | ATK10 = | ACC = | EATK = | EACC = | IATK = | IACC = | DEF = | EVA = | TEC = | MND = | STA = | LCK = | PA = | PP = | burn = | freeze = | stun = | sleep = | confuse = | infect = | incap = | drain = | desc = }}
- jp: Exact japanese name for the item.
- romaji: Translation of the japanese name for the item, not direct romaji.
- image: Must be written as
Item Name.png
, copying the exact name of the item in-game. - stars: Number from 1 to 16.
- type: Type of weapon, such as sword, whip, etc.
- manufacturer: Only the entries
GRM
,Tenora
,Yohmei
, andKubara
are valid. Will replace with manufacturer icon. - grade: Only the entries
C
,B
,A
, andS
are valid. Will replace with grade icon. - requirement: Write as
Level X
. - special: Write as
Special LVX
. If no special, writeNone
. - rate: Write as
X%
. This is the proc rate of the special attack - this stat exists even if the base special is None. - element: Only the entries
Any
,Neutral
,Fire
,Ice
,Lightning
,Ground
,Lightning
,Light
,Dark
, andLightDark
are valid. Will replace with attribute icon. - stats: Only input stats on the weapon. EATK, EACC, IATK and IACC refer to extend and extend infinity stats respectively.
- PA/PP: Write as
X
. - specials: These are the specials gained on Extend. Only the levels need to be inputted, i.e.
infect = 3
. If not gained on extend, delete or leave the field blank. - desc: Description of the item.