Template:Infobox Equipment: Difference between revisions
(add simple status support) |
m (JPname Field Added) Tag: Manual revert |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><templatestyles src="Infobox Equipment/styles.css" /> | ||
{| class="wikitable" | {|class="wikitable infobox infobox-equipment" | ||
! colspan="2" class="infobox-equipment-header" | {{Rank|{{{rank}}}}} {{Weapon Type|{{{ | ! colspan="2" class="infobox-equipment-header" | {{Rank/EnumImage|{{{rank}}}}} {{#switch:{{Item Category|{{{type}}}|text only=1}} | ||
|Weapon = {{Weapon Type/EnumImage|{{{subtype}}}|options=link={{Weapon Type/EnumImage|{{{subtype}}}|text only=1}}s}} | |||
|Line Shield = {{EnumImage|image=Line shield icon.gif|name=Line Shield|options=16px{{!}}link=Line Shields}} | |||
|Unit = {{Unit Type|{{{subtype}}}|options=link={{Unit Type|{{{subtype}}}|text only=1}}s}} | |||
|}} '''{{{name|{{PAGENAME}}}}}''' | |||
{{{jpname|}}} | |||
|- | |- | ||
| colspan="2" class="infobox-equipment-thumb" | [[ | |colspan="2" class="infobox-equipment-thumb" |{{#if:{{{image|}}} | {{#ifexist: {{{image|}}} | [[{{{image}}}|300px|link=]] | ''Item image is missing.''}} |''Item has no visual component.''}} | ||
|- | |- | ||
| colspan="2" | {{Rarity|{{{rarity}}}}} | |colspan="2" class="infobox-equipment-rarity"| {{Rarity|{{{rarity}}}}} | ||
|- | |- | ||
! colspan="2" | Stats | ! colspan="2" |Stats | ||
|- | |- | ||
|Manufacturer | |Manufacturer | ||
|{{Manufacturer|{{{mfr}}}|options=20px{{!}}link=}} | |{{Manufacturer/EnumImage|{{{mfr}}}|options=20px{{!}}link=}} | ||
|- | |- | ||
{{#ifeq: {{Weapon Type|{{{ | {{#switch:{{Item Category|{{{type}}}|text only=1}} | ||
|Weapon= | |||
{{!}}{{#switch: {{Weapon Type/EnumImage|{{{subtype}}}|text only=1}} | |||
|Rifle|Shotgun|Longbow|Grenade|Laser Cannon|Twin Handgun|Handgun|Crossbow|Card|Machinegun|RCSM=ATA | |||
|Rod|Wand|TCSM=TP | |||
|#default=ATP}} Required | |||
{{!}}{{!}}{{{stat requirement}}} | |||
{{!}}- | |||
|Line Shield= | |||
{{!}}DFP Required | |||
{{!}}{{{stat requirement}}} | |||
{{!}}- | |||
}}<!-- Floating Stats --> | |||
{{#if: {{{def|}}}| | |||
{{!}} Def. | |||
{{!}} {{{def}}} | |||
{{!}}-}} | |||
{{#if: {{{eva|}}}| | |||
{{!}} Eva. | |||
{{!}} {{{eva}}} | |||
{{!}}-}} | |||
{{#if: {{{ment|}}}| | |||
{{!}} Ment. | |||
{{!}} {{{ment}}} | |||
{{!}}-}} | |||
{{#if: {{{end|}}}| | |||
{{!}} End. | |||
{{!}} {{{end}}} | |||
{{!}}-}} | |||
{{#if: {{{att|}}}| | |||
{{!}} Att. | |||
{{!}} {{{att}}} | |||
{{!}}-}} | |||
{{#if: {{{acc|}}}| | |||
{{!}} Acc. | |||
{{!}} {{{acc}}} | |||
{{!}}-}} | |||
{{#if: {{{tech|}}}| | |||
{{!}} Tech. | |||
{{!}} {{{tech}}} | |||
{{!}}-}} | |||
<!-- Weapon-exclusive Properties --> | |||
{{#ifeq: {{Item Category|{{{type}}}}} | |||
|Weapon| {{#ifeq: {{Weapon Type/EnumImage|{{{subtype}}}|text only=1}}|RCSM|| | |||
{{!}} Base PP | {{!}} Base PP | ||
{{!}} {{{min pp}}} | {{!}} {{{min pp}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{!}}Base {{#switch: {{Weapon Type/EnumImage|{{{subtype}}}|text only=1}} | |||
|RCSM|Rod|Wand|TCSM= TP | |RCSM|Rod|Wand|TCSM= TP | ||
|#default= ATP}} | |#default= ATP}} | ||
{{!}}{{{min attack}}} | |||
{{!}}- | |||
{{!}}Max {{#switch: {{Weapon Type/EnumImage|{{{subtype}}}|text only=1}} | |||
|RCSM|Rod|Wand|TCSM= TP | |RCSM|Rod|Wand|TCSM= TP | ||
|#default= ATP}} | |#default= ATP}} | ||
{{!}}{{{max attack}}} | |||
{{!}}- | |||
{{!}}Variance | |||
{{!}}{{{var}}} | |||
{{!}}- | |||
{{#if:{{{acc|}}}| | <!-- {{#if:{{{acc|}}}| | ||
{{!}} Base ATA | {{!}} Base ATA | ||
{{!}} {{{acc}}} | {{!}} {{{acc}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{!}}- --> | |||
{{#if: {{{weapon range|}}}| | |||
{{!}} Attack Range | |||
{{!}} {{{weapon range}}} | |||
{{!}}-}} | |||
{{#ifeq:{{{status|}}} > 0| | |||
{{# | |||
{{!}} [[Status Effect]] | {{!}} [[Status Effect]] | ||
{{!}} {{Status Effect|{{{status}}}}} LV{{{status level}}} | {{!}} {{Status Effect|{{{status}}}}} LV{{{status level}}} | ||
Line 47: | Line 93: | ||
{{!}} Chance To Roll Status | {{!}} Chance To Roll Status | ||
{{!}} {{{status chance}}} | {{!}} {{{status chance}}} | ||
{{!}}-}} | {{!}}-}}}}}} | ||
}} | <!-- Special Effects --> | ||
|}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |||
< | |||
{{ | |||
}} | |||
}} | |||
</noinclude> |
Latest revision as of 17:41, 17 December 2024
Purpose
Infobox for equipment.
Parameter List
{{Infobox Equipment |image |type |subtype |id |mfr |name |jpname |rarity |rank |stat requirement |acc |account bound |min attack |max attack |min pp |status |status level |status chance |var |weapon range }}
For image options, a guide on syntax can be found here: [1]
Examples
Ken'ei+
{{Infobox Equipment |image=File:Ken'ei+.png |type = 01 |subtype = 06 |id = 68 |mfr = 03 |name = Ken'ei+ |jpname = 剣影 |rarity = 8 |rank = 3 |stat requirement = 1000 |acc = 500 |account bound = 0 |min attack = 600 |max attack = 700 |min pp = 600 |status = 14 |status level = 4 |status chance = 100 |var = 50 |weapon range = 439 }}
![]() ![]() 剣影 | |
---|---|
![]() | |
![]() | |
Stats | |
Manufacturer | ![]() |
ATP Required | 1000 |
Acc. | 500 |
Base PP | 600 |
Base ATP | 600 |
Max ATP | 700 |
Variance | 50 |
Attack Range | 439 |
Bunny-senba
work in progress
![]() ![]() | |
---|---|
Item has no visual component. | |
![]() | |
Stats | |
Manufacturer | ![]() |
DFP Required | 100 |
Def. | 450 |
Eva. | 300 |
Ment. | 450 |
End. | 5 |
Att. | 150 |
Acc. | 150 |
Tech. | 150 |
Bunny Ears
work in progress
![]() ![]() | |
---|---|
Item has no visual component. | |
![]() | |
Stats | |
Manufacturer | ![]() |
Ment. | 300 |
Tech. | 450 |
Gerard / Knight
work in progress
![]() ![]() | |
---|---|
Item has no visual component. | |
![]() | |
Stats | |
Manufacturer | ![]() |
Att. | 450 |
Acc. | 0 |
Makarukaheshi+
work in progress
![]() ![]() | |
---|---|
Item has no visual component. | |
![]() | |
Stats | |
Manufacturer | ![]() |
Def. | 200 |
Eva. | 250 |
Satsuma's Curse
work in progress
![]() ![]() | |
---|---|
Item has no visual component. | |
![]() | |
Stats | |
Manufacturer | ![]() |
End. | 7 |