From Dark and Darker Wiki

(Added image linking option.)
(Added gearscore option)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
<div style="{{#if:{{{nomargin|}}}||margin-left:10px;}}background-color:rgb(var(--background-color),0.3); max-width:470px; {{#ifeq:{{{nofloat|}}}|1||float:right;}}">
<div style="{{#if:{{{nomargin|}}}||margin-left:10px;}}background-color:rgb(var(--background-color),0.3); max-width:470px; {{#ifeq:{{{nofloat|}}}|1||float:right;}}">
<div style="width: 280px;padding:20px; box-shadow: inset 0px 0px 20px 5px rgb(0 0 0 / 0.5);display:flex; flex-direction:column; align-items:center;background-color:rgb(var(--rarity-{{{rarity|}}}),0.05);border:2px solid rgb(var(--rarity-{{{rarity|1}}}),0.5);"class="itemboxheader">
<div style="width: 280px;padding:20px; box-shadow: inset 0px 0px 20px 5px rgb(0 0 0 / 0.5);display:flex; flex-direction:column; align-items:center;background-color:rgb(var(--rarity-{{{rarity|}}}),0.05);border:2px solid rgb(var(--rarity-{{{rarity|1}}}),0.5);"class="itemboxheader">
<div class="bold colorrarity{{{rarity}}}" style="margin-top:0px!important;font-size:22px;">{{{name}}}</div></div>
<div class="bold" style="margin-top:0px!important;font-size:22px">
{{#switch:1
|{{#ifeq:{{{link|}}}|nolink|1}}=
{{{name}}}
|{{#if:{{{link|}}}|1}}=
[[{{{link}}}|<span class="colorrarity{{{rarity}}}">{{{name}}}</span>]]
|#default=
[[{{{name}}}|<span class="colorrarity{{{rarity}}}">{{{name}}}</span>]]}}</div></div>
<div style="width: 280px; border:2px solid rgb(70,70,70,0.5); padding:20px;">
<div style="width: 280px; border:2px solid rgb(70,70,70,0.5); padding:20px;">
<div style="display:flex; flex-direction:column; align-items:center;"><!--
<div style="display:flex; flex-direction:column; align-items:center;"><!--
-->{{Iconbox|{{{name}}}|image={{{image|{{{name}}}}}}.png|caption=no|{{#if:{{{link|}}}|link={{{link}}}|nolink=1}}|size={{{size|100x200px}}}}}</div><!--
-->{{Iconbox|{{{name}}}|image={{{image|{{{name}}}}}}.png|caption=no|link={{{link|nolink}}}|size={{{size|100x200px}}}}}</div><!--
-->{{#if:{{{stats|}}}<!--
-->{{#if:{{{stats|}}}{{{enchantments|}}}{{{special|}}}<!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!-- Line -->
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!-- Line -->
<div style="display:flex; flex-direction:column; align-items:center; text-align:center"><!--
<div style="display:flex; flex-direction:column; align-items:center; text-align:center"><!--
Line 30: Line 37:
--><div style="display:flex; flex-direction:column; align-items:center; font-size:18px; text-align:center;">
--><div style="display:flex; flex-direction:column; align-items:center; font-size:18px; text-align:center;">
{{{effect}}}</div>}}<!--
{{{effect}}}</div>}}<!--
-->{{#if:{{{classes|}}}{{{type|}}}{{{armortype|}}}{{{weapontype|}}}{{{utilitytype|}}}{{{slottype|}}}{{{handtype|}}}{{{actiontime|}}}{{{attackspeed|}}}{{{reloadspeed|}}}{{{quiversize|}}}<!--
-->{{#if:{{{compact_effect|}}}<!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
--><div style="text-align:center">
{{{compact_effect}}}</div>}}<!--
-->{{#if:{{{classes|}}}{{{type|}}}{{{armortype|}}}{{{weapontype|}}}{{{utilitytype|}}}{{{slottype|}}}{{{handtype|}}}{{{actiontime|}}}{{{interactiontime|}}}{{{attackspeed|}}}{{{reloadspeed|}}}{{{quiversize|}}}<!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
-->{{#if:{{{classes|}}}<!--
-->{{#if:{{{classes|}}}<!--
Line 42: Line 53:
-->{{#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="text-align:right; color:rgb(70,70,70)">Weapon Type: </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 style="color:rgb(160,160,140)">{{{armortype|}}}</div></div>}}<!--
-->{{#if:{{{weapontype|}}}<!--
-->{{#if:{{{weapontype|}}}<!--
-->|<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="text-align:right; color:rgb(70,70,70)">Armor Type: </div><!--
--><div style="text-align:right; color:rgb(70,70,70)">Weapon Type: </div><!--
--><div style="color:rgb(160,160,140)">{{{weapontype|}}}</div></div>}}<!--
--><div style="color:rgb(160,160,140)">{{{weapontype|}}}</div></div>}}<!--
-->{{#if:{{{utilitytype|}}}<!--
-->{{#if:{{{utilitytype|}}}<!--
Line 64: Line 75:
--><div style="text-align:right; color:rgb(70,70,70)">Action Time: </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 style="color:rgb(160,160,140)">{{{actiontime}}}</div></div>}}<!--
-->{{#if:{{{interactiontime|}}}<!--
-->|<div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
--><div style="text-align:right; color:rgb(70,70,70)">Interaction Time: </div><!--
--><div style="color:rgb(160,160,140)">{{{interactiontime}}}</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;"><!--
Line 107: Line 122:
--><div style="color:rgb(160,160,140)">{{{actionmovementspeed}}}</div></div>}} }}<!--
--><div style="color:rgb(160,160,140)">{{{actionmovementspeed}}}</div></div>}} }}<!--
-->{{#if:{{{duration|}}}{{{openduration|}}}{{{picklockduration|}}}{{{miningduration|}}}{{{harvestingduration|}}}{{{lootduration|}}}{{{activateduration|}}}<!--
-->{{#if:{{{duration|}}}{{{openduration|}}}{{{picklockduration|}}}{{{miningduration|}}}{{{harvestingduration|}}}{{{lootduration|}}}{{{activateduration|}}}<!--
-->{{{interactioncount|}}}{{{race|}}}{{{location|}}}{{{invslots|}}}{{{stacksize|}}}{{{sellprice|}}}<!--
-->{{{interactioncount|}}}{{{race|}}}{{{location|}}}{{{invslots|}}}{{{stacksize|}}}{{{sellprice|}}}{{{gearscore|}}}<!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
-->{{#if:{{{duration|}}}<!--
-->{{#if:{{{duration|}}}<!--
Line 156: Line 171:
--><div style="text-align:right; color:rgb(70,70,70)">Stack Size: </div><!--
--><div style="text-align:right; color:rgb(70,70,70)">Stack Size: </div><!--
--><div style="color:rgb(160,160,140)">{{{stacksize}}}</div></div>}}<!--
--><div style="color:rgb(160,160,140)">{{{stacksize}}}</div></div>}}<!--
-->{{#if:{{{gearscore|}}}<!--
-->|<div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
--><div style="text-align:right; color:rgb(70,70,70)">Gear Score: </div><!--
--><div style="color:rgb(160,160,140)">{{{gearscore}}}</div></div>}}<!--
-->{{#if:{{{sellprice|}}}<!--
-->{{#if:{{{sellprice|}}}<!--
-->|<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;"><!--
Line 162: Line 181:
-->{{#if:{{{experience|}}}{{{xp|}}}{{{monsterkill|}}}{{{subbosskill|}}}{{{bosskill|}}}{{{highendpropinteraction|}}}{{{propinteraction|}}}{{{itemachieve|}}}{{{treasure|}}}<!--
-->{{#if:{{{experience|}}}{{{xp|}}}{{{monsterkill|}}}{{{subbosskill|}}}{{{bosskill|}}}{{{highendpropinteraction|}}}{{{propinteraction|}}}{{{itemachieve|}}}{{{treasure|}}}<!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
-->|<div class="line" style="background-image:linear-gradient(to right,rgb(10,10,10),rgb(100,100,100),rgb(10,10,10))"></div><!--
--><div style="text-align:center; color:rgb(70,70,70); font-size:18px">'''Adventure Points'''</div><!--
-->{{#if:{{{propinteraction|}}}<!--
-->{{#if:{{{propinteraction|}}}<!--
-->|<div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
-->|<div style="text-align:center; color:rgb(70,70,70); font-size:18px">'''Adventure Points'''</div><!--
--><div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
--><div style="text-align:right; color:rgb(70,70,70)">Props Interaction: </div><!--
--><div style="text-align:right; color:rgb(70,70,70)">Props Interaction: </div><!--
--><div style="color:rgb(160,160,140)">{{{propinteraction|}}}</div></div>}}<!--
--><div style="color:rgb(160,160,140)">{{{propinteraction|}}}</div></div>}}<!--
-->{{#if:{{{highendpropinteraction|}}}<!--
-->{{#if:{{{highendpropinteraction|}}}<!--
-->|<div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
-->|<div style="text-align:center; color:rgb(70,70,70); font-size:18px">'''Adventure Points'''</div><!--
--><div style="display:flex; flex-direction:row; justify-content:center; white-space:pre-wrap;"><!--
--><div style="text-align:right; color:rgb(70,70,70)">High-End Props Interaction: </div><!--
--><div style="text-align:right; color:rgb(70,70,70)">High-End Props Interaction: </div><!--
--><div style="color:rgb(160,160,140)">{{{highendpropinteraction|}}}</div></div>}}<!--
--><div style="color:rgb(160,160,140)">{{{highendpropinteraction|}}}</div></div>}}<!--
Line 205: Line 225:
<th>Code</th>
<th>Code</th>
<th>Preview</th></tr>
<th>Preview</th></tr>
<tr>
<tr>
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
An example with all options, the information is not correct
An example with all options, the information is not correct
<pre>{{Infobox
<pre>{{Infobox
|name =Arming Sword
|name =Arming Sword
Line 247: Line 267:
|nomargin =used for tabs
|nomargin =used for tabs
|size =50x50px}}</pre>
|size =50x50px}}</pre>
This usage is not recommended, just here as an example</td>
This usage is not recommended, just here as an example</td>


<td style="padding: 20px 50px;"><!--
<td style="padding: 20px 50px;"><!--
-->{{Infobox<!--
-->{{Infobox
-->|name =Arming Sword<!--
|name =Arming Sword
-->|image =Arming Sword 7<!--
|image =Arming Sword 7
-->|rarity =7<!--
|link=Falchion
-->|stats =Weapon Damage 2,Move Speed -20,Agility 1,Knowledge 4,Will 2<!--
|rarity =7
-->|special =Smites enemies for 40 extra damage<!--
|stats =Weapon Damage 2,Move Speed -20,Agility 1,Knowledge 4,Will 2
-->|effect =Heal 15 HP over 20 seconds<!--
|special =Smites enemies for 40 extra damage
-->|classes =[[Fighter]]<!--
|effect =Heal 15 HP over 20 seconds
-->|slottype =Primary Weapon<!--
|classes =[[Fighter]]
-->|handtype =One-Handed<!--
|slottype =Primary Weapon
-->|weapontype =[[Sword]]<!--
|handtype =One-Handed
-->|utilitytype =Throw<!--
|weapontype =[[Sword]]
-->|actiontime =1 second<!--
|utilitytype =Throw
-->|attackspeed =0.6s/0.56s/0.75s<!--
|actiontime =1 second
-->|reloadspeed =3.67 seconds<!--
|attackspeed =0.6s/0.56s/0.75s
-->|quiversize =7 arrows<!--
|reloadspeed =3.67 seconds
-->|stacksize =3<!--
|quiversize =7 arrows
-->|invslots =[[File:2x3InvSlot.jpg]]<!--
|stacksize =3
-->|combo =Slash/Slash/Pierce<!--
|invslots =[[File:2x3InvSlot.jpg]]
-->|combodamage =100%/100%/150%<!--
|combo =Slash/Slash/Pierce
-->|impactzones =100%/90%/70%<!--
|combodamage =100%/100%/150%
-->|hitbox =70.5 x 17.2<!--
|impactzones =100%/90%/70%
-->|actionmovementspeed=Attack -25% <br> Blockreaction: -3% <br> Riposte: -30% <br> Riposteattack: -30%<!--
|hitbox =70.5 x 17.2
-->|duration=5<!--
|actionmovementspeed=Attack -25% <br> Blockreaction: -3% <br> Riposte: -30% <br> Riposteattack: -30%
-->|openduration=3<!--
|duration=5
-->|picklockduration=3<!--
|openduration=3
-->|interactioncount=2~4<!--
|picklockduration=3
-->|propinteraction=5<!--
|interactioncount=2~4
-->|highendpropinteraction=15<!--
|propinteraction=5
-->|monsterkill=1<!--
|highendpropinteraction=15
-->|subbosskill=2<!--
|monsterkill=1
-->|bosskill=3<!--
|subbosskill=2
-->|itemachieve=4<!--
|bosskill=3
-->|treasure=5<!--
|itemachieve=4
-->|description =Made from attenuated wood overlaid with leather, providing more defenses and stability against brunt attacks.<!--
|treasure=5
-->|nofloat =used for in text infobox<!--
|description =Made from attenuated wood overlaid with leather, providing more defenses and stability against brunt attacks.
-->|nomargin =used for tabs<!--
|nofloat =used for in text infobox
-->|size =50x50px<!--
|nomargin =used for tabs
-->|xp =50}}</td></tr></table></noinclude>
|size =50x50px
|xp =50}}</td></tr></table></noinclude>

Latest revision as of 23:11, 28 October 2024

Creates an infobox for a weapon.

Example

Code Preview

An example with all options, the information is not correct

{{Infobox
	|name		=Arming Sword
	|image		=Arming Sword 7
	|rarity		=7
	|stats		=Weapon Damage 2,Move Speed -20,Agility 1,Knowledge 4,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
	|stacksize	=3
	|invslots	=[[File:2x3InvSlot.jpg]]
	|combo		=Slash/Slash/Pierce
	|combodamage	=100%/100%/150%
	|impactzones	=100%/90%/70%
	|hitbox		=70.5 x 17.2
	|actionmovementspeed=Attack -25% <br> Blockreaction: -3% <br> Riposte: -30% <br> Riposteattack: -30%
	|duration=5
	|openduration=3
	|picklockduration=3
	|interactioncount=2~4
	|propinteraction=5
	|highendpropinteraction=15
	|monsterkill=1
	|subbosskill=2
	|bosskill=3
	|itemachieve=4
	|treasure=5
	|description	=Made from attenuated wood overlaid with leather, 
			 providing moredefenses and stability against brunt attacks.
	|nofloat	=used for in text infobox
	|nomargin	=used for tabs
	|size	=50x50px}}
This usage is not recommended, just here as an example
Arming Sword 7.png
-
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:
Weapon Type:
Utility Type:
Throw
Slot Type:
Primary Weapon
Hand Type:
One-Handed
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%
Impact Zones:
100%/90%/70%
Hitbox:
70.5 x 17.2
Action Move Speed
Attack -25%
Blockreaction: -3%
Riposte: -30%
Riposteattack: -30%
Duration:
5 s
Opening:
3 s
Picking Lock:
3 s
Interaction Count:
2~4
2x3InvSlot.jpg
Stack Size:
3
Adventure Points
Props Interaction:
5
Adventure Points
High-End Props Interaction:
15
Monster Kill:
1
Subboss Kill:
2
Boss Kill:
3
Item Achieve:
4
Treasure:
5
Experience Points
50
Made from attenuated wood overlaid with leather, providing more defenses and stability against brunt attacks.