Difference between revisions of "Template:Mods Info"
From Dungeon Defenders 2 Wiki
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;"> |
− | + | <div> | |
− | + | <p class="no-decoration" style="font-size: 130%; font-weight: bold; color: #D3D3D3;"> | |
− | + | {{#switch: {{{item_type|}}} | |
− | + | | Helmet = {{MODS Qualibean Helmet Icon}} | |
− | + | | Armor = {{MODS Qualibean Armor Icon}} | |
− | + | | Relic = {{MODS Qualibean Relic Icon}} | |
− | + | | Weapon = {{MODS Qualibean Weapon Icon}} | |
− | + | | Ring = {{MODS Qualibean Ring Icon}} | |
− | + | | [[File:The Qualibean Icon.png|20px]] | |
− | + | }}<!-- | |
− | --></p> | + | --->[[{{{name|Mod Name?}}}|<span style="color: #D3D3D3; padding-left: 5px;">{{{name|Mod Name?}}}</span>]]<!-- |
− | * ''{{{description|Description?}}}'' | + | ---></p> |
− | {{#if: {{{ | + | <!----->* ''{{{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
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
}}
|
|
{{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
}}
|
|
{{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
}}
|
|