Here is your content 1
From Dark and Darker Wiki
(Added Template Hierarchy in a Tab.) |
m (Moved Templates out of the Extensions subsection.) |
||
Line 18: | Line 18: | ||
Spells here etc. | Spells here etc. | ||
</tabber> | </tabber> | ||
=Templates= | |||
<tabber> | <tabber> | ||
|-|Template List= | |-|Template List= | ||
The data for items are pulled from templates: | The data for items are pulled from templates: | ||
*[[Template:Weapon_Data]] | *[[Template:Weapon_Data]] | ||
Line 139: | Line 140: | ||
|-|Template Hierarchy= | |-|Template Hierarchy= | ||
{{#vardefine:arrow| ⤷ }} | {{#vardefine:arrow| ⤷ }} | ||
Color Legend:<br> | Color Legend:<br> |
Revision as of 22:32, 9 March 2024
I recommend using "Edit Source" as Visual Edit doesn't work well.
Edits
When making an edit with the intention of bring it up to date with a hotfix/patch release, specify that the page is up to date and change the status color from red/orange to green in TODO.
Extensions
Tabber extension allows content to be created under tabs. Unfortunately, doesn't support visual edit
<tabber> |-|Content1= Here is your content 1 |-|Spells= Spells here etc. </tabber>
becomes:
Templates
The data for items are pulled from templates:
- Template:Weapon_Data
- Template:Armor_Data
- Template:Item_Data
- Template:Crafting_Data
- Template:Monster_Data
also planning to add monster data(actively WIP) and jewelry data. Also could combine every item on Item Data, that might not be good for load times tho.
Infobox Templates:
- Template:Infobox
- Used for pretty much all items/monsters
- Template:Infobox_Class
- Used only for classes atm, will merge it into Infobox in future
Weapon Templates
- Template:Weapons
- Menu of weapons
Templates for Individual Weapon pages:
- Template:GenerateWeaponRow
- Template:GenerateHitbox
- Template:GenerateWeaponCombo
- Template:GenerateBlock
- Template:GenerateUnique
- Template:ActionMoveSlow
- Template:AutoGenerateWeaponTabs
- calls Template:GenerateWeaponTabs with
{{PAGENAME}}
- calls Template:GenerateWeaponTabs with
Templates for class pages:
Info Templates:
- Template:Sword
- Template:Maces
- Template:Daggers
- Template:Polearms
- Template:Axes
- Template:Bows
- Template:Crossbows
- Template:Magical Weapons
- Template:Musical Instrument
- Template:Shields
Armor Templates
Info Templates:
- Template:Head Armor
- Template:Chest Armor
- Template:Legs Armor
- Template:Hands Armor
- Template:Foot Armor
- Template:Back Armor
Craft Templates
- Template:Crafting_Data
- Database
- Template:GenerateCraftingRow
- Single crafting recipe row
- Template:GenerateCraftingRows
- Generate multiply, according to ingredient or trader etc.
- Template:Ingredient
- Used on individual page like Bone, Gives info on ingredient, shows all recipes that uses it
- Template:Craftable
- Used on individual page like Cobalt Hat, Shows its crafting recipe
Monster Templates
- Template:Monster_Data
- Database (actively WIP)
- Template:GenerateMonsterRow
- Single monster row
- Template:GenerateMonsterRows
- Generate multiple rows, according to type of monster
- Template:RegularMonsterTable
- Generate within a table
Race Templates
- Template:Monster_Data
- Source data that race comes from
- Template:GenerateRacePage
- Generate Monster Race page like Beast
Class Templates
- Template:Class_Data
- Currently only holds attribute data for each Class.
- Template:Infobox Class
- Displays basic attributes of a Class in a simple infobox.
- Template:GenerateDetailsPage
- Using Template:Class Data, this template Generates a Details Page similar to that found in game.
- Template:ListGearForClass
- Using Template:ListWeaponsForClass and Template:ListArmorForClass, this ListGearForClass Generates a table of categorized weapons and armors available to a class.
- Template:ListWeaponsForClass
- Generate list of Weapons that a Class can equip. Categorizes the weapons by hand types: One Handed, Two Handed.
- Template:ListArmorsForClass
- Generate list of Armors that a Class can equip. Categorizes the armors by slot types: Head, Chest, Legs, Foot, Hands, Back.
Drops Templates
- Template:GenerateLootDrops
- Generates loot drops and tables of a given creature
- Template:GenerateDropTables
- Generates list of creatures that a given item is dropped by
Utility Templates
- Redirect
- Not a template - upon entering source page user is redirected to another page
- Template:Transclude
- Pastes all content from a section of a given page
- TODO
- Not a template - shows last patch a page was manually entered as up-to-date for
Color Legend:
Template Calls
Transclusion Calls
The main pages use the following template and transclusion structures:
The main pages link to individual item pages.