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=
=Templates=
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=
=Template Hierarchy=
{{#vardefine:arrow|&nbsp;&nbsp;&#10551;&nbsp;&nbsp;}}
{{#vardefine:arrow|&nbsp;&nbsp;&#10551;&nbsp;&nbsp;}}
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:

Here is your content 1

Templates

The data for items are pulled from templates:

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:

Weapon Templates

Templates for Individual Weapon pages:

Templates for class pages:


Info Templates:

Armor Templates

Info Templates:

Craft Templates

Monster Templates

Race Templates

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

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

Special:BatchUpload