Difference between revisions of "Template:Class navbox"
Brokenstorm (talk | contribs) m |
|||
(29 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {|style="width: | + | <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 | ||
Line 14: | Line 253: | ||
[[Sorceress]]<br> | [[Sorceress]]<br> | ||
|valign="top" width="50%"| | |valign="top" width="50%"| | ||
− | [[Barbarian]] (e)<br> | + | [[Barbarian (Diablo I)|Barbarian]] (e)<br> |
[[Bard]] (e)<br> | [[Bard]] (e)<br> | ||
[[Monk]] (e) | [[Monk]] (e) | ||
− | [[ | + | [[Rogue]]<br> |
[[Sorcerer]]<br> | [[Sorcerer]]<br> | ||
[[Warrior]]<br> | [[Warrior]]<br> | ||
+ | [[D1 NPCs|Diablo I NPCs]] | ||
|- | |- | ||
− | |colspan="2" style="font-size: | + | |colspan="2" style="font-size:85%;"|(e) = Expansion class<!--Edit |
− | | | + | |- |
− | + | |colspan="2" style="font-size:85%;"|[http://diablo2.diablowiki.net/index.php?title=Template:{{{name|{{PAGENAME}}}}}_Skills&action=edit {{{name|{{PAGENAME}}}}} Skills]--> | |
+ | |} | ||
+ | |||
− | <nowiki>{{</nowiki>Class navbox <nowiki>|"I" or "II"</nowiki> <nowiki>}}</nowiki> | + | <nowiki>{{</nowiki>Class navbox |
+ | <nowiki>|"I" or "II"</nowiki> | ||
+ | <nowiki>|[[Category:Diablo I classes]] (or nothing)</nowiki> | ||
+ | <nowiki>}}</nowiki> | ||
</noinclude> | </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 }}
Classes of the Diablo Games [e] Diablo III Diablo II LoD Diablo Hellfire Class Info Skill Info Fan-classes Fan-skills | ||||
---|---|---|---|---|
Diablo III Classes |
| |||
Diablo III Classes |
| |||
Diablo III Classes |
| |||
Diablo III Classes |
| |||
Diablo III Classes |
| |||
Diablo II Classes |
| |||
Diablo II Classes |
| |||
Diablo II Classes |
| |||
Diablo II Classes |
| |||
Diablo II Classes |
| |||
Diablo II Classes |
| |||
Diablo II: LoD Classes |
| |||
Diablo II: LoD Classes |
| |||
Diablo II: LoD Classes |
| |||
Diablo I Classes |
| |||
Diablo I Classes |
| |||
Hellfire Classes |
| |||
Hellfire Classes |
| |||
Class Info | Special: Archivist (April 1st) - Dervish (rejected) Archtypes: Caster - Melee - Ranged | DPS - Healer - Summon/Spawn - Tank - Utility | |||
Skill Info D3 Skills | ||||
Fan-made Classes | ||||
(U) = Unfinished | ||||
Fan-made Skills | ||||
| ||||
| ||||
|
Barbarian Skills [e] |
---|
Combat Masteries Skills: Sword Mastery • Axe Mastery • Mace Mastery • Polearm Mastery • Throwing Mastery • Spear Mastery • Increased Stamina • Iron Skin • Increased Speed • Natural Resistance |
Combat Skills: Bash • Leap • Double Swing • Stun • Double Throw • Leap Attack • Concentrate • Frenzy • Whirlwind • Berserk |
Warcry Skills: Howl • Find Potion • Taunt • Shout • Find Item • Battle Cry • Battle Orders • Grim Ward • War Cry • Battle Command |
Paladin Skills [e] |
---|
Combat Skills: Sacrifice • Smite • Holy Bolt • Zeal • Charge • Vengeance • Blessed Hammer • Conversion • Holy Shield • Fist of the Heavens |
Defensive Auras: Prayer • Resist Fire • Resist Cold • Resist Lightning • Defiance • Cleansing • Vigor • Meditation • Redemption • Salvation |
Offensive Auras: Might • Holy Fire • Thorns • Blessed Aim • Concentration • Holy Freeze • Holy Shock • Sanctuary • Fanaticism • Conviction |
Sorceress Skills [e] |
---|
Cold Skills: Ice Bolt • Frozen Armor • Frost Nova • Ice Blast • Shiver Armor • Glacial Spike • Blizzard • Chilling Armor • Frozen Orb • Cold Mastery |
Fire Skills: Fire Bolt • Warmth • Inferno • Blaze • Fireball • Fire Wall • Enchant • Meteor • Fire Mastery • Hydra |
Lightning Skills: Charged Bolt • Telekinesis • Static Field • Lightning • Nova • Chain Lightning • Teleport • Thunder Storm • Energy Shield • Lightning Mastery |
Druid Skills [e] |
---|
Elemental Skills: Firestorm • Molten Boulder • Arctic Blast • Fissure • Cyclone Armor • Twister • Volcano • Tornado • Hurricane • Armageddon |
Shapeshifting Skills: Werewolf • Lycanthropy • Werebear • Maul • Feral Rage • Fire Claws • Rabies • Shock Wave • Hunger • Fury |
Summoning Skills: Raven • Poison Creeper • Oak Sage • Summon Spirit Wolf • Carrion Vine • Heart of Wolverine • Summon Dire Wolf • Solar Creeper • Spirit of Barbs • Summon Grizzly |
Diablo I Spells [e] |
---|
Hellfire Spells [e] |
---|
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 |
Barbarian (e) |
(e) = Expansion class |
{{Class navbox |"I" or "II" |[[Category:Diablo I classes]] (or nothing) }}