From Dark and Darker Wiki
|  (ingame like base infobox for all items/weapons/armors) |  (extra styling) | ||
| Line 58: | Line 58: | ||
|       -->{{#if:{{{slottype|}}}| |       -->{{#if:{{{slottype|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Slot Type: </div><div style="color:rgb(160,160,140)">{{{slottype}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Slot Type: </div><div style="color:rgb(160,160,140)">{{{slottype}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{armortype|}}}| |       -->{{#if:{{{armortype|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Armor Type: </div><div style="color:rgb(160,160,140)">{{{armortype}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Armor Type: </div><div style="color:rgb(160,160,140)">{{{armortype}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{handtype|}}}| |       -->{{#if:{{{handtype|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Hand Type: </div><div style="color:rgb(160,160,140)">{{{handtype}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Hand Type: </div><div style="color:rgb(160,160,140)">{{{handtype}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{utilitytype|}}}| |       -->{{#if:{{{utilitytype|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Utility Type: </div><div style="color:rgb(160,160,140)">{{{utilitytype}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Utility Type: </div><div style="color:rgb(160,160,140)">{{{utilitytype}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{actiontime|}}}| |       -->{{#if:{{{actiontime|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Action Time: </div><div style="color:rgb(160,160,140)">{{{actiontime}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Action Time: </div><div style="color:rgb(160,160,140)">{{{actiontime}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{attackspeed|}}}| |       -->{{#if:{{{attackspeed|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Attack Speed: </div><div style="color:rgb(160,160,140)">{{{attackspeed}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Attack Speed: </div><div style="color:rgb(160,160,140)">{{{attackspeed}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{reloadspeed|}}}| |       -->{{#if:{{{reloadspeed|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Reload Speed: </div><div style="color:rgb(160,160,140)">{{{reloadspeed}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Reload Speed: </div><div style="color:rgb(160,160,140)">{{{reloadspeed}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{quiversize|}}}| |       -->{{#if:{{{quiversize|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Quiver Size: </div><div style="color:rgb(160,160,140)">{{{quiversize}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Quiver Size: </div><div style="color:rgb(160,160,140)">{{{quiversize}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
| Line 99: | Line 99: | ||
|       -->{{#if:{{{combo|}}}| |       -->{{#if:{{{combo|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Combo: </div><div style="color:rgb(160,160,140)">{{{combo}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Combo: </div><div style="color:rgb(160,160,140)">{{{combo}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{combodamage|}}}| |       -->{{#if:{{{combodamage|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Combo Damage: </div><div style="color:rgb(160,160,140)">{{{combodamage}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Combo Damage: </div><div style="color:rgb(160,160,140)">{{{combodamage}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{spotdamage|}}}| |       -->{{#if:{{{spotdamage|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Spot Damage: </div><div style="color:rgb(160,160,140)">{{{spotdamage}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Spot Damage: </div><div style="color:rgb(160,160,140)">{{{spotdamage}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{hitbox|}}}| |       -->{{#if:{{{hitbox|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Hitbox: </div><div style="color:rgb(160,160,140)">{{{hitbox}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Hitbox: </div><div style="color:rgb(160,160,140)">{{{hitbox}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
|       -->{{#if:{{{actionmovementspeed|}}}| |       -->{{#if:{{{actionmovementspeed|}}}| | ||
| 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | 		<div style="display:flex;flex-direction: row;justify-content: center; white-space: pre-wrap;">   | ||
| 			<div style="color:rgb(70,70,70)">Action Move Speed: </div><div style="color:rgb(160,160,140)">{{{actionmovementspeed}}}</div> | 			<div style="text-align:right; color:rgb(70,70,70)">Action Move Speed: </div><div style="color:rgb(160,160,140)">{{{actionmovementspeed}}}</div> | ||
| 		</div> | 		</div> | ||
| 		}}<!-- | 		}}<!-- | ||
Revision as of 00:03, 17 February 2023
Creates an infobox for a weapon.
Example
| Code | Preview | 
|---|---|
| 
{{Infobox
|name        = Large Oak Chest
|description = A chest object that drops random loot from the loot table
}} | Large Oak Chest  A chest object that drops random loot from the loot table 
 | 
| 
{{Infobox
|name                 = Healing Potion
|rarity               = 4
|stat1                = Move Speed -20
|stat2                = 1 Agility
|effect              = 15 HP healed over 20 seconds
|slottype             = Utility
|utilitytype          = Drink
|actiontime           = 6 seconds
|description          = Potion used to recover a bit of health
|nomargin          = 1
}} | Healing Potion  - Move Speed -20 - - 1 Agility - 15 HP healed over 20 seconds Slot Type:  Utility Utility Type:  Drink Action Time:  6 seconds Potion used to recover a bit of health 
 | 
| 
{{Infobox
|name                 = Healing Potion
|rarity               = 1
|stat1                = Move Speed -20
|stat2                = 1 Agility
|effect              = 15 HP healed over 20 seconds
|slottype             = Utility
|utilitytype          = Drink
|actiontime           = 6 seconds
|description          = Potion used to recover a bit of health
}} | Healing Potion  - Move Speed -20 - - 1 Agility - 15 HP healed over 20 seconds Slot Type:  Utility Utility Type:  Drink Action Time:  6 seconds Potion used to recover a bit of health 
 | 
| 
{{Infobox
|name                 = Longbow
|image                = Longbow 7
|classes              = [[Fighter]], [[Ranger]]
|rarity               = 7
|stat1                = Damage 25
|stat2                = Move Speed -20 
|special              = Can deflect projectile spells while in defensive stance. 
After the reflection is triggered, you remain able to reflect for 3 seconds, 
and cannot reflect again for 20 seconds after performing a spell reflect.
|enchantments         = 4
|combo                = Slash/Slash/Thrust
|combodamage          = 100%/100%/100%
|attackspeed          = 0.6s/0.56s/0.75s
|spotdamage            = 100%/90%/70%
|actionmovementspeed  = Attack: -25%
|description          = Crafted by a powerful and mysterious being to aid in eliminating magic users. 
He saw wizards lust for magic, fearing they would grow too powerful.
}} | Longbow  - Damage 25 - - Move Speed -20 - - Up to 4 extra enchantments - - Can deflect projectile spells while in defensive stance. After the reflection is triggered, you remain able to reflect for 3 seconds, and cannot reflect again for 20 seconds after performing a spell reflect. - Attack Speed:  0.6s/0.56s/0.75s Combo:  Slash/Slash/Thrust Combo Damage:  100%/100%/100% Spot Damage:  100%/90%/70% Action Move Speed:  Attack: -25% Crafted by a powerful and mysterious being to aid in eliminating magic users. He saw wizards lust for magic, fearing they would grow too powerful. 
 | 
| 
{{Infobox
|name                 = Armet
|classes              = [[Fighter]]
|rarity               = 3
|stat1                = Armor Rating 24
|stat2                = Move Speed -12 
|stat3                = Headshot Reduction -18%
|stat4                = Projectile Reduction -7%
|enchantments         = 1
|slottype             = Head
|armortype            = Metal
|description          = Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
}} | Armet  - Armor Rating 24 - - Move Speed -12 - - Headshot Reduction -18% - - Projectile Reduction -7% - - Up to 1 extra enchantments - Required Class:  Slot Type:  Head Armor Type:  Metal Molded heavy movable face and cheek plate armor, fully protecting the head from blows. 
 | 
| An example with all options, the information is not correct {{Infobox
|name                    = Arming Sword
|image                   = Arming Sword 7
|rarity                  = 7
|stat1                   = Weapon Damage 2
|stat2                   = Move Speed -20
|stat3                   = Agility 1
|stat4                   = Knowledge 4
|stat5                   = Will 2
|special                 = Smites enemies for 40 extra damage
|effect                  = Heal 15 HP over 20 seconds
|classes                 = [[Fighter]]
|slottype                = Primary Weapon
|handtype                = One-Handed
|weapontype              = [[Sword]]
|utilitytype             = Throw
|actiontime              = 1 second
|attackspeed             = 0.6s/0.56s/0.75s
|reloadspeed             = 3.67 seconds
|quiversize              = 7 arrows
|combo                   = Slash/Slash/Pierce
|combodamage             = 100%/100%/150%
|spotdamage              = 100%/90%/70%
|hitbox                  = 70.5 x 17.2
|actionmovementspeed     = Attack -25% <br> Blockreaction: -3% <br> Riposte: -30% <br> Riposteattack: -30%
|description             = Made from attenuated wood overlaid with leather, 
providing more defenses and stability against brunt attacks.
|nofloat                 = used for in text infobox
|nomargin                = used for tabs
}}This usage is not recommended, just here as an example | Arming Sword  - Weapon Damage 2 - - Move Speed -20 - - Agility 1 - - Knowledge 4 - - Will 2 - - Smites enemies for 40 extra damage - Heal 15 HP over 20 seconds Required Class:  Slot Type:  Primary Weapon Hand Type:  One-Handed Utility Type:  Throw Action Time:  1 second Attack Speed:  0.6s/0.56s/0.75s Reload Speed:  3.67 seconds Quiver Size:  7 arrows Combo:  Slash/Slash/Pierce Combo Damage:  100%/100%/150% Spot Damage:  100%/90%/70% Hitbox:  70.5 x 17.2 Action Move Speed:  Attack -25%  Blockreaction: -3% Riposte: -30% Riposteattack: -30% Made from attenuated wood overlaid with leather, providing more defenses and stability against brunt attacks. 
 | 
All Options
The full list of options are listed below.
{{Infobox
|name                    =
|image                   =
|rarity                  =
|stat1                   =
|stat2                   =
|stat3                   =
|stat4                   =
|stat5                   =
|special                 =
|effect                  =
|classes                 =
|slottype                =
|armortype               =
|handtype                =
|weapontype              =
|utilitytype             =
|actiontime              =
|attackspeed             =
|reloadspeed             =
|quiversize              =
|combo                   =
|combodamage             =
|spotdamage              =
|hitbox                  =
|actionmovementspeed     =
|description             =
|nofloat                 =
|nomargin                =
}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the item 
 | String | required | 
| image | image | Image of the item, optional, name variable is used on default 
 | String | optional | 
| rarity | rarity | Rarity of the item 
 | String | suggested | 
| Stat 1 | stat1 | First stat of the item | String | suggested | 
| Stat 2 | stat2 | Second stat of the item if there is any | String | optional | 
| Stat 3 | stat3 | Third stat of the item if there is any | String | optional | 
| Stat 4 | stat4 | Fourth stat of the item if there is any | String | optional | 
| Stat 5 | stat5 | Fifth stat of the item if there is any | String | optional | 
| enchantments | enchantments | enchantments of the item if there is any | String | optional | 
| Special | special | Special power of the item if there is any | String | optional | 
| effect | effect | effect of the item if there is any | String | optional | 
| classes | classes | Classes of item | String | suggested | 
| slottype | slottype | Slot type of item | String | suggested | 
| armortype | armortype | Armor type of item | String | optional | 
| handtype | handtype | handtype of item | String | optional | 
| weapontype | weapontype | weapontype of item | String | optional | 
| utilitytype | utilitytype | Utility type of item | String | suggested | 
| actiontime | actiontime | Action Time of item if there is any | String | suggested | 
| attackspeed | attackspeed | attackspeed of item | String | optional | 
| reloadspeed | reloadspeed | reloadspeed of item | String | optional | 
| quiversize | quiversize | quiversize of item | String | optional | 
| combo | combo | combo of item | String | optional | 
| combodamage | combodamage | combodamage of item | String | optional | 
| spotdamage | spotdamage | spotdamage of item | String | optional | 
| hitbox | hitbox | hitbox of item | String | optional | 
| actionmovementspeed | actionmovementspeed | actionmovementspeed of item | String | optional | 
| description | description | Description of item if there is any | String | suggested | 
| nofloat | nofloat | Whether the infobox float right or not 
 | String | optional | 
| nomargin | nomargin | Whether to have margin on left or not 
 | String | optional | 
 
						