Difference between revisions of "Template:Mods Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m (Re-introducing no-decoration class name to paragraph tag)
(Overhaul and providing documentation)
 
Line 1: Line 1:
<div style="flex: {{{width|40vw}}}; border: 1px solid #1C2E4A; padding: 0 10px 10px 10px;"><!--
+
<includeonly><div style="display: flex; flex: {{{width|40vw}}}; justify-content: space-between; align-items: center; border: 1px solid #1C2E4A; padding: 0 10px 10px 10px;">
--><p class="no-decoration" style="font-size: 130%; font-weight: bold; color: #D3D3D3;"><!--
+
    <div>
    -->{{#switch: {{{mods_type|}}}
+
        <p class="no-decoration" style="font-size: 130%; font-weight: bold; color: #D3D3D3;">
        | Helmet = {{MODS Qualibean Helmet Icon}}
+
            {{#switch: {{{item_type|}}}
        | Armor = {{MODS Qualibean Armor Icon}}
+
            | Helmet = {{MODS Qualibean Helmet Icon}}
        | Relic = {{MODS Qualibean Relic Icon}}
+
            | Armor = {{MODS Qualibean Armor Icon}}
        | Weapon = {{MODS Qualibean Weapon Icon}}
+
            | Relic = {{MODS Qualibean Relic Icon}}
        | Rings = {{MODS Qualibean Ring Icon}}
+
            | Weapon = {{MODS Qualibean Weapon Icon}}
        | [[{{{mods_type|File:The Qualibean Icon.png}}}|20px]]
+
            | Ring = {{MODS Qualibean Ring Icon}}
        }}<!--
+
            | [[File:The Qualibean Icon.png|20px]]
    -->[[{{{name|Mods Name?}}}|<span style="color: #D3D3D3; padding-left: 5px;">{{{name|Mods Name?}}}</span>]]<!--
+
            }}<!--
--></p>
+
        --->[[{{{name|Mod Name?}}}|<span style="color: #D3D3D3; padding-left: 5px;">{{{name|Mod Name?}}}</span>]]<!--
* ''{{{description|Description?}}}''
+
    ---></p>
{{#if: {{{item|}}} | * '''Item:''' ''{{{item}}}''}}
+
<!----->* ''{{{description|Description?}}}''<!--
* '''Found in:''' ''{{{found_in|?}}}''
+
    --->{{#if: {{{item_name|}}}
* '''Valid For:''' ''{{{valid_for|?}}}''
+
            | {{#if: {{{item_icon|}}}  
</div>
+
                | <!-- Display Nothing -->
 +
                | * '''Item:''' ''{{{item_name}}}''
 +
            }}  
 +
        }}
 +
<!----->* '''Found in:''' ''{{{found_in|?}}}''
 +
<!----->* '''Valid For:''' ''{{{valid_for|?}}}''
 +
    </div><!--
 +
 
 +
--->{{#if: {{{item_icon|}}} |<!--
 +
    ---><div style="text-align: center;margin-right: 5px;"><!--
 +
    --->'''Item:''' <br> [[{{{item_icon}}}{{!}}50px]] <br> ''{{{item_name}}}''<!--
 +
---></div><!--
 +
--->}}
 +
</div></includeonly><noinclude>
 +
===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===
 +
{| border="1" class="wikitable TemplateDocumentation"
 +
|-
 +
! Parameter !! Required !! Description !! Default
 +
|-
 +
| name || {{yes}} || The name of the mod || Mod Name?
 +
|-
 +
| item_type || {{yes}} || The type of item the mod can be used on (Helmet, Armor, Relic, Weapon, Ring) || ?
 +
|-
 +
| description || {{yes}} || Description of what the mod does. || Description?
 +
|-
 +
| found_in || {{yes}} || The difficulties the mod can be found in. || ?
 +
|-
 +
| valid_for || {{yes}} || The heroes the mod can be used with. || ?
 +
|-
 +
| width || {{no}} || Width of the bounding box. || 40vw
 +
|-
 +
| item_name || {{no}} || The specific item the mod can be found on. ||
 +
|-
 +
| item_icon || {{no}} || The filepath for the icon for the item. ||
 +
|}
 +
 
 +
===Examples===
 +
{| style="width:95%;"
 +
! style="font-size:150%; width: 50%;" | Wiki Text
 +
! style="font-size:150%; width: 50%;" | Result
 +
|-
 +
| style="display: flex; justify-content: center;" |<!---
 +
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
 +
    ---><nowiki>
 +
            {{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
 +
            }}
 +
        </nowiki><!---
 +
---></code>
 +
|
 +
            {{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
 +
            }}
 +
|-
 +
| style="display: flex; justify-content: center;" |<!---
 +
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
 +
    ---><nowiki>
 +
            {{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
 +
            }}
 +
        </nowiki><!---
 +
---></code>
 +
|
 +
            {{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
 +
            }}
 +
|-
 +
| style="display: flex; justify-content: center;" |<!---
 +
---><code style="width: 90%; white-space: pre-wrap; align-content: center;"><!---
 +
    ---><nowiki>
 +
            {{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
 +
            }}
 +
        </nowiki><!---
 +
---></code>
 +
|
 +
            {{Mods Info
 +
            | name = Blessing of Piercing
 +
            | item_type = Ring
 +
            | description = 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_name = Ring of Piercing
 +
            | item_icon = File:Ring_of_Piercing_Icon.png
 +
            }}
 +
|}
 +
 
 +
__NOEDITSECTION__
 +
</noinclude>

Latest revision as of 23:14, 27 February 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