Difference between revisions of "Template:Mods Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Overhaul and providing documentation)
m
 
Line 55: Line 55:
  
 
===Examples===
 
===Examples===
{| style="width:95%;"
+
{| style="width:95%;" cellpadding="20"
 
! style="font-size:150%; width: 50%;" | Wiki Text
 
! style="font-size:150%; width: 50%;" | Wiki Text
 
! style="font-size:150%; width: 50%;" | Result
 
! style="font-size:150%; width: 50%;" | Result
 
|-
 
|-
| style="display: flex; justify-content: center;" |<!---
+
|<code class="tempdoc-code-block"><nowiki>
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
+
    {{Mods Info
    ---><nowiki>
+
    | name = Healthy Power Chip
            {{Mods Info
+
    | item_type = Armor
            | name = Healthy Power Chip
+
    | description = '''+140-7,770''' Hero Damage when at 90%+ Health.
            | item_type = Armor
+
    | found_in = Chaos 1+
            | description = '''+140-7,770''' Hero Damage when at 90%+ Health.
+
    | valid_for = All heroes
            | found_in = Chaos 1+
+
    }}
            | valid_for = All heroes
+
</nowiki></code>
            }}
 
        </nowiki><!---
 
---></code>
 
 
|
 
|
            {{Mods Info
+
    {{Mods Info
            | name = Healthy Power Chip
+
    | name = Healthy Power Chip
            | item_type = Armor
+
    | item_type = Armor
            | description = '''+140-7,770''' Hero Damage when at 90%+ Health.
+
    | description = '''+140-7,770''' Hero Damage when at 90%+ Health.
            | found_in = Chaos 1+
+
    | found_in = Chaos 1+
            | valid_for = All heroes
+
    | valid_for = All heroes
            }}
+
    }}
 
|-
 
|-
| style="display: flex; justify-content: center;" |<!---
+
|<code class="tempdoc-code-block"><nowiki>
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
+
    {{Mods Info
    ---><nowiki>
+
    | name = Flame Eater
            {{Mods Info
+
    | item_type = Weapon
            | name = Flame Eater
+
    | description = '''+39.65%~60%''' damage to ignited enemies.
            | item_type = Weapon
+
    | found_in = Any difficulty (Countess must be in hero deck)
            | description = '''+39.65%~60%''' damage to ignited enemies.
+
    | valid_for = '''[[File:Countess_icon_trans.png|25px]] [[Countess]]'''
            | found_in = Any difficulty (Countess must be in hero deck)
+
    | item_name = Standard Legendary Swords
            | valid_for = '''[[File:Countess_icon_trans.png|25px]] [[Countess]]'''
+
    }}
            | item_name = Standard Legendary Swords
+
</nowiki></code>
            }}
 
        </nowiki><!---
 
---></code>
 
 
|
 
|
            {{Mods Info
+
    {{Mods Info
            | name = Flame Eater
+
    | name = Flame Eater
            | item_type = Weapon
+
    | item_type = Weapon
            | description = '''+39.65%~60%''' damage to ignited enemies.
+
    | description = '''+39.65%~60%''' damage to ignited enemies.
            | found_in = Any difficulty (Countess must be in hero deck)
+
    | found_in = Any difficulty (Countess must be in hero deck)
            | valid_for = '''[[File:Countess_icon_trans.png|25px]] [[Countess]]'''
+
    | valid_for = '''[[File:Countess_icon_trans.png|25px]] [[Countess]]'''
            | item_name = Standard Legendary Swords
+
    | item_name = Standard Legendary Swords
            }}
+
    }}
 
|-
 
|-
| style="display: flex; justify-content: center;" |<!---
+
|<code class="tempdoc-code-block"><nowiki>
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
+
    {{Mods Info
    ---><nowiki>
+
    | name = Blessing of Piercing
            {{Mods Info
+
    | item_type = Ring
            | name = Blessing of Piercing
+
    | description = Hero projectiles pierce shields and do '''45.5%~100%''' of...
            | item_type = Ring
+
    | found_in = Prime 7 Region Incursions (Chaos 9+)
            | description = Hero projectiles pierce shields and do '''45.5%~100%''' of...
+
    | valid_for = All Heroes
            | found_in = Prime 7 Region Incursions (Chaos 9+)
+
    | item_name = Ring of Piercing
            | valid_for = All Heroes
+
    | item_icon = File:Ring_of_Piercing_Icon.png
            | item_name = Ring of Piercing
+
    }}
            | item_icon = File:Ring_of_Piercing_Icon.png
+
</nowiki></code>
            }}
 
        </nowiki><!---
 
---></code>
 
 
|
 
|
            {{Mods Info
+
    {{Mods Info
            | name = Blessing of Piercing
+
    | name = Blessing of Piercing
            | item_type = Ring
+
    | item_type = Ring
            | description = Hero projectiles pierce shields and do '''45.5%~100%''' of their damage.
+
    | description = Hero projectiles pierce shields and do '''45.5%~100%''' of their damage.
            | found_in = Prime 7 Region Incursions (Chaos 9+)
+
    | found_in = Prime 7 Region Incursions (Chaos 9+)
            | valid_for = All Heroes
+
    | valid_for = All Heroes
            | item_name = Ring of Piercing
+
    | item_name = Ring of Piercing
            | item_icon = File:Ring_of_Piercing_Icon.png
+
    | item_icon = File:Ring_of_Piercing_Icon.png
            }}
+
    }}
 
|}
 
|}
  
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
</noinclude>
 
</noinclude>

Latest revision as of 14:28, 5 April 2025

Technical Details

  • If both an item name and an item icon is provided, the item name and icon will appear at the far right side of the mod's bounding box.
  • If only item name is provided, a bullet point will be added under the mod name instead.

Parameters

Parameter Required Description Default
name TickGreen.png The name of the mod Mod Name?
item_type TickGreen.png The type of item the mod can be used on (Helmet, Armor, Relic, Weapon, Ring)  ?
description TickGreen.png Description of what the mod does. Description?
found_in TickGreen.png The difficulties the mod can be found in.  ?
valid_for TickGreen.png The heroes the mod can be used with.  ?
width CrossWhite.png Width of the bounding box. 40vw
item_name CrossWhite.png The specific item the mod can be found on.
item_icon CrossWhite.png The filepath for the icon for the item.

Examples

Wiki Text Result
{{Mods Info | name = Healthy Power Chip | item_type = Armor | description = '''+140-7,770''' Hero Damage when at 90%+ Health. | found_in = Chaos 1+ | valid_for = All heroes }}

The Qualibean Armor Icon.pngHealthy Power Chip

  • +140-7,770 Hero Damage when at 90%+ Health.
  • Found in: Chaos 1+
  • Valid For: All heroes
{{Mods Info | name = Flame Eater | item_type = Weapon | description = '''+39.65%~60%''' damage to ignited enemies. | found_in = Any difficulty (Countess must be in hero deck) | valid_for = '''[[File:Countess_icon_trans.png|25px]] [[Countess]]''' | item_name = Standard Legendary Swords }}

The Qualibean Weapon Icon.pngFlame Eater

  • +39.65%~60% damage to ignited enemies.
  • Item: Standard Legendary Swords
  • Found in: Any difficulty (Countess must be in hero deck)
  • Valid For: Countess icon trans.png Countess
{{Mods Info | name = Blessing of Piercing | item_type = Ring | description = Hero projectiles pierce shields and do '''45.5%~100%''' of... | found_in = Prime 7 Region Incursions (Chaos 9+) | valid_for = All Heroes | item_name = Ring of Piercing | item_icon = File:Ring_of_Piercing_Icon.png }}

The Qualibean Ring Icon.pngBlessing of Piercing

  • Hero projectiles pierce shields and do 45.5%~100% of their damage.
  • Found in: Prime 7 Region Incursions (Chaos 9+)
  • Valid For: All Heroes
Item:
Ring of Piercing Icon.png
Ring of Piercing