Difference between revisions of "Template:Mods Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m
m
 
(67 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|
+
<includeonly><div style="display: flex; flex: {{{width|40vw}}}; justify-content: space-between; align-items: center; border: 1px solid #1C2E4A; padding: 0 10px 10px 10px;">
     {{#switch: {{{mods_type|}}}
+
     <div>
        | Armor = {{MODS Qualibean Armor Icon}}
+
        <p class="no-decoration" style="font-size: 130%; font-weight: bold; color: #D3D3D3;">
        | Relic = {{MODS Qualibean Relic Icon}}
+
            {{#switch: {{{item_type|}}}
        | Weapon = {{MODS Qualibean Weapon Icon}}
+
            | Helmet = {{MODS Qualibean Helmet Icon}}
        | Rings = {{MODS Qualibean Ring Icon}}
+
            | Armor = {{MODS Qualibean Armor Icon}}
         | [[{{{mods_type|File:The Qualibean Icon.png}}}|20px]]
+
            | Relic = {{MODS Qualibean Relic Icon}}
 +
            | Weapon = {{MODS Qualibean Weapon Icon}}
 +
            | Ring = {{MODS Qualibean Ring Icon}}
 +
            | [[File:The Qualibean Icon.png|20px]]
 +
            }}<!--
 +
         --->[[{{{name|Mod Name?}}}|<span style="color: #D3D3D3; padding-left: 5px;">{{{name|Mod Name?}}}</span>]]<!--
 +
    ---></p>
 +
<!----->* ''{{{description|Description?}}}''<!--
 +
    --->{{#if: {{{item_name|}}}
 +
            | {{#if: {{{item_icon|}}}
 +
                | <!-- 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%;" cellpadding="20"
 +
! style="font-size:150%; width: 50%;" | Wiki Text
 +
! style="font-size:150%; width: 50%;" | Result
 +
|-
 +
|<code class="tempdoc-code-block"><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
 +
    }}
 +
|-
 +
|<code class="tempdoc-code-block"><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
 +
    }}
 +
|-
 +
|<code class="tempdoc-code-block"><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
 
     }}
 
     }}
    <span class="no-decoration">[[{{{name|'''Mods Name?}}}|<span style="color: #D3D3D3">{{{name| <big>'''Mods Name?'''</big>}}}</span>]]</span>
 
* ''{{{description|Description?}}}''
 
{{  #if: {{{item|}}}
 
    | * '''Item:''' ''{{{''item''}}}''
 
}}{{#if: {{{found_in|}}}
 
    | * '''Found in:''' ''{{{''found_in''}}}''
 
}}{{#if: {{{valid_for|}}}
 
    | * '''Valid For:''' ''{{{''valid_for''}}}''
 
}}
 
 
|}
 
|}
 +
 +
__NOEDITSECTION__
 +
</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