From Dark and Darker Wiki

mNo edit summary
mNo edit summary
Line 176: Line 176:


|<span style="white-space:pre;">Monsters Page:
|<span style="white-space:pre;">Monsters Page:
{{#var:arrow}}[[TODO|<span style="color:blueviolet;"><nowiki>{{:TODO|Monsters}}</nowiki></span>]]
{{#var:arrow}}{{NodeMarkup|TODO|Monsters|transclusion=t}}
{{#var:arrow}}[[Template:RegularMonsterTable|RegularMonsterTable]]
{{#var:arrow}}{{NodeMarkup|RegularMonsterTable}}
&#9;{{#var:arrow}}[[Template:GenerateMonsterRows|GenerateMonsterRows]]
&#9;{{#var:arrow}}{{NodeMarkup|GenerateMonsterRows}}
&#9;&#9;{{#var:arrow}}[[Template:GenerateMonsterRow|GenerateMonsterRow]]
&#9;&#9;{{#var:arrow}}{{NodeMarkup|GenerateMonsterRow}}
&#9;&#9;&#9;{{#var:arrow}}[[Template:Iconbox|Iconbox]]
&#9;&#9;&#9;{{#var:arrow}}{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;{{#var:arrow}}[[Template:Monster_Data|Monster_Data]]</span>
&#9;&#9;&#9;{{#var:arrow}}{{NodeMarkup|Monster_Data}}</span>


|- style="vertical-align: top; margin-left:5px;"
|- style="vertical-align: top; margin-left:5px;"

Revision as of 20:54, 18 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

Spells here etc.

Templates

The data for items are pulled from templates:

also planning to add monster data(actively WIP). 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

Color Legend:
Template Calls
Transclusion Calls

The main pages use the following template and transclusion structures:

Beginners Guide Page: Classes Page:

  ⤷  {{:TODO|Classes}}   ⤷  Infobox_Class   ⤷  Iconbox   ⤷  Class_Data   ⤷  ListGearForClass   ⤷  ListWeaponsForClass   ⤷  Item_Data   ⤷  ListArmorsForClass   ⤷  Item_Data   ⤷  GenerateDetailsPage   ⤷  Class_Data

Stats Page:

  ⤷  {{:TODO|Stats}}   ⤷  Stats_Data

Dungeon Page:

  ⤷  Transclude   ⤷  {{:Shrines#Shrines}}

Mechanics Page:

  ⤷  MechanicsBar   ⤷  "Template:Topbar/styles.css"

Monsters Page:

  ⤷    ⤷  {{:TODO|Monsters}}

  ⤷    ⤷  RegularMonsterTable

Generate a table header and wraps content in a table.

Template parameters

ParameterDescriptionTypeStatus
Input1

A series of Monster rows.

Stringrequired
  ⤷    ⤷  GenerateMonsterRows

Generate a sequence of monster rows.

Template parameters

ParameterDescriptionTypeStatus
List of Monsters1

{All, Bosses, Subbosses, Normal, Mimics, <Race>}.

Stringrequired
  ⤷    ⤷  GenerateMonsterRow

Generate a table row where each cell contains specific values from Template:Monster_Data

Template parameters

ParameterDescriptionTypeStatus
Input1

Monster name

Stringrequired
  ⤷    ⤷  Iconbox

Displays an image centered upon a box colored by rarity.

Template parameters

ParameterDescriptionTypeStatus
Namename 1

Name of the character/item/weapon

Stringrequired
Rarityrarity

Options: -1, 1, 2, 3, 4, 5, 6, 7

Numbersuggested
Sizesize

Size with px to set width, eg."30px" Size with xpx to set height, eg."x30px"

Stringsuggested
Amountamount

Shows a number on the bottom right corner

Numbersuggested
Image Overrideimage

If not set, uses the image that matches the name

Stringsuggested
Caption Overridecaption

If not set, uses the specified name. Always links to the name. Use "no" to hide the caption

Stringsuggested
Top Texttop

Shown above the caption

Stringsuggested
Prevent Line Breaks?nobr

If enabled, removes the line break, putting the icon and text on a single line. Use 1 to enable

Booleansuggested
Max Widthmaxwidth

If set, constrains the box to the specified width. If not set, uses max-width:initial.

Example
60px
Stringsuggested
  ⤷    ⤷  Monster_Data

A switch data structure that contains information on Monsters. If proper arguments are not passed, returns an empty string.

Template parameters

ParameterDescriptionTypeStatus
Switch level 11

{<List>, Policies, <Monster>}

Stringsuggested
Switch level 22

Policies: {<Policy>}. <Monster>: {ActionSpeed, Boss, Miniboss, Drops, XP, AP, HP, Move, DamageReductions, Damages, Impacts, Statuses, Races}

Stringsuggested
Switch level 33

Drops:{<DropInstance>}. DamageReductions: {<Reductions>}. Damages: {<AttackNames>}. Impacts: {<AttackNames>}. Statuses: {<Status>}. Races: {<Race>}.

Stringsuggested
Artifacts Page:

  ⤷  {{:TODO|Weapons}}   ⤷  GenerateWeaponInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox   ⤷  {{:Droptable: [Insert Artifact Name]}}

Weapons Page:

  ⤷  {{:TODO|Weapons}}   ⤷  {{:Swords}} / ... / {{:Shields}}   ⤷  WeaponTable   ⤷  GenerateWeaponRows   ⤷  Item_Data   ⤷  GenerateWeaponRow   ⤷  Item_Data   ⤷  Iconbox

Armors Page:

  ⤷  {{:TODO|Armors}}   ⤷  {{:Head}} / ... / {{:Back}}   ⤷  ArmorTable   ⤷  GenerateArmorRows   ⤷  Item_Data   ⤷  GenerateArmorRow   ⤷  Item_Data   ⤷  Iconbox

Accessories Page:

  ⤷  {{:TODO|Jewelry}}   ⤷  Iconbox

Consumables Page:

  ⤷  {{:TODO|Consumables}}   ⤷  Iconbox

Utility Page:

  ⤷  {{:TODO|Utility}}   ⤷  Iconbox

Containers Page:

  ⤷  {{:TODO|Containers}}   ⤷  Iconbox

Treasures Page:

  ⤷  WIP   ⤷  Iconbox   ⤷  {{:Quest_Items}}   ⤷  {{:TODO|Loottables}}   ⤷  Iconbox

Materials Page:

  ⤷  Iconbox   ⤷  {{:Quest_Items}}   ⤷  {{:TODO|Loottables}}   ⤷  Iconbox

Crafting Page:

  ⤷  {{:TODO|Crafting}}   ⤷  CraftingTable   ⤷  GenerateCraftingRows   ⤷  Crafting_Data   ⤷  GenerateCraftingRow   ⤷  Crafting_Data   ⤷  Iconbox

Merchants Page:

  ⤷  {{:TODO|Merchants}}   ⤷  WIP   ⤷  {{:Quests}}   ⤷  TabToggle   ⤷  Transclude   ⤷  {{:Crafting}}   ⤷  {{:TODO|Crafting}}   ⤷  CraftingTable   ⤷  GenerateCraftingRows   ⤷  Crafting_Data   ⤷  GenerateCraftingRow   ⤷  Crafting_Data   ⤷  Iconbox

Ranks Page:
Maps Page: Enchantments Page:

  ⤷  {{:TODO|Enchantments}}

Shrines Page: Portals Page: Patch Notes Page: Guides Page:


The main pages link to individual item pages.

[Insert Monster Name] Page:

  ⤷  GenerateMonsterInfobox   ⤷  {{:TODO|Monsters}}   ⤷  Monster_Data   ⤷  Tabs   ⤷  Infobox   ⤷  Iconbox   ⤷  ListMonsterTypes   ⤷  GenerateLootDrops   ⤷  {{:TODO|Loottables}}   ⤷  Monster_Data   ⤷  TabToggle   ⤷  ListLootDrops   ⤷  Monster_Data   ⤷  TabToggle   ⤷  {{:LootTable: [Insert Monster Name]}}   ⤷  LoottableTable   ⤷  Tooltip   ⤷  Iconbox

[Insert Weapon Name] Page:

  ⤷  AutoGenerateWeaponTabs   ⤷  {{:TODO|Weapons}}   ⤷  GenerateWeaponTabs   ⤷  Tabs   ⤷  GenerateWeaponInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox   ⤷  Sword / ... / Shields   ⤷  GenerateHitbox   ⤷  Item_Data   ⤷  GenerateWeaponCombo   ⤷  Item_Data   ⤷  GenerateBlock   ⤷  Item_Data   ⤷  ActionMoveSlow   ⤷  Item_Data   ⤷  GenerateArtifact   ⤷  Item_Data   ⤷  GenerateDropTables   ⤷  Item_Data   ⤷  {{:TODO|Loottables}}   ⤷  TabToggle   ⤷  {{:Droptable: [Insert Weapon Name]}}   ⤷  Weapons

[Insert Armor Name] Page:

  ⤷  AutoGenerateArmorTabs   ⤷  {{:TODO|Armors}}   ⤷  GenerateArmorTabs   ⤷  Tabs   ⤷  GenerateArmorInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox   ⤷  Item_Data   ⤷  GenerateDropTables   ⤷  Item_Data   ⤷  {{:TODO|Loottables}}   ⤷  TabToggle   ⤷  {{:Droptable: [Insert Weapon Name]}}   ⤷  Armors

[Insert Accessory Name] Page:

  ⤷  AutoGenerateAccessoryTabs   ⤷  {{:TODO|Accessory}}   ⤷  GenerateAccessoryTabs   ⤷  Tabs   ⤷  GenerateAccessoryInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox   ⤷  Necklaces/Pendants / Rings   ⤷  {{:Droptable: [Insert Accessory Name]}}

[Insert Consumable Name] Page:

  ⤷  Infobox   ⤷  Iconbox   ⤷  Consumables


  ⤷  {{:Droptable: [Insert Consumable Name]}}

[Insert Utility Name] Page:

  ⤷  Infobox   ⤷  Iconbox   ⤷  Utilities   ⤷  History

  ⤷  AutoGenerateUtilityTabs   ⤷  {{:TODO|Utility}}   ⤷  GenerateUtilityTabs   ⤷  Tabs   ⤷  GenerateUtilityInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox

[Insert Misc Name] Page:

  ⤷  AutoGenerateMiscTabs   ⤷  {{:TODO|Misc}}   ⤷  GenerateMiscTabs   ⤷  Tabs   ⤷  GenerateMiscInfobox   ⤷  Item_Data   ⤷  Infobox   ⤷  Iconbox