Template:KaeItem: Difference between revisions

From Kaetram Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="fandom-table" style="width: 250px; border: 1px solid #a2a9b1; background-color: #f8f9fa; color: black; float: right; margin: 0 0 1em 1em; padding: 0.2em; font-size: 88%; line-height: 1.5em; border-spacing: 2px;"
<noinclude>
|+ style="font-size: 125%; font-weight: bold; padding: 0.2em; background-color: #def;" | {{{name|{{PAGENAME}}}}}
This is the "KaeItem" template.
It should be called in the following format:
{{KaeItem
| key =
| name =
| image =
| skill =
| level =
| secondSkill =
| secondLevel =
| type =
| price =
| divinityExperience =
| rarity =
| attack_crush =
| attack_slash =
| attack_stab =
| attack_archery =
| attack_magic =
| defense_crush =
| defense_slash =
| defense_stab =
| defense_archery =
| defense_magic =
| bonus_accuracy =
| bonus_strength =
| bonus_archery =
| bonus_magic =
}}
</noinclude>
 
<includeonly>
{| class="fandom-table" style="float: right; width: 300px; margin-left: 1em;"
! colspan="2" class="infobox-header" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
| colspan="2" style="text-align: center; background: white;" | [[File:{{{image}}}|200px]]
{{!}} colspan="2" style="text-align: center;" {{!}} {{{image}}}
|-
{{!}}-
}}
{{#if:{{{type|}}}|
! Type
{{!}} {{{type}}}
{{!}}-
}}
{{#if:{{{rarity|}}}|
! Rarity
{{!}} {{{rarity}}}
{{!}}-
}}
{{#if:{{{price|}}}|
! Price
{{!}} {{{price}}}
{{!}}-
}}
{{#if:{{{skill|}}}|
! Requirement
{{!}} {{{skill}}} {{#if:{{{level|}}}|({{{level}}})}}
{{!}}-
}}
{{#if:{{{secondSkill|}}}|
! Second Req.
{{!}} {{{secondSkill}}} {{#if:{{{secondLevel|}}}|({{{secondLevel}}})}}
{{!}}-
}}
{{#if:{{{divinityExperience|}}}|
! Divinity XP
{{!}} {{{divinityExperience}}}
{{!}}-
}}
}}
! colspan="2" style="text-align: center; background: #eee;" | Item Details
{{#if:{{{attack_crush|}}}|
|-
! colspan="2" class="infobox-header" {{!}} Attack Stats
{{#if:{{{key|}}}|
{{!}}-
! scope="row" | Key
! Crush
| {{{key}}}
{{!}} {{{attack_crush|0}}}
|-
{{!}}-
}}{{#if:{{{skill|}}}|
! Slash
! scope="row" | Skill
{{!}} {{{attack_slash|0}}}
| {{{skill}}} {{#if:{{{level|}}}|({{{level}}})}}
{{!}}-
|-
! Stab
}}{{#if:{{{type|}}}|
{{!}} {{{attack_stab|0}}}
! scope="row" | Type
{{!}}-
| {{{type}}}
! Archery
|-
{{!}} {{{attack_archery|0}}}
}}{{#if:{{{price|}}}|
{{!}}-
! scope="row" | Price
! Magic
| {{{price}}}
{{!}} {{{attack_magic|0}}}
|-
{{!}}-
}}{{#if:{{{divinityExperience|}}}|
! scope="row" | Divinity XP
| {{{divinityExperience}}}
|-
}}{{#if:{{{rarity|}}}|
! scope="row" | Rarity
| {{{rarity}}}
|-
}}
}}
{{#if:{{{attack_crush|}}}{{{attack_slash|}}}{{{attack_stab|}}}{{{attack_archery|}}}{{{attack_magic|}}}|
{{#if:{{{defense_crush|}}}|
! colspan="2" style="text-align: center; background: #eef;" | Offensive Stats
! colspan="2" class="infobox-header" {{!}} Defense Stats
|-
{{!}}-
{{#if:{{{attack_crush|}}}| ! scope="row" {{!}} Crush | {{{attack_crush}}}
! Crush
{{!}} {{{defense_crush|0}}}
{{!}}-
! Slash
{{!}} {{{defense_slash|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{attack_slash|}}}| ! scope="row" {{!}} Slash | {{{attack_slash}}}
! Stab
{{!}} {{{defense_stab|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{attack_stab|}}}| ! scope="row" {{!}} Stab | {{{attack_stab}}}
! Archery
{{!}} {{{defense_archery|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{attack_archery|}}}| ! scope="row" {{!}} Archery | {{{attack_archery}}}
! Magic
{{!}} {{{defense_magic|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{attack_magic|}}}| ! scope="row" {{!}} Magic | {{{attack_magic}}}
}}
{{#if:{{{bonus_accuracy|}}}|
! colspan="2" class="infobox-header" {{!}} Bonuses
{{!}}-
{{!}}-
}} }}
! Accuracy
{{#if:{{{bonus_accuracy|}}}{{{bonus_strength|}}}{{{bonus_archery|}}}{{{bonus_magic|}}}|
{{!}} {{{bonus_accuracy|0}}}
! colspan="2" style="text-align: center; background: #fee;" | Bonuses
|-
{{#if:{{{bonus_accuracy|}}}| ! scope="row" {{!}} Accuracy | {{{bonus_accuracy}}}
{{!}}-
{{!}}-
}}{{#if:{{{bonus_strength|}}}| ! scope="row" {{!}} Strength | {{{bonus_strength}}}
! Strength
{{!}} {{{bonus_strength|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{bonus_archery|}}}| ! scope="row" {{!}} Archery | {{{bonus_archery}}}
! Archery
{{!}} {{{bonus_archery|0}}}
{{!}}-
{{!}}-
}}{{#if:{{{bonus_magic|}}}| ! scope="row" {{!}} Magic | {{{bonus_magic}}}
! Magic
{{!}} {{{bonus_magic|0}}}
{{!}}-
{{!}}-
}} }}
}}
|}
|}
[[Category:Items]]
{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}
{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} Items]]}}
</includeonly>

Latest revision as of 16:35, 14 January 2026

This is the "KaeItem" template. It should be called in the following format:


KaeItem