Template:ItemCard: Difference between revisions

From Soul's Remnant Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(57 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<templatestyles src="Template:ItemCard/styles.css" />
{| class="wikitable" style="margin: 0 auto; width:100%" |
<div class="simple-style">
|style="width:20%; padding:30px; text-align: center; vertical-align: middle;"|
{| class="wikitable itemcard-table"
| class="itemcard-image" |
[[File:{{{icon|Skill_Image.png}}}|150px]]
[[File:{{{icon|Skill_Image.png}}}|150px]]
|style="width:40%;padding-left:20px;"|
| class="itemcard-content"|
'''Name''': {{{name|Unknown}}}
'''Name''': {{{name|Unknown}}}<br><br>
<br><br>
'''Type''': {{{type|Unknown}}}<br>
'''Type''': {{{type|Unknown}}}
{{#ifexpr:
<br>
  {{#if:{{{str|}}}|1|0}} +
<p>
  {{#if:{{{dex|}}}|1|0}} +
{{{#if:{{{effect|}}} <span>'''Effect''':</span>|}}}
  {{#if:{{{int|}}}|1|0}} +
{{{#if:{{{testvalue|}}}|The test value {{{testvalue}}} is present|The test value {{{testvalue}}} is not present}}}
  {{#if:{{{spr|}}}|1|0}} +
{{{#if:{{{str|}}}<span style="
  {{#if:{{{con|}}}|1|0}} +
border: 3px round #222222;
  {{#if:{{{luk|}}}|1|0}} +
border-radius: 10px;
  {{#if:{{{def|}}}|1|0}} +
background: #e28080;
  {{#if:{{{spd|}}}|1|0}} +
padding: 3px;
  {{#if:{{{jmp|}}}|1|0}} +
    white-space: nowrap;
  {{#if:{{{heal_hp|}}}|1|0}} +
">+{{{str}}} STR</span>|}}}
  {{#if:{{{heal_mp|}}}|1|0}}
  > 0
|<span>'''Effect:'''</span>
|<span style="display:none;"></span>}}


{{{#if:{{{dex|}}}<span style="
{{#if:{{{str|}}}|<span class="itemcard-chip.str>+{{{str}}} STR</span>|<span style="display:none;"></span>}}
border: 3px round #222222;
{{#if:{{{dex|}}}|<span style="border-radius: 10px; background: #cecd80; padding: 3px; white-space: nowrap;">+{{{dex}}} DEX</span>|<span style="display:none;"></span>}}
border-radius: 10px;
{{#if:{{{int|}}}|<span style="border-radius: 10px; background: #80d9e2; padding: 3px; white-space: nowrap;">+{{{int}}} INT</span>|<span style="display:none;"></span>}}
background: #cecd80;
{{#if:{{{spr|}}}|<span style="border-radius: 10px; background: #959fdb; padding: 3px; white-space: nowrap;">+{{{spr}}} SPR</span>|<span style="display:none;"></span>}}
padding: 3px;
{{#if:{{{con|}}}|<span style="border-radius: 10px; background: #db95d1; padding: 3px; white-space: nowrap;">+{{{con}}} CON</span>|<span style="display:none;"></span>}}
    white-space: nowrap;
{{#if:{{{luk|}}}|<span style="border-radius: 10px; background: #c895db; padding: 3px; white-space: nowrap;">+{{{luk}}} LUK</span>|<span style="display:none;"></span>}}
">+{{{dex}}} DEX</span>|}}}
{{#if:{{{def|}}}|<span style="border-radius: 10px; background: #97a1a3; padding: 3px; color: white; white-space: nowrap;">+{{{def}}} DEF</span>|<span style="display:none;"></span>}}
{{#if:{{{spd|}}}|<span style="border-radius: 10px; background: #555555; padding: 3px; color: white; white-space: nowrap;">+{{{spd}}} SPD</span>|<span style="display:none;"></span>}}
{{#if:{{{jmp|}}}|<span style="border-radius: 10px; background: #555555; padding: 3px; color: white; white-space: nowrap;">+{{{jmp}}} JMP</span>|<span style="display:none;"></span>}}
{{#if:{{{heal_hp|}}}|<span style="border-radius: 10px; background: #ff5e5e; padding: 3px; white-space: nowrap;">Heals {{{heal_hp}}} HP</span>|<span style="display:none;"></span>}}
{{#if:{{{heal_mp|}}}|<span style="border-radius: 10px; background: #3399ff; padding: 3px; color: white; white-space: nowrap;">Recovers {{{heal_mp}}} MP</span>|<span style="display:none;"></span>}}


{{{#if:{{{int|}}}<span style="
<!-- Other Attributes -->
border: 3px round #222222;
border-radius: 10px;
background: #80d9e2;
padding: 3px;
    white-space: nowrap;
">+{{{int}}} INT</span>|}}}
{{{#if:{{{spr|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #959fdb;
padding: 3px;
    white-space: nowrap;
">+{{{spr}}} SPR</span>|}}}
{{{#if:{{{con|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #db95d1;
padding: 3px;
    white-space: nowrap;
">+{{{con}}} CON</span>|}}}
{{{#if:{{{luk|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #c895db;
padding: 3px;
    white-space: nowrap;
">+{{{luk}}} LUK</span>|}}}
{{{#if:{{{def|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #97a1a3;
padding: 3px;
    color:white;
    white-space: nowrap;
">+{{{def}}} DEF</span>|}}}
{{{#if:{{{spd|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #555555;
padding: 3px;
    color:white;
    white-space: nowrap;
">+{{{spd}}} SPD</span>|}}}
{{{#if:{{{jmp|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #555555;
padding: 3px;
    color:white;
    white-space: nowrap;
">+{{{jmp}}} JMP</span>|}}}
{{{#if:{{{heal_hp|}}}<span style="
    border: 3px round #222222;
    border-radius: 10px;
    background: #ff5e5e;
    padding: 3px;
    white-space: nowrap;
">Heals {{{heal_hp}}} HP</span>|}}}
{{{#if:{{{heal_mp|}}}<span style="
border: 3px round #222222;
border-radius: 10px;
background: #3399ff;
padding: 3px;
    color:white;
    white-space: nowrap;
">Recovers {{{heal_mp}}} MP</span>|}}}
<p>
<p>
{{{#if:{{{duration|}}}'''Duration''': {{{duration}}}<br>|}}}
{{#if:{{{duration|}}}|'''Duration''': {{{duration}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{slots|}}}'''Upgrade Slots''': {{{slots}}}<br>|}}}
{{#if:{{{slots|}}}|'''Upgrade Slots''': {{{slots}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{rarity|}}}'''Rarity''': {{{rarity}}}<br>|}}}
{{#if:{{{rarity|}}}|'''Rarity''': {{{rarity}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{crafting|}}}'''Crafting''': {{{crafting}}}<br>|}}}
{{#if:{{{crafting|}}}|'''Crafting''': {{{crafting}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{requirement|}}}'''Requirement''': {{{requirement}}}<br>|}}}
{{#if:{{{requirement|}}}|'''Requirement''': {{{requirement}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{success_rate|}}}'''100% Success Rate''': {{{success_rate}}}<br>|}}}
{{#if:{{{success_rate|}}}|'''100% Success Rate''': {{{success_rate}}}<br>|<span style="display:none;"></span>}}
<br>
{{#if:{{{description|}}}|<br>'''Description:'''<br><b><i>"{{{description}}}"</i></b><br>|<span style="display:none;"></span>}}
'''Description:'''<br>  
| style="width:100%;padding-left:20px;" |
<b><i>"{{{description|}}}"</i></b><br>
<!-- Drop & Note Section -->
 
{{#if:{{{obtain|}}}|'''How to Obtain'''<br>{{{obtain}}}<br>|<span style="display:none;"></span>}}
|style="width:100%;padding-left:20px;"|
{{#if:{{{item_dropped_by|}}}|'''Item dropped by:'''<br>{{{item_dropped_by}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{obtain|}}}'''How to Obtain'''<br>{{{obtain}}}<br>|}}}
{{#if:{{{recipe_dropped_by|}}}|'''Recipe dropped by:'''<br>{{{recipe_dropped_by}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{item_dropped_by|}}}'''Item dropped by:'''<br>{{{item_dropped_by}}}<br>|}}}
{{#if:{{{note|}}}|'''Note:'''<br>{{{note}}}<br>|<span style="display:none;"></span>}}
{{{#if:{{{recipe_dropped_by|}}}'''Recipe dropped by:'''<br>{{{recipe_dropped_by}}}<br>|}}}
{{{#if:{{{note|}}}'''Note:'''<br>{{{note}}}<br>|}}}
 
|}
|}
<!-- Mandatory Category -->
[[Category:Items]]
{{{#if: {{{categories|}}}
  {{{#split: {{{categories}}} |,|
    {{{#each: {{!}} |[[Category:{{!}}]]}}}
  }}}
|}}}
<!-- How to use
|name= Item name (e.g., Seafood Supreme)
|type= Item type (e.g., Head, Accessory)
|effect= Leave empty if you want to implement
|str= Strength stat (e.g., 2)
|dex= Dexterity stat (e.g., 2)
|con= Constitution stat (e.g., 3)
|int= Intelligence stat (e.g., 1)
|def= Defense stat (e.g., 3)
|spd= Speed stat (e.g., 2)
|jmp= Jump stat (e.g., 1)
|heal_hp= Health points restored (e.g., 30)
|heal_mp= Mana points restored (e.g., 15)
|duration= Duration of effect (e.g., 600 seconds)
|slots=  Number of upgrade slots (e.g., 4)
|rarity=  Rarity of the item (e.g., Rare)
|crafting=  Crafting materials (e.g., Iron Ore + Steel)
|requirement=  Level or requirement to use (e.g., Crafting Level 10)
|success_rate= Success rate for crafting (e.g., 95%)
|description=  Description of the item (e.g., An ancient helmet forged from iron and steel.)
|obtain=  How the item can be obtained (e.g., Crafting, Fishing, Dungeon Rewards)
|item_dropped_by= Enemies that drop the item (e.g., Glowsnail, Rokkik, Slime)
|item_dropped_by_rate= Drop rates for the enemies (e.g., 0.17%, 0.10%, 0.05%)
|recipe_dropped_by= Enemies that drop the recipe (e.g., Glowsnail, Rokkik, Slime)
|recipe_dropped_by_rate= Drop rates for the recipe (e.g., 0.25%, 0.12%)
|note= Any additional note or information about the item
|categories= Items, Equipment, Consumables, Materials
FOR COPY PASTE


{{ItemCard
<!-- Display Equipment Roll Table (data conversion to sub template) -->
|name=
{{#if:{{{type|}}}|
|type=
  <div>
|effect=  
  {{#switch:{{lc:{{{type}}}}}
|str=
    | weapon = {{ItemCard/WeaponStat
|dex=
        |global_dull={{{global_dull|}}}
|con=
        |global_normal={{{global_normal|}}}
|int=
        |global_radiant={{{global_radiant|}}}
|def=
        |global_gem={{{global_gem|}}}
|spd=
        |melee_dull={{{melee_dull|}}}
|jmp=
        |melee_normal={{{melee_normal|}}}
|heal_hp=
        |melee_radiant={{{melee_radiant|}}}
|heal_mp=
        |melee_gem={{{melee_gem|}}}
|duration=
        |ranged_dull={{{ranged_dull|}}}
|slots=
        |ranged_normal={{{ranged_normal|}}}
|rarity=
        |ranged_radiant={{{ranged_radiant|}}}
|crafting=
        |ranged_gem={{{ranged_gem|}}}
|requirement=
        |magic_dull={{{magic_dull|}}}
|success_rate=
        |magic_normal={{{magic_normal|}}}
|description=
        |magic_radiant={{{magic_radiant|}}}
|obtain=
        |magic_gem={{{magic_gem|}}}
|item_dropped_by=
        |crit_damage_dull={{{crit_damage_dull|}}}
|item_dropped_by_rate=
        |crit_damage_normal={{{crit_damage_normal|}}}
|recipe_dropped_by=
        |crit_damage_radiant={{{crit_damage_radiant|}}}
|recipe_dropped_by_rate=
        |crit_damage_gem={{{crit_damage_gem|}}}
|note=
        |crit_rate_dull={{{crit_rate_dull|}}}
|categories=
        |crit_rate_normal={{{crit_rate_normal|}}}
        |crit_rate_radiant={{{crit_rate_radiant|}}}
        |crit_rate_gem={{{crit_rate_gem|}}}
        |elemental_chance_dull={{{elemental_chance_dull|}}}
        |elemental_chance_normal={{{elemental_chance_normal|}}}
        |elemental_chance_radiant={{{elemental_chance_radiant|}}}
        |elemental_chance_gem={{{elemental_chance_gem|}}}
        |elemental_potency_dull={{{elemental_potency_dull|}}}
        |elemental_potency_normal={{{elemental_potency_normal|}}}
        |elemental_potency_radiant={{{elemental_potency_radiant|}}}
      |elemental_potency_gem={{{elemental_potency_gem|}}}
    }}
    | equipment = {{ItemCard/EquipmentStat
        |global_damage={{{global_damage|}}}
        |global_damage_gem={{{global_damage_gem|}}}
        |global_attack_spd={{{global_attack_spd|}}}
        |global_attack_spd_gem={{{global_attack_spd_gem|}}}
        |defence={{{defence|}}}
        |defence_gem={{{defence_gem|}}}
        |knockback_resistance={{{knockback_resistance|}}}
        |knockback_resistance_gem={{{knockback_resistance_gem|}}}
        |max_hp={{{max_hp|}}}
        |max_hp_gem={{{max_hp_gem|}}}
        |max_mp={{{max_mp|}}}
        |max_mp_gem={{{max_mp_gem|}}}
        |str_stat={{{str_stat|}}}
        |str_stat_gem={{{str_stat_gem|}}}
        |con_stat={{{con_stat|}}}
        |con_stat_gem={{{con_stat_gem|}}}
        |dex_stat={{{dex_stat|}}}
        |dex_stat_gem={{{dex_stat_gem|}}}
        |luk_stat={{{luk_stat|}}}
        |luk_stat_gem={{{luk_stat_gem|}}}
        |int_stat={{{int_stat|}}}
        |int_stat_gem={{{int_stat_gem|}}}
        |spr_stat={{{spr_stat|}}}
        |spr_stat_gem={{{spr_stat_gem|}}}
        |spd={{{spd|}}}
        |spd_gem={{{spd_gem|}}}
        |jmp={{{jmp|}}}
        |jmp_gem={{{jmp_gem|}}}
        |armor_pen={{{armor_pen|}}}
        |armor_pen_gem={{{armor_pen_gem|}}}
        |skill_range={{{skill_range|}}}
        |skill_range_gem={{{skill_range_gem|}}}
        |crit_rate={{{crit_rate|}}}
        |crit_rate_gem_eq={{{crit_rate_gem_eq|}}}
        |crit_damage={{{crit_damage|}}}
        |crit_damage_gem_eq={{{crit_damage_gem_eq|}}}
        |elemental_chance={{{elemental_chance|}}}
        |elemental_chance_gem_eq={{{elemental_chance_gem_eq|}}}
        |elemental_potency={{{elemental_potency|}}}
        |elemental_potency_gem_eq={{{elemental_potency_gem_eq|}}}
    }}
  }}
  </div>
}}
}}
List of categories
</div>
<!-- Mandatory Base Category -->
[[Category:Items]]
[[Category:Items]]
[[Category:Block]]
 
[[Category:Consumable]]
<!-- Optional Categories Field -->
[[Category:Material]]
{{#if:{{{categories|}}}|{{{categories}}}}}
[[Category:Equipment]]
[[Category:Hat]]
[[Category:Body]]
[[Category:Accessory]]
[[Category:Effect]]
[[Category:Ammo]]
[[Category:Grapple]]
[[Category:Backpack]]
[[Category:Crafting]]
-->

Latest revision as of 13:45, 29 May 2025

Name: Unknown

Type: Unknown