Template:Infobox Melee: Difference between revisions

From PSP2i Wiki
No edit summary
No edit summary
 
(54 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: #ccc;">{{#if:{{{icon|}}}|{{PSO icon|{{{icon|}}}}}}} {{{title|{{PAGENAME}}}}}</th>
<th colspan="2" style="font-size: larger; text-align: center; background-color: #A00000;">{{{title|{{PAGENAME}}}}}</th>
</tr>
</tr>
{{#if:{{{jp|}}}|
{{#if:{{{romaji|}}}|
<tr>
<tr>
<td colspan="2" style="text-align:center;">{{#if:{{{romaji|}}}|{{Note|{{{romaji}}}|{{{jp}}}}}|{{{jp}}}}}</td>
<td colspan="2" style="text-align:center;">{{#if:{{{jp|}}}|{{Note|{{{jp}}}|{{{romaji}}}}}|{{{romaji}}}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" style="text-align: center;">[[File:{{{image}}}{{#if:{{{imagealt|}}}|{{!}}alt={{{imagealt}}}}}{{!}}{{#ifeq:{{{icon|}}}|Disk|50|160}}px{{!}}link=]]</td>
<td colspan="2" style="text-align: center;">[[File:{{{image}}}{{#if:{{{imagealt|}}}|{{!}}alt={{{imagealt}}}}}{{!}}160px{{!}}link=]]</td>
</tr>
</tr>
}}
}}
{{#if:{{{stars|}}}|
{{#if:{{{stars|}}}|
<tr>
<tr>
<td title="{{{stars|}}}★" colspan="2" style="font-size: 14pt; text-align: center; background-color: #ccc">{{stars|{{{stars|}}}}}</td>
<td title="{{{stars|}}}★" colspan="2" style="font-size: 14pt; text-align: center; background-color: #A00000">{{stars|{{{stars|}}}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Type:</th>
<th style="background-color: #A00000;">Type:</th>
<td>{{{type}}}</td>
<td>{{{type}}}</td>
</tr>
}}
{{#if:{{{manufacturer|}}}|
<tr>
<th style="background-color: #A00000;">Manufacturer:</th>
<td>{{#switch:{{{manufacturer}}}
  | GRM = [[File:grm.png|link=]]
  | Yohmei = [[File:yohmei.png|link=]]
  | Tenora = [[File:tenora.png|link=]]
  | Kubara = [[File:kubara.png|link=]]
}}</td>
</tr>
}}
{{#if:{{{grade|}}}|
<tr>
<th style="background-color: #A00000;">Grade:</th>
<td>{{#switch:{{{grade}}}
  | C = [[File:c.png|link=]]
  | B = [[File:b.png|link=]]
  | A = [[File:a.png|link=]]
  | S = [[File:s.png|link=]]
}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{requirement|}}}|
{{#if:{{{requirement|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Requirement:</th>
<th style="background-color: #A00000;">Requirement:</th>
<td>{{{requirement}}}</td>
<td>{{{requirement}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{grind|}}}|
{{#if:{{{special|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Max [[Grind]]:</th>
<th style="background-color: #A00000;">Special:</th>
<td>{{{grind}}}</td>
<td>{{{special}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{level|}}}|
{{#if:{{{rate|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Max Level:</th>
<th style="background-color: #A00000;">Special Rate:</th>
<td>{{{level}}}</td>
<td>{{{rate}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{stack|}}}|
{{#if:{{{element|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Max Stack:</th>
<th style="background-color: #A00000;">Element:</th>
<td>{{{stack}}}</td>
<td>{{#switch:{{{element}}}
  | Any = Any
  | Neutral = [[File:neutral.gif|link=]]
  | Fire = [[File:fire.gif|link=]]
  | Ice = [[File:ice.gif|link=]]
  | Lightning = [[File:lightning.gif|link=]]
  | Ground = [[File:ground.gif|link=]]
  | Light = [[File:light.gif|link=]]
  | Dark = [[File:dark.gif|link=]]
  | LightDark = [[File:light.gif|link=]]/[[File:dark.gif|link=]]
}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{special|}}}|
{{#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>
{{#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>
{{#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>
</table></td></tr>}}
<table align="center" style="width:100%">
{{#if:{{{PA|}}}|
<tr>
<th style="background-color: #A00000;">PA%:</th>
<td>{{{PA}}}</td>
<th style="background-color: #A00000;">PP%:</th>
<td>{{{PP}}}</td>
</tr>
}}</table>
<table align="center" style="width:100%">
<th style="background-color: #A00000;" colspan="2">Extend Data</th>
{{#if:{{{EATK|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Special:</th>
<th style="background-color: #A00000;">EXT ATK:</th>
<td>{{{special}}}</td>
<td>{{{EATK}}} (+{{#expr:{{{EATK}}}-{{{ATK10}}}}})</td>
</tr>
</tr>
}}
}}
{{#ifeq:{{#expr: {{#if:{{{HP|}}}|1|0}} or {{#if:{{{TP|}}}|1|0}} or {{#if:{{{ATP|}}}|1|0}} or {{#if:{{{DFP|}}}|1|0}} or {{#if:{{{MST|}}}|1|0}} or {{#if:{{{ATA|}}}|1|0}} or {{#if:{{{EVP|}}}|1|0}} or {{#if:{{{LCK|}}}|1|0}}}}|0||<tr><td colspan="2"><table align="center" width="100%">
{{#if:{{{EACC|}}}|
<tr>
<tr>
{{#if:{{{HP|}}}|<td style="text-align: center;"><b>HP</b></td>}}{{#if:{{{TP|}}}|<td style="text-align: center;"><b>TP</b></td>}}{{#if:{{{ATP|}}}|<td style="text-align: center;"><b>ATP</b></td>}}{{#if:{{{DFP|}}}|<td style="text-align: center;"><b>DFP</b></td>}}{{#if:{{{MST|}}}|<td style="text-align: center;"><b>MST</b></td>}}{{#if:{{{ATA|}}}|<td style="text-align: center;"><b>ATA</b></td>}}{{#if:{{{EVP|}}}|<td style="text-align: center;"><b>EVP</b></td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;"><b>LCK</b></td>}}
<th style="background-color: #A00000;">EXT ACC:</th>
<td>{{{EACC}}} (+{{#expr:{{{EACC}}}-{{{ACC}}}}})</td>
</tr>
</tr>
}}
{{#if:{{{IATK|}}}|
<tr>
<tr>
{{#if:{{{HP|}}}|<td style="text-align: center;">{{{HP}}}</td>}}{{#if:{{{TP|}}}|<td style="text-align: center;">{{{TP}}}</td>}}{{#if:{{{ATP|}}}|<td style="text-align: center;">{{{ATP}}}</td>}}{{#if:{{{DFP|}}}|<td style="text-align: center;">{{{DFP}}}</td>}}{{#if:{{{MST|}}}|<td style="text-align: center;">{{{MST}}}</td>}}{{#if:{{{ATA|}}}|<td style="text-align: center;">{{{ATA}}}</td>}}{{#if:{{{EVP|}}}|<td style="text-align: center;">{{{EVP}}}</td>}}{{#if:{{{LCK|}}}|<td style="text-align: center;">{{{LCK}}}</td>}}
<th style="background-color: #A00000;">EXT∞ ATK:</th>
<td>{{{IATK}}} (+{{#expr:{{{IATK}}}-{{{EATK}}}}})</td>
</tr>
</tr>
</table></td></tr>
}}
}}{{#ifeq:{{#expr: {{#if:{{{EFR|}}}|1|0}} or {{#if:{{{EIC|}}}|1|0}} or {{#if:{{{ETH|}}}|1|0}} or {{#if:{{{EDK|}}}|1|0}} or {{#if:{{{ELT|}}}|1|0}}}}|0||<tr><td colspan="2"><table align="center" width="100%">
{{#if:{{{IACC|}}}|
<tr>
<tr>
{{#if:{{{EFR|}}}|<td style="text-align: center;"><b>EFR</b></td>}}{{#if:{{{EIC|}}}|<td style="text-align: center;"><b>EIC</b></td>}}{{#if:{{{ETH|}}}|<td style="text-align: center;"><b>ETH</b></td>}}{{#if:{{{EDK|}}}|<td style="text-align: center;"><b>EDK</b></td>}}{{#if:{{{ELT|}}}|<td style="text-align: center;"><b>ELT</b></td>}}
<th style="background-color: #A00000;">EXT∞ ACC:</th>
<td>{{{IACC}}} (+{{#expr:{{{IACC}}}-{{{EACC}}}}})</td>
</tr>
</tr>
<tr>{{#if:{{{EFR|}}}|<td style="text-align: center;">{{{EFR}}}</td>}}{{#if:{{{EIC|}}}|<td style="text-align: center;">{{{EIC}}}</td>}}{{#if:{{{ETH|}}}|<td style="text-align: center;">{{{ETH}}}</td>}}{{#if:{{{EDK|}}}|<td style="text-align: center;">{{{EDK}}}</td>}}{{#if:{{{ELT|}}}|<td style="text-align: center;">{{{ELT}}}</td>}}
}}</table>
<table style="width:100%"><tr>
<th style="background:#FF7979;">[[File:Burn.png|link=]]</th>
<th style="background:#40C9FF;">[[File:Freeze.png|link=]]</th>
<th style="background:#FF5F2D;">[[File:Stun.png|link=]]</th>
<th style="background:#FF2A90;">[[File:Confuse.png|link=]]</th>
<th style="background:#FFDCA1;">[[File:Sleep.png|link=]]</th>
<th style="background:#D48CFF;">[[File:Infection.png|link=]]</th>
<th style="background:#C040FF;">[[File:Incapacitation.png|link=]]</th>
<th style="background:#BBFFBB; color:#000;">Drain</th>
</tr>
</tr>
</table></td></tr>}}{{#if:{{{hex|}}}|
<tr>
<tr>
<th style="background-color: #ccc;">Hex:</th>
<td style="background:#FF7979; color:black; text-align:center;">{{#if:{{{burn|}}}|'''{{{burn}}}'''|&#8208;}}</td>
<td>{{{hex}}}</td>
<td style="background:#40C9FF; color:black; text-align:center;">{{#if:{{{freeze|}}}|'''{{{freeze}}}'''|&#8208;}}</td>
</tr>}}</table></table>
<td style="background:#FF5F2D; color:black; text-align:center;">{{#if:{{{stun|}}}|'''{{{stun}}}'''|&#8208;}}</td>
{{#if:{{{desc|}}}|
<td style="background:#FF2A90; color:black; text-align:center;">{{#if:{{{confuse|}}}|'''{{{confuse}}}'''|&#8208;}}</td>
: ''{{{desc|}}}''
<td style="background:#FFDCA1; color:black; text-align:center;">{{#if:{{{sleep|}}}|'''{{{sleep}}}'''|&#8208;}}</td>
: - In-game description}}<noinclude>
<td style="background:#D48CFF; color:black; text-align:center;">{{#if:{{{infect|}}}|'''{{{infect}}}'''|&#8208;}}</td>
<td style="background:#C040FF; color:black; text-align:center;">{{#if:{{{incap|}}}|'''{{{incap}}}'''|&#8208;}}</td>
<td style="background:#bbffbb; color:black; text-align:center;">{{#if:{{{drain|}}}|'''{{{drain}}}'''|&#8208;}}</td></tr>
</table>
</td></tr>
</table>
<div class="noexcerpt">{{#if:{{{desc|}}}|
: ''{{{desc|}}}''}}</div>
<noinclude>{{/doc}}</noinclude>

Latest revision as of 14:04, 2 October 2022

Infobox Melee


Extend Data
Drain

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, and Kubara are valid. Will replace with manufacturer icon.
  • grade: Only the entries C, B, A, and S are valid. Will replace with grade icon.
  • requirement: Write as Level X.
  • special: Write as Special LVX. If no special, write None.
  • 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, and LightDark 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.