From Dark and Darker Wiki

m (uncommented copy of /Template_Hierarchy)
(tabtoggle example)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Color Legend:<div style="white-space:pre">&#9;<span style="color:#c58a30">Template Calls</span>
<tabber>
&#9;<span style="color:#8229d3">Transclusion Calls</span>
|-|Tab1=
&#9;<span style="color:white">Links to non-template and non-transcluded pages, or plain text.</span>
content1
</div>The text of the hierarchy nodes links to the template page itself.<br>
|-|Tab2=
For Template nodes, the leading arrow links to the template edit page.<br><br>
content2
|-|{{TabNameTest}}=
content3
</tabber>


-------
The main pages use the following template and transclusion structures:


Temporarily disabling this page as it is out of date.
{{TabToggle|1|Tab1}}
{| class="wikitable" cellspacing="0" style="text-align:left; white-space:pre;"
{{TabToggle|2|Tab2}}
|- style="vertical-align:top;"
{{TabToggle|3|{{TabNameTest}}}}
|Beginners Guide Page:


| {{NodeMarkup|Classes|link=t|no_arrow=t}} Page:
<div class="1-data All-data" style="display:none;">
{{NodeMarkup|TODO|Classes|transclusion=t}}
content1</div>
{{NodeMarkup|Infobox_Class}}
<div class="2-data All-data" style="display:none;">
&#9;{{NodeMarkup|Iconbox}}
content2</div>
&#9;{{NodeMarkup|Class_Data}}
<div class="3-data All-data" style="display:none;">
{{NodeMarkup|AutoGenerateGearTable}}
content3</div>
&#9;{{NodeMarkup|HyperlinkListElements}}
&#9;{{NodeMarkup|Item_Data}}
&#9;{{NodeMarkup|FilterListForClass}}
&#9;&#9;{{NodeMarkup|Weapon_Data}}
&#9;&#9;{{NodeMarkup|Armor_Data}}
{{NodeMarkup|GenerateDetailsPage}}
&#9;{{NodeMarkup|Class_Data}}
 
| {{NodeMarkup|Stats|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Stats|transclusion=t}}
{{NodeMarkup|Stats_Data}}
 
| {{NodeMarkup|Dungeon|link=t|no_arrow=t}} Page:
{{NodeMarkup|Transclude}}
{{NodeMarkup|Shrines#Shrines|transclusion=t}}
 
| {{NodeMarkup|Mechanics|link=t|no_arrow=t}} Page:
{{NodeMarkup|MechanicsBar}}
&#9;"{{NodeMarkup|Template:Topbar/styles.css|link=t|no_arrow=t}}"
 
| {{NodeMarkup|Monsters|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Monsters|transclusion=t}}
{{NodeMarkup|RegularMonsterTable}}
&#9;{{NodeMarkup|GenerateMonsterRows}}
&#9;&#9;{{NodeMarkup|GenerateMonsterRow}}
&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;{{NodeMarkup|Monster_Data}}
 
|- style="vertical-align: top; margin-left:5px;"
| {{NodeMarkup|Artifacts|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Weapons|transclusion=t}}
{{NodeMarkup|GenerateWeaponInfobox}}
&#9;{{NodeMarkup|Weapon_Data}}
&#9;{{NodeMarkup|Infobox}}
&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
{{NodeMarkup|2=Droptable:[Artifact Name]|transclusion=t}}
 
|{{NodeMarkup|Weapons|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Weapons|transclusion=t}}
{{NodeMarkup|Shields|transclusion=t}} / ...
&#9;{{NodeMarkup|WeaponTable}}
&#9;{{NodeMarkup|GenerateWeaponRows}}
&#9;&#9;{{NodeMarkup|Item_Data}}
&#9;&#9;{{NodeMarkup|GenerateWeaponRow}}
&#9;&#9;&#9;{{NodeMarkup|Weapon_Data}}
&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
 
|{{NodeMarkup|Armors|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Armors|transclusion=t}}
{{NodeMarkup|Back|transclusion=t}} / ...
&#9;{{NodeMarkup|ArmorTable}}
&#9;{{NodeMarkup|GenerateArmorRows}}
&#9;&#9;{{NodeMarkup|Item_Data}}
&#9;&#9;{{NodeMarkup|GenerateArmorRow}}
&#9;&#9;&#9;{{NodeMarkup|Armor_Data}}
&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
 
| {{NodeMarkup|Accessories|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Jewelry|transclusion=t}}
{{NodeMarkup|Iconbox}}
 
| {{NodeMarkup|Consumables|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Consumables|transclusion=t}}
{{NodeMarkup|Iconbox}}
 
| {{NodeMarkup|Utilities|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Utility|transclusion=t}}
{{NodeMarkup|Iconbox}}
 
|- style="vertical-align: top; margin-left:5px;"
| {{NodeMarkup|Containers|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Containers|transclusion=t}}
{{NodeMarkup|Iconbox}}
 
|{{NodeMarkup|Treasures|link=t|no_arrow=t}} Page:
{{NodeMarkup|WIP}}
{{NodeMarkup|Iconbox}}
{{NodeMarkup|Quest_Items|transclusion=t}}
&#9;{{NodeMarkup|TODO|Loottables|transclusion=t}}
&#9;{{NodeMarkup|Iconbox}}
 
|{{NodeMarkup|Materials|link=t|no_arrow=t}} Page:
{{NodeMarkup|Iconbox}}
{{NodeMarkup|Quest_Items|transclusion=t}}
&#9;{{NodeMarkup|TODO|Loottables|transclusion=t}}
&#9;{{NodeMarkup|Iconbox}}
 
|{{NodeMarkup|Crafting|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Crafting|transclusion=t}}
{{NodeMarkup|CraftingTable}}
{{NodeMarkup|GenerateCraftingRows}}
&#9;{{NodeMarkup|Merchant_Data}}
&#9;{{NodeMarkup|GenerateCraftingRow}}
&#9;&#9;{{NodeMarkup|Merchant_Data}}
&#9;&#9;{{NodeMarkup|Iconbox}}
 
|{{NodeMarkup|Merchants|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Merchants|transclusion=t}}
{{NodeMarkup|WIP}}
{{NodeMarkup|Quests|transclusion=t}}
&#9;{{NodeMarkup|TabToggle}}
&#9;{{NodeMarkup|Transclude}}
{{NodeMarkup|Crafting|transclusion=t}}
&#9;{{NodeMarkup|TODO|Crafting|transclusion=t}}
&#9;{{NodeMarkup|CraftingTable}}
&#9;{{NodeMarkup|GenerateCraftingRows}}
&#9;&#9;{{NodeMarkup|Merchant_Data}}
&#9;&#9;{{NodeMarkup|GenerateCraftingRow}}
&#9;&#9;&#9;{{NodeMarkup|Merchant_Data}}
&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
 
|{{NodeMarkup|Ranks|link=t|no_arrow=t}} Page:
 
|- style="vertical-align: top; margin-left:5px;"
|Maps Page:
 
|{{NodeMarkup|Enchantments|link=t|no_arrow=t}} Page:
{{NodeMarkup|TODO|Enchantments|transclusion=t}}
 
|{{NodeMarkup|Shrines|link=t|no_arrow=t}} Page:
|{{NodeMarkup|Portals|link=t|no_arrow=t}} Page:
|{{NodeMarkup|Patch Notes|link=t|no_arrow=t}} Page:
|{{NodeMarkup|Guides|link=t|no_arrow=t}} Page:
|}
 
 
The main pages link to individual item pages.
{| class="wikitable" cellspacing="0" style="text-align:left; white-space:pre;"
|- style="vertical-align:top;"
| <span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:GenerateLootDrops&limit=500 <span style="color:white">Individual Monster Page:</span>]<span>
{{NodeMarkup|GenerateMonsterInfobox}}
&#9;{{NodeMarkup|TODO|Monsters|transclusion=t}}
&#9;{{NodeMarkup|Monster_Data}}
&#9;{{NodeMarkup|Tabs}}
&#9;{{NodeMarkup|Infobox}}
&#9;&#9;{{NodeMarkup|Iconbox}}
{{NodeMarkup|GenerateLootDrops}}
&#9;{{NodeMarkup|TODO|Loottables|transclusion=t}}
&#9;{{NodeMarkup|Monster_Data}}
&#9;{{NodeMarkup|TabToggle}}
&#9;{{NodeMarkup|ListLootDrops}}
&#9;&#9;{{NodeMarkup|Monster_Data}}
&#9;&#9;{{NodeMarkup|TabToggle}}
&#9;&#9;{{NodeMarkup|2=LootTable:[Monster Name]|transclusion=t}}
&#9;&#9;&#9;{{NodeMarkup|LoottableTable}}
&#9;&#9;&#9;{{NodeMarkup|Tooltip}}
&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:AutoGenerateWeaponTabs&limit=500 <span style="color:white">Individual Weapon Page:</span>]<span>
{{NodeMarkup|AutoGenerateWeaponTabs}}
&#9;{{NodeMarkup|TODO|Weapons|transclusion=t}}
&#9;{{NodeMarkup|GenerateWeaponTabs}}
&#9;&#9;{{NodeMarkup|Tabs}}
&#9;&#9;{{NodeMarkup|GenerateWeaponInfobox}}
&#9;&#9;&#9;{{NodeMarkup|Weapon_Data}}
&#9;&#9;&#9;{{NodeMarkup|Infobox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
{{NodeMarkup|Sword}} / ... / {{NodeMarkup|Shields|no_arrow=t}}
{{NodeMarkup|GenerateHitbox}}
&#9;{{NodeMarkup|Weapon_Data}}
{{NodeMarkup|GenerateWeaponCombo}}
&#9;{{NodeMarkup|Weapon_Data}}
{{NodeMarkup|GenerateBlock}}
&#9;{{NodeMarkup|Weapon_Data}}
{{NodeMarkup|ActionMoveSlow}}
&#9;{{NodeMarkup|Weapon_Data}}
{{NodeMarkup|GenerateArtifact}}
&#9;{{NodeMarkup|Weapon_Data}}
{{NodeMarkup|GenerateDropTables}}
&#9;{{NodeMarkup|Weapon_Data}}
&#9;{{NodeMarkup|TODO|Loottables|transclusion=t}}
&#9;{{NodeMarkup|TabToggle}}
&#9;{{NodeMarkup|2=Droptable:[Weapon Name]|transclusion=t}}
{{NodeMarkup|Weapons}}
&#9;{{NodeMarkup|HyperlinkListElements}}
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:AutoGenerateArmorTabs&limit=500 <span style="color:white">Individual Armor Page:</span>]<span>
{{NodeMarkup|AutoGenerateArmorTabs}}
&#9;{{NodeMarkup|TODO|Armors|transclusion=t}}
&#9;{{NodeMarkup|GenerateArmorTabs}}
&#9;&#9;{{NodeMarkup|Tabs}}
&#9;&#9;{{NodeMarkup|GenerateArmorInfobox}}
&#9;&#9;&#9;{{NodeMarkup|Armor_Data}}
&#9;&#9;&#9;{{NodeMarkup|Infobox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
{{NodeMarkup|Armor_Data}}
{{NodeMarkup|GenerateDropTables}}
&#9;{{NodeMarkup|Weapon_Data}}
&#9;{{NodeMarkup|TODO|Loottables|transclusion=t}}
&#9;{{NodeMarkup|TabToggle}}
&#9;{{NodeMarkup|2=Droptable:[Weapon Name]|transclusion=t}}
{{NodeMarkup|Armors}}
&#9;{{NodeMarkup|HyperlinkListElements}}
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:AutoGenerateAccessoryTabs&limit=500 <span style="color:white">Individual Accessory Page:</span>]<span>
{{NodeMarkup|AutoGenerateAccessoryTabs}}
&#9;{{NodeMarkup|TODO|Accessory|transclusion=t}}
&#9;{{NodeMarkup|GenerateAccessoryTabs}}
&#9;&#9;{{NodeMarkup|Tabs}}
&#9;&#9;{{NodeMarkup|GenerateAccessoryInfobox}}
&#9;&#9;&#9;{{NodeMarkup|Accessory_Data}}
&#9;&#9;&#9;{{NodeMarkup|Infobox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
{{NodeMarkup|Necklaces/Pendants}} / {{NodeMarkup|Rings|no_arrow=t}}
{{NodeMarkup|2=Droptable:[Accessory Name]|transclusion=t}}</span>
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:Consumables&limit=500 <span style="color:white">Individual Consumable Page:</span>]<span>
{{NodeMarkup|Infobox}}
&#9;{{NodeMarkup|Iconbox}}
{{NodeMarkup|Consumables}}
{{NodeMarkup|2=Droptable:[Consumable Name]|transclusion=t}}
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:AutoGenerateUtilityTabs&limit=500 <span style="color:white">Individual Utility Page:</span>]<span>
{{NodeMarkup|Infobox}}
&#9;{{NodeMarkup|Iconbox}}
{{NodeMarkup|Utilities}}
 
{{NodeMarkup|AutoGenerateUtilityTabs}}
&#9;{{NodeMarkup|TODO|Utility|transclusion=t}}
&#9;{{NodeMarkup|GenerateUtilityTabs}}
&#9;&#9;{{NodeMarkup|Tabs}}
&#9;&#9;{{NodeMarkup|GenerateUtilityInfobox}}
&#9;&#9;&#9;{{NodeMarkup|Utility_Data}}
&#9;&#9;&#9;{{NodeMarkup|Infobox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
 
 
 
|<span class="plainlink">[https://darkanddarker.wiki.spellsandguns.com/index.php?title=Special:WhatLinksHere/Template:AutoGenerateMiscTabs&limit=500 <span style="color:white">Individual Misc Page:</span>]<span>
{{NodeMarkup|AutoGenerateMiscTabs}}
&#9;{{NodeMarkup|TODO|Misc|transclusion=t}}
&#9;{{NodeMarkup|GenerateMiscTabs}}
&#9;&#9;{{NodeMarkup|Tabs}}
&#9;&#9;{{NodeMarkup|GenerateMiscInfobox}}
&#9;&#9;&#9;{{NodeMarkup|Misc_Data}}
&#9;&#9;&#9;{{NodeMarkup|Infobox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|Iconbox}}
&#9;&#9;&#9;&#9;{{NodeMarkup|IconboxInventorySize}}
|}

Latest revision as of 14:58, 25 September 2024

content1

content2
content3


Tab1
Tab2
MyCoolTabName