Template:KaeItem: Difference between revisions

From Kaetram Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="width: 300px; float: right; margin: 0 0 1em 1em;"
<noinclude>
|+ style="font-size: 1.2em; font-weight: bold;" | {{{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|}}}|
<td colspan="2" style="text-align: center;">[[File:{{{image}}}|250px]]</td>
{{!}} 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}}}
{{!}}-
}}
{{#if:{{{attack_crush|}}}|
! colspan="2" class="infobox-header" {{!}} Attack Stats
{{!}}-
! Crush
{{!}} {{{attack_crush|0}}}
{{!}}-
! Slash
{{!}} {{{attack_slash|0}}}
{{!}}-
! Stab
{{!}} {{{attack_stab|0}}}
{{!}}-
! Archery
{{!}} {{{attack_archery|0}}}
{{!}}-
! Magic
{{!}} {{{attack_magic|0}}}
{{!}}-
}}
{{#if:{{{defense_crush|}}}|
! colspan="2" class="infobox-header" {{!}} Defense Stats
{{!}}-
! Crush
{{!}} {{{defense_crush|0}}}
{{!}}-
! Slash
{{!}} {{{defense_slash|0}}}
{{!}}-
! Stab
{{!}} {{{defense_stab|0}}}
{{!}}-
! Archery
{{!}} {{{defense_archery|0}}}
{{!}}-
! Magic
{{!}} {{{defense_magic|0}}}
{{!}}-
}}
{{#if:{{{bonus_accuracy|}}}|
! colspan="2" class="infobox-header" {{!}} Bonuses
{{!}}-
! Accuracy
{{!}} {{{bonus_accuracy|0}}}
{{!}}-
! Strength
{{!}} {{{bonus_strength|0}}}
{{!}}-
! Archery
{{!}} {{{bonus_archery|0}}}
{{!}}-
! Magic
{{!}} {{{bonus_magic|0}}}
{{!}}-
}}
|}


|-
[[Category:Items]]
{{#if:{{{key|}}}{{{skill|}}}{{{type|}}}{{{price|}}}{{{rarity|}}}|
{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}
! colspan="2" style="text-align: center; background: #eee;" | General Info
{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} Items]]}}
|-
</includeonly>
{{#if:{{{key|}}}|  | **Key** || {{{key}}}
|-
}}{{#if:{{{skill|}}}| | **Skill** || {{{skill}}} {{#if:{{{level|}}}|({{{level}}})}}
|-
}}{{#if:{{{secondSkill|}}}| | **Skill 2** || {{{secondSkill}}} {{#if:{{{secondLevel|}}}|({{{secondLevel}}})}}
|-
}}{{#if:{{{type|}}}| | **Type** || {{{type}}}
|-
}}{{#if:{{{price|}}}| | **Price** || {{{price}}}
|-
}}{{#if:{{{rarity|}}}| | **Rarity** || {{{rarity}}}
|-
}} }}
 
{{#if:{{{attack_crush|}}}{{{attack_slash|}}}{{{attack_stab|}}}{{{attack_archery|}}}{{{attack_magic|}}}|
! colspan="2" style="text-align: center; background: #eef;" | Offensive Stats
|-
{{#if:{{{attack_crush|}}}| | Attack (Crush) || {{{attack_crush}}}
|-
}}{{#if:{{{attack_slash|}}}| | Attack (Slash) || {{{attack_slash}}}
|-
}}{{#if:{{{attack_stab|}}}| | Attack (Stab) || {{{attack_stab}}}
|-
}}{{#if:{{{attack_archery|}}}| | Attack (Archery) || {{{attack_archery}}}
|-
}}{{#if:{{{attack_magic|}}}| | Attack (Magic) || {{{attack_magic}}}
|-
}} }}
 
{{#if:{{{defense_crush|}}}{{{defense_slash|}}}{{{defense_stab|}}}{{{defense_archery|}}}{{{defense_magic|}}}|
! colspan="2" style="text-align: center; background: #efe;" | Defensive Stats
|-
{{#if:{{{defense_crush|}}}| | Defense (Crush) || {{{defense_crush}}}
|-
}}{{#if:{{{defense_slash|}}}| | Defense (Slash) || {{{defense_slash}}}
|-
}}{{#if:{{{defense_stab|}}}| | Defense (Stab) || {{{defense_stab}}}
|-
}}{{#if:{{{defense_archery|}}}| | Defense (Archery) || {{{defense_archery}}}
|-
}}{{#if:{{{defense_magic|}}}| | Defense (Magic) || {{{defense_magic}}}
|-
}} }}
 
{{#if:{{{bonus_accuracy|}}}{{{bonus_strength|}}}{{{bonus_archery|}}}{{{bonus_magic|}}}|
! colspan="2" style="text-align: center; background: #fee;" | Bonus Stats
|-
{{#if:{{{bonus_accuracy|}}}| | Accuracy Bonus || {{{bonus_accuracy}}}
|-
}}{{#if:{{{bonus_strength|}}}| | Strength Bonus || {{{bonus_strength}}}
|-
}}{{#if:{{{bonus_archery|}}}| | Archery Bonus || {{{bonus_archery}}}
|-
}}{{#if:{{{bonus_magic|}}}| | Magic Bonus || {{{bonus_magic}}}
|-
}} }}
|}

Latest revision as of 16:35, 14 January 2026

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


KaeItem