Difference between revisions of "Template:Class navbox"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|style="width: 180px; border-collapse: collapse; border: 1px solid #4D0B0B; background: #2D0606; line-height: 10px; font-size: 10px; color: white; text-align: center; float: right; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 20px;"
+
<noinclude>
!colspan="2" style="background: #1A0303; font-size:125%; line-height:125%;" | Character Classes
+
 
 +
 
 +
This [[Help:Template|template]] contains both [[Class]] and [[Skill]] info
 +
 
 +
 
 +
 
 +
Work in progress!
 +
 
 +
'''Legend:''' Just use ONE of these variables:
 +
 
 +
<nowiki>{{Fan creation navbox</nowiki>
 +
|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
 +
<nowiki>}}</nowiki>
 +
 
 +
 
 +
 
 +
</noinclude><!--
 +
--><div class="NavTabContainer"><!--
 +
--><table align="center" class="navbox"><!--
 +
--> <tr><!--
 +
-->  <th colspan="5">{{iw|Class Classes}} of the {{iw|Diablo_game Diablo Games}} <div style="float:right; margin-left: -10px;">{{editlink|Template:Class_navbox|e|diablo2|A|A}}</div><!--
 +
-->  <span style="font-size:9px; display: block; margin: 10px 0px -4px 0px;"><!--
 +
-->    <span class="NavTabHeader {{#if: {{{1|}}} || SelectedNavTabHeader}} {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |D3=X |d3=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="D3" >'''Diablo III'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |D2=X |d2=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="D2" >'''Diablo II'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |LoD=X |lod=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="LoD" >'''LoD'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |D1=X |d1=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="D1" >'''Diablo'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |Hellfire=X |hellfire=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Hellfire" >'''Hellfire'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |Class=X |class=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Class" >'''Class Info'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |Skill=X |skill=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Skill" >'''Skill Info'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |fan_class=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Fan_Class" >'''Fan-classes'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |fan_skill=X }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Fan_Skill" >'''Fan-skills'''</span><!--
 +
-->  </span><!--
 +
-->  </th><!--
 +
--> </tr><!--
 +
 
 +
-->{{Class navbox Diablo III|D3|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo III|D3_Barbarian|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo III|Monk|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo III|WD|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo III|Wizard|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo II|D2}}<!--
 +
 
 +
-->{{Class navbox Diablo II|Amazon|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo II|D2_Barbarian|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo II|Necromancer|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo II|Paladin|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo II|Sorceress|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo LoD|LoD}}<!--
 +
 
 +
-->{{Class navbox Diablo LoD|Assassin|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo LoD|Druid|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo I|D1}}<!--
 +
-->{{Class navbox Diablo I|D1_Skills|{{{1|}}} }}<!--
 +
 
 +
-->{{Class navbox Diablo Hellfire|Hellfire}}<!--
 +
-->{{Class navbox Diablo Hellfire|Hellfire_Skills|{{{1|}}} }}<!--
 +
 
 +
--> <tr class="NavTabContent" title="Class"><!--
 +
-->  <th width="15%" style="font-size:10px;"><!--
 +
-->    {{iw|Class Class Info}}<!--                        Class
 +
-->  </th><!--
 +
-->  <td colspan="4"><!--
 +
-->'''Special:''' <!--
 +
-->{{iw|Archivist Archivist}} (April 1st) - <!--
 +
-->{{iw|Dervish Dervish}} (rejected) <!--
 +
--><br /><br /><!--
 +
-->'''{{iw|Archtype Archtypes}}:''' <!--
 +
-->{{iw|Caster Caster}} - <!--
 +
-->{{iw|Melee Melee}} - <!--
 +
-->{{iw|Range Ranged}} <!--
 +
--><nowiki>|</nowiki> <!--
 +
-->{{iw|Damage_Per_Second DPS}} - <!--
 +
-->{{iw|Healer Healer}} - <!--
 +
-->{{iw|Summoner Summon/Spawn}} - <!--
 +
-->{{iw|Tank Tank}} - <!--
 +
-->{{iw|Utility Utility}}<!--
 +
--><br /><!--
 +
-->  </td><!--
 +
--> </tr><!--
 +
 
 +
--> <tr class="NavTabContent" title="Skill"><!--
 +
-->  <th width="15%" style="font-size:10px;"><!--
 +
-->    [[Skill|Skill Info]]<!--                        Skills
 +
-->    <br /><!--
 +
-->    ''{{iw|Skill D3 Skills}}''<!--
 +
-->  </th><!--
 +
-->  <td colspan="1"><!--
 +
-->
 +
* [[Skill|Skills (general)]]
 +
* ''{{iw|Skill (Diablo III)}}''
 +
 
 +
<!--
 +
-->  </td><!--
 +
-->  <td colspan="1"><!--
 +
-->
 +
* {{iw|Rune Skill rune (Diablo III)}}
 +
* {{iw|Active_skill Active skills}}
 +
<!--
 +
-->  </td><!--
 +
-->  <td colspan="1"><!--
 +
-->
 +
* {{iw|Passive_skill Passive skills}}
 +
* {{iw|Signature_skill Signature skills}}
 +
<!--
 +
-->  </td><!--
 +
-->  <td colspan="1"><!--
 +
-->
 +
* {{iw|Fan_skill Fan-made skills}}
 +
<!--
 +
-->  </td><!--
 +
--> </tr><!--
 +
 
 +
-->{{Fan class navbox}}<!--
 +
 
 +
-->{{Fan skill navbox}}<!--
 +
 
 +
--> <tr class="NavTabContent" title="D3"><!--
 +
-->  <th colspan="5"><!--
 +
-->  <center><!--
 +
-->    Select a class' skills<!--
 +
-->  </center><!--
 +
-->  </th><!--
 +
--> </tr><!--
 +
 
 +
--> <tr class="NavTabContent" title="D2"><!--
 +
-->  <th colspan="5"><!--
 +
-->  <center><!--
 +
-->    Select a class' skills<!--
 +
-->  </center><!--
 +
-->  </th><!--
 +
--> </tr><!--
 +
 
 +
--> <tr class="NavTabContent" title="LoD"><!--
 +
-->  <th colspan="5"><!--
 +
-->  <center><!--
 +
-->    Select a class' skills<!--
 +
-->  </center><!--
 +
-->  </th><!--
 +
--> </tr><!--
 +
 
 +
--></table><!--
 +
--><div class="NavTabContent" title="D3_Barbarian">{{Skill navbox Barbarian}}</div><!--
 +
--><div class="NavTabContent" title="Monk">{{Skill navbox Monk}}</div><!--
 +
--><div class="NavTabContent" title="WD">{{Skill navbox WD}}</div><!--
 +
--><div class="NavTabContent" title="Wizard">{{Skill navbox Wizard}}</div><!--
 +
 
 +
--><div class="NavTabContent" title="Amazon">{{Skill_navbox_amazon_old}}</div><!--
 +
--><div class="NavTabContent" title="D2_Barbarian">{{Skill_navbox_barbarian_old}}</div><!--
 +
--><div class="NavTabContent" title="Necromancer">{{Skill_navbox_necromancer_old}}</div><!--
 +
--><div class="NavTabContent" title="Paladin">{{Skill_navbox_paladin_old}}</div><!--
 +
--><div class="NavTabContent" title="Sorceress">{{Skill_navbox_sorceress_old}}</div><!--
 +
 
 +
--><div class="NavTabContent" title="Assassin">{{Skill_navbox_assassin_old}}</div><!--
 +
--><div class="NavTabContent" title="Druid">{{Skill_navbox_druid_old}}</div><!--
 +
 
 +
--><div class="NavTabContent" title="D1_Skills">{{Skill navbox diablo}}</div><!--
 +
 
 +
--><div class="NavTabContent" title="Hellfire_Skills">{{Skill navbox hellfire}}</div><!--
 +
--></div><!--
 +
--><noinclude>
 +
 
 +
[[Category:Templates]]
 +
 
 +
[[Category:Navboxes]]
 +
 
 +
 
 +
* [http://www.diablowiki.net/index.php?title=Special:Whatlinkshere&target=Template:Class_navbox What links here?]
 +
 
 +
 
 +
 
 +
Idea: Make sub-menus, they just have to show all, including previous menus. If possible... --[[User:Leord|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.
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
{|style="width: 200px; border-collapse: collapse; border: 1px solid #4D0B0B; background: #2D0606; line-height: 10px; font-size: 10px; color: white; text-align: center; float: right; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 20px;"
 +
!colspan="2" style="background: #1A0303; font-size:125%; line-height:125%;" | Character Classes <span style="font-size:80%; font-weight:normal;"><nowiki>[</nowiki><span class="plainlinks">[http://diablo2.diablowiki.net/Template:Class_navbox&action=edit e]</span><nowiki>]</nowiki></span>
 
|-
 
|-
 
!style="background: #1A0303; text-align: center;"|Diablo II
 
!style="background: #1A0303; text-align: center;"|Diablo II
 
!style="background: #1A0303; text-align: center;"|Diablo I
 
!style="background: #1A0303; text-align: center;"|Diablo I
 
|-
 
|-
|valign="top"|
+
|valign="top" width="50%"|
 
[[Amazon]]<br>
 
[[Amazon]]<br>
 +
[[Assassin]] (e)<br>
 
[[Barbarian]]<br>
 
[[Barbarian]]<br>
 +
[[Druid]] (e)
 
[[Necromancer]]<br>
 
[[Necromancer]]<br>
 
[[Paladin]]<br>
 
[[Paladin]]<br>
 
[[Sorceress]]<br>
 
[[Sorceress]]<br>
[[Assassin]] (e)<br>
+
|valign="top" width="50%"|
[[Druid]] (e)
+
[[Barbarian (Diablo I)|Barbarian]] (e)<br>
|valign="top"|
+
[[Bard]] (e)<br>
[[Rouge]]<br>
+
[[Monk]] (e)
 +
[[Rogue]]<br>
 
[[Sorcerer]]<br>
 
[[Sorcerer]]<br>
 
[[Warrior]]<br>
 
[[Warrior]]<br>
[[Barbarian]] (e)<br>
+
[[D1 NPCs|Diablo I NPCs]]
[[Bard]] (e)<br>
+
|-
[[Monk]] (e)
+
|colspan="2" style="font-size:85%;"|(e) = Expansion class<!--Edit
 
|-
 
|-
|colspan="2" style="font-size:80%;"|(e) = Expansion class
+
|colspan="2" style="font-size:85%;"|[http://diablo2.diablowiki.net/index.php?title=Template:{{{name|{{PAGENAME}}}}}_Skills&action=edit {{{name|{{PAGENAME}}}}} Skills]-->
 
|}
 
|}
<noinclude>[[Category:Templates]]<noinclude>
+
 
 +
 
 +
  <nowiki>{{</nowiki>Class navbox
 +
  <nowiki>|"I" or "II"</nowiki>
 +
  <nowiki>|[[Category:Diablo I classes]] (or nothing)</nowiki>
 +
  <nowiki>}}</nowiki>
 +
 
 +
</noinclude>

Latest revision as of 04:49, 3 October 2011


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)
 }}