Difference between revisions of "Template:Class navbox"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
Line 191: Line 191:
  
 
--></table><!--
 
--></table><!--
--><div class="NavTabContent" title="D3_Barbarian">{{Skill navbox berserker}}</div><!--
+
--><div class="NavTabContent" title="D3_Barbarian">{{Skill navbox Barbarian}}</div><!--
--><div class="NavTabContent" title="D3_Barbarian">{{Skill navbox juggernaut}}</div><!--
 
--><div class="NavTabContent" title="D3_Barbarian">{{Skill navbox battlemaster}}</div><!--
 
 
--><div class="NavTabContent" title="Monk">{{Skill navbox Monk}}</div><!--
 
--><div class="NavTabContent" title="Monk">{{Skill navbox Monk}}</div><!--
--><div class="NavTabContent" title="WD">{{Skill navbox zombie}}</div><!--
+
--><div class="NavTabContent" title="WD">{{Skill navbox WD}}</div><!--
--><div class="NavTabContent" title="WD">{{Skill navbox spirit}}</div><!--
+
--><div class="NavTabContent" title="Wizard">{{Skill navbox Wizard}}</div><!--
--><div class="NavTabContent" title="WD">{{Skill navbox voodoo}}</div><!--
 
--><div class="NavTabContent" title="Wizard">{{Skill navbox conjuring}}</div><!--
 
--><div class="NavTabContent" title="Wizard">{{Skill navbox arcane}}</div><!--
 
--><div class="NavTabContent" title="Wizard">{{Skill navbox storm}}</div><!--
 
  
 
--><div class="NavTabContent" title="Amazon">{{Skill_navbox_amazon}}</div><!--
 
--><div class="NavTabContent" title="Amazon">{{Skill_navbox_amazon}}</div><!--

Revision as of 10:02, 27 July 2010


This template contains both Class and Skill info


Work in progress!

Legend: Just use ONE of these variables:

{{Fan creation navbox
|d3                      Diablo 3 Classes
|D3_Barbarian            
|Monk                    
|WD                      
|Wizard                  
|d2                      Diablo 2 Classes
|Amazon
|D2_Barbarian
|Necromancer
|Paladin
|Sorceress
|lod                     Diablo 2: LoD Classes
|Assassin
|Druid
|d1                      Diablo 1 Classes
|D1_Skills
|hellfire                Diablo 1: Hellfire Classes
|Hellfire_Skills
|Class                   Class info
|Skill                   Skill info
|fan_class               Fan classes
|fan_skill               Fan skills
}}




Idea: Make sub-menus, they just have to show all, including previous menus. If possible... --Leord 23:56, 19 June 2010 (UTC)


How it works:

The main template has one variable that is used to determine what should be shown. Since the tab script can't show multiple titles per tab, the table row for one game's classes needs to be repeated. Instead of copy+pasting it 100 times, it's in another template.

The first variable of that template is to make it different to each class, and in a way, it's only used by the main template. They will always be in the main template as a table row. This type of template has a second variable, it's transferring the variable used on the main article, so that the right content is shown.

In each instance of the secondary template, only the right info is active.




Character Classes [e]
Diablo II Diablo I

Amazon
Assassin (e)
Barbarian
Druid (e) Necromancer
Paladin
Sorceress

Barbarian (e)
Bard (e)
Monk (e) Rogue
Sorcerer
Warrior
Diablo I NPCs

(e) = Expansion class
 {{Class navbox
 |"I" or "II"
 |[[Category:Diablo I classes]] (or nothing)
 }}