From Dark and Darker Wiki
m (Replaced content with "<includeonly>{{#switch:{{lc:{{{1|}}}}} |alllists={{#switch:{{lc:{{{2|}}}}} |name={{#switch:{{lc:{{{3|}}}}} |armor={{#switch:{{lc:{{{4|}}}}} |uncraftable={{#switch:{{lc:{{{5|}}}}} |adventurer boots=Adventurer Boots |adventurer cloak=Adventurer Cloak |adventurer tunic=Adventurer Tunic |armet=Armet |barbuta helm=Barbuta Helm |bardic pants=Bardic Pants |buckled boots=Buckled Boots |champion armor=Champion Armor |chapel de fer=Cha...") Tag: Replaced |
m (item alllists HF40) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1|}}}}} | <includeonly>{{#switch:{{lc:{{{1|}}}}} | ||
|alllists={{#switch:{{lc:{{{2|}}}}} | |alllists={{#switch:{{lc:{{{2|}}}}} | ||
|types={{#switch:{{lc:{{{3|}}}}} | |||
|armor={{#switch:{{lc:{{{4|}}}}} | |||
|uncraftable={{#switch:{{lc:{{{5|}}}}} | |||
|leather=Wizard Shoes | |||
|cloth=Wizard Hat | |||
|plate=Visored Sallet | |||
|all=Leather,Cloth,Plate | |||
}} | |||
|craftable={{#switch:{{lc:{{{5|}}}}} | |||
|cloth=Tri-Pelt Doublet | |||
|plate=Tri-Pelt Northern Full Tunic | |||
|leather=Wolf Hunter Leggings | |||
|all=Cloth,Plate,Leather | |||
}} | |||
|all=Uncraftable,Craftable | |||
}} | |||
|weapon={{#switch:{{lc:{{{4|}}}}} | |||
|uncraftable={{#switch:{{lc:{{{5|}}}}} | |||
|shield=Round Shield | |||
|sword=Zweihander | |||
|polearm=Spear | |||
|axe=Soulscraper | |||
|dagger=Throwing Knife | |||
|magicstuff=Zirkzi's Eye | |||
|staff=Stinky Stick | |||
|mace=War Maul | |||
|crossbow=Windlass Crossbow | |||
|bow=Survival Bow | |||
|throwable=Throwing Knife | |||
|musicalinstrument=Lute | |||
|string=Lute | |||
|lightsource=Torch | |||
|all=Shield,Sword,Polearm,Axe,Dagger,MagicStuff,Staff,Mace,Crossbow,Bow,Throwable,MusicalInstrument,String,LightSource | |||
}} | |||
|craftable={{#switch:{{lc:{{{5|}}}}} | |||
|axe=Sterling Axe | |||
|sword=Void Blade | |||
|mace=Troll's Bane | |||
|bow=Sterling Bow | |||
|magicstuff=Mana Sphere | |||
|dagger=Sterling Dagger | |||
|staff=Troll's Bane | |||
|polearm=Spear of Rot | |||
|all=Axe,Sword,Mace,Bow,MagicStuff,Dagger,Staff,Polearm | |||
}} | |||
|all=Uncraftable,Craftable | |||
}} | |||
|all=Armor,Weapon | |||
}} | |||
|slottype={{#switch:{{lc:{{{3|}}}}} | |||
|armor={{#switch:{{lc:{{{4|}}}}} | |||
|uncraftable={{#switch:{{lc:{{{5|}}}}} | |||
|foot=Wizard Shoes | |||
|back=Watchman Cloak | |||
|chest=Warden Outfit | |||
|head=Wizard Hat | |||
|legs=Plate Pants | |||
|hands=Runestone Gloves | |||
|all=Foot,Back,Chest,Head,Legs,Hands | |||
}} | |||
|craftable={{#switch:{{lc:{{{5|}}}}} | |||
|legs=Wolf Hunter Leggings | |||
|back=Golden Cloak | |||
|head=Rubysilver Hood | |||
|chest=Tri-Pelt Northern Full Tunic | |||
|hands=Rubysilver Rawhide Gloves | |||
|foot=Shoes of Darkness | |||
|all=Legs,Back,Head,Chest,Hands,Foot | |||
}} | |||
|all=Uncraftable,Craftable | |||
}} | |||
|weapon={{#switch:{{lc:{{{4|}}}}} | |||
|uncraftable={{#switch:{{lc:{{{5|}}}}} | |||
|off-hand=Zirkzi's Eye | |||
|main-hand=Zweihander | |||
|utility=Torch | |||
|all=Off-Hand,Main-Hand,Utility | |||
}} | |||
|craftable={{#switch:{{lc:{{{5|}}}}} | |||
|main-hand=Void Blade | |||
|off-hand=Sterling Short Sword | |||
|all=Main-Hand,Off-Hand | |||
}} | |||
|all=Uncraftable,Craftable | |||
}} | |||
|all=Armor,Weapon | |||
}} | |||
|name={{#switch:{{lc:{{{3|}}}}} | |name={{#switch:{{lc:{{{3|}}}}} | ||
|armor={{#switch:{{lc:{{{4|}}}}} | |armor={{#switch:{{lc:{{{4|}}}}} | ||
Line 288: | Line 375: | ||
|all=Armor,Weapon | |all=Armor,Weapon | ||
}} | }} | ||
|all=types,slottype,name | |||
}} | }} | ||
|#default=}}</includeonly> | |#default=}}</includeonly><noinclude> | ||
==Usage== | |||
<pre>{{alllist|<variable1>|<variable2>|...}}</pre> | |||
==Variables== | |||
*<item_name> | |||
**stats | |||
***<stat_name> | |||
***allstats | |||
**abilities | |||
***<ability_type> | |||
****<ability_name> | |||
*****<ability_attribute> | |||
**types | |||
***<type> | |||
**hitbox | |||
***height | |||
***width | |||
***height | |||
**rarities | |||
**handtype | |||
**slottype | |||
**artifactname | |||
**artifactpower | |||
**invslots | |||
**invwidth | |||
**invheight | |||
**hitslow | |||
**hitslowduration | |||
**flavortext | |||
**maxammocount | |||
**maxcount | |||
**maxcontentscount | |||
**reloadtime | |||
**wearingdelaytime | |||
**equiptime | |||
**unequiptime | |||
**ap | |||
***<rarity> | |||
**xp | |||
***<rarity> | |||
**initialspeed | |||
**damagefalloff | |||
**piercecount | |||
**classes | |||
**impactresistance | |||
**interactiontime | |||
**interactiontimescaling | |||
==Global== | |||
All attributes that are shared between all other attributes in the same layer are moved to a global layer | |||
For example, if all |movementmultiplier's under Abilities|Primary| are the same, they will be moved to Abilities|Primary|global | |||
See Example 2 for more information | |||
==All== | |||
All sub-layers can also call |all for a list of all unique attributes | |||
For example, | |||
<pre style="width:fit-content;">{{alllist|all}}</pre> | |||
will output a list of all items | |||
For example, | |||
<pre style="width:fit-content;">{{alllist|<itemname>|all}}</pre> | |||
will output a list of all attributes of a particular | |||
See example 1 and 6 for more information | |||
==Examples== | |||
Note, some variables may not be applicable to all item categories. | |||
The below examples are for the Arming Sword, which only exists in Weapon_Data. | |||
Other item categories, like Misc_Data, may have different variables, and obviously don't have others, like abilities | |||
===Example 1=== | |||
All stats of the Arming Sword | |||
<pre style="width:fit-content;">{{alllist|Arming Sword|stats|all}}</pre> | |||
Outputs {{alllist|Arming Sword|stats|all}} | |||
===Example 2=== | |||
All shared attributes for Primary attacks of Arming Sword | |||
<pre style="width:fit-content;">{{alllist|Arming Sword|abilities|Primary|global}}</pre> | |||
Outputs {{alllist|Arming Sword|abilities|Primary|global}} | |||
===Example 3=== | |||
Damagefalloff widget of Longbow | |||
<pre style="width:fit-content;">{{alllist|Longbow|damagefalloff}}</pre> | |||
Outputs {{alllist|Longbow|damagefalloff}} | |||
===Example 4=== | |||
All non-artifact rarities of the Arming Sword | |||
<pre style="width:fit-content;">{{alllist|Arming Sword|rarities}}</pre> | |||
Outputs {{alllist|Arming Sword|rarities}} | |||
===Example 5=== | |||
Invslots size image of Arming Sword | |||
<pre style="width:fit-content;">{{alllist|Arming Sword|invslots}}</pre> | |||
Outputs {{alllist|Arming Sword|invslots}} | |||
===Example 6=== | |||
All attributes of primary abilities of Arming Sword | |||
<pre style="width:fit-content;">{{alllist|Arming Sword|abilities|Primary|all}}</pre> | |||
Outputs {{alllist|Arming Sword|abilities|Primary|all}} | |||
</noinclude> |
Revision as of 19:10, 4 April 2024
Usage
{{alllist|<variable1>|<variable2>|...}}
Variables
- <item_name>
- stats
- <stat_name>
- allstats
- abilities
- <ability_type>
- <ability_name>
- <ability_attribute>
- <ability_name>
- <ability_type>
- types
- <type>
- hitbox
- height
- width
- height
- rarities
- handtype
- slottype
- artifactname
- artifactpower
- invslots
- invwidth
- invheight
- hitslow
- hitslowduration
- flavortext
- maxammocount
- maxcount
- maxcontentscount
- reloadtime
- wearingdelaytime
- equiptime
- unequiptime
- ap
- <rarity>
- xp
- <rarity>
- initialspeed
- damagefalloff
- piercecount
- classes
- impactresistance
- interactiontime
- interactiontimescaling
- stats
Global
All attributes that are shared between all other attributes in the same layer are moved to a global layer
For example, if all |movementmultiplier's under Abilities|Primary| are the same, they will be moved to Abilities|Primary|global
See Example 2 for more information
All
All sub-layers can also call |all for a list of all unique attributes For example,
{{alllist|all}}
will output a list of all items
For example,
{{alllist|<itemname>|all}}
will output a list of all attributes of a particular
See example 1 and 6 for more information
Examples
Note, some variables may not be applicable to all item categories. The below examples are for the Arming Sword, which only exists in Weapon_Data. Other item categories, like Misc_Data, may have different variables, and obviously don't have others, like abilities
Example 1
All stats of the Arming Sword
{{alllist|Arming Sword|stats|all}}
Outputs Template:Alllist
Example 2
All shared attributes for Primary attacks of Arming Sword
{{alllist|Arming Sword|abilities|Primary|global}}
Outputs Template:Alllist
Example 3
Damagefalloff widget of Longbow
{{alllist|Longbow|damagefalloff}}
Outputs Template:Alllist
Example 4
All non-artifact rarities of the Arming Sword
{{alllist|Arming Sword|rarities}}
Outputs Template:Alllist
Example 5
Invslots size image of Arming Sword
{{alllist|Arming Sword|invslots}}
Outputs Template:Alllist
Example 6
All attributes of primary abilities of Arming Sword
{{alllist|Arming Sword|abilities|Primary|all}}
Outputs Template:Alllist