Difference between revisions of "Template:Class navbox"
m |
Brokenstorm (talk | contribs) m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 37: | Line 37: | ||
− | + | </noinclude><!-- | |
− | |||
− | |||
− | <!-- | ||
--><div class="NavTabContainer"><!-- | --><div class="NavTabContainer"><!-- | ||
--><table align="center" class="navbox"><!-- | --><table align="center" class="navbox"><!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
− | --> <th colspan="5"> | + | --> <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 style="font-size:9px; display: block; margin: 10px 0px -4px 0px;"><!-- | ||
--> <span class="NavTabHeader {{#if: {{{1|}}} || SelectedNavTabHeader}} {{#if: <!-- | --> <span class="NavTabHeader {{#if: {{{1|}}} || SelectedNavTabHeader}} {{#if: <!-- | ||
Line 113: | Line 110: | ||
--> <tr class="NavTabContent" title="Class"><!-- | --> <tr class="NavTabContent" title="Class"><!-- | ||
--> <th width="15%" style="font-size:10px;"><!-- | --> <th width="15%" style="font-size:10px;"><!-- | ||
− | --> | + | --> {{iw|Class Class Info}}<!-- Class |
--> </th><!-- | --> </th><!-- | ||
--> <td colspan="4"><!-- | --> <td colspan="4"><!-- | ||
-->'''Special:''' <!-- | -->'''Special:''' <!-- | ||
− | --> | + | -->{{iw|Archivist Archivist}} (April 1st) - <!-- |
− | --> | + | -->{{iw|Dervish Dervish}} (rejected) <!-- |
--><br /><br /><!-- | --><br /><br /><!-- | ||
− | -->''' | + | -->'''{{iw|Archtype Archtypes}}:''' <!-- |
− | --> | + | -->{{iw|Caster Caster}} - <!-- |
− | --> | + | -->{{iw|Melee Melee}} - <!-- |
− | --> | + | -->{{iw|Range Ranged}} <!-- |
--><nowiki>|</nowiki> <!-- | --><nowiki>|</nowiki> <!-- | ||
− | --> | + | -->{{iw|Damage_Per_Second DPS}} - <!-- |
− | --> | + | -->{{iw|Healer Healer}} - <!-- |
− | --> | + | -->{{iw|Summoner Summon/Spawn}} - <!-- |
− | --> | + | -->{{iw|Tank Tank}} - <!-- |
− | --> | + | -->{{iw|Utility Utility}}<!-- |
--><br /><!-- | --><br /><!-- | ||
--> </td><!-- | --> </td><!-- | ||
Line 137: | Line 134: | ||
--> <th width="15%" style="font-size:10px;"><!-- | --> <th width="15%" style="font-size:10px;"><!-- | ||
--> [[Skill|Skill Info]]<!-- Skills | --> [[Skill|Skill Info]]<!-- Skills | ||
+ | --> <br /><!-- | ||
+ | --> ''{{iw|Skill D3 Skills}}''<!-- | ||
--> </th><!-- | --> </th><!-- | ||
--> <td colspan="1"><!-- | --> <td colspan="1"><!-- | ||
--> | --> | ||
* [[Skill|Skills (general)]] | * [[Skill|Skills (general)]] | ||
− | * | + | * ''{{iw|Skill (Diablo III)}}'' |
+ | |||
<!-- | <!-- | ||
--> </td><!-- | --> </td><!-- | ||
--> <td colspan="1"><!-- | --> <td colspan="1"><!-- | ||
--> | --> | ||
− | * | + | * {{iw|Rune Skill rune (Diablo III)}} |
− | * | + | * {{iw|Active_skill Active skills}} |
<!-- | <!-- | ||
--> </td><!-- | --> </td><!-- | ||
--> <td colspan="1"><!-- | --> <td colspan="1"><!-- | ||
--> | --> | ||
− | * | + | * {{iw|Passive_skill Passive skills}} |
+ | * {{iw|Signature_skill Signature skills}} | ||
<!-- | <!-- | ||
--> </td><!-- | --> </td><!-- | ||
--> <td colspan="1"><!-- | --> <td colspan="1"><!-- | ||
--> | --> | ||
− | * | + | * {{iw|Fan_skill Fan-made skills}} |
<!-- | <!-- | ||
--> </td><!-- | --> </td><!-- | ||
Line 196: | Line 197: | ||
--><div class="NavTabContent" title="Wizard">{{Skill navbox Wizard}}</div><!-- | --><div class="NavTabContent" title="Wizard">{{Skill navbox Wizard}}</div><!-- | ||
− | --><div class="NavTabContent" title="Amazon">{{ | + | --><div class="NavTabContent" title="Amazon">{{Skill_navbox_amazon_old}}</div><!-- |
− | --><div class="NavTabContent" title="D2_Barbarian">{{ | + | --><div class="NavTabContent" title="D2_Barbarian">{{Skill_navbox_barbarian_old}}</div><!-- |
− | --><div class="NavTabContent" title="Necromancer">{{ | + | --><div class="NavTabContent" title="Necromancer">{{Skill_navbox_necromancer_old}}</div><!-- |
− | --><div class="NavTabContent" title="Paladin">{{ | + | --><div class="NavTabContent" title="Paladin">{{Skill_navbox_paladin_old}}</div><!-- |
− | --><div class="NavTabContent" title="Sorceress">{{ | + | --><div class="NavTabContent" title="Sorceress">{{Skill_navbox_sorceress_old}}</div><!-- |
− | --><div class="NavTabContent" title="Assassin">{{ | + | --><div class="NavTabContent" title="Assassin">{{Skill_navbox_assassin_old}}</div><!-- |
− | --><div class="NavTabContent" title="Druid">{{ | + | --><div class="NavTabContent" title="Druid">{{Skill_navbox_druid_old}}</div><!-- |
--><div class="NavTabContent" title="D1_Skills">{{Skill navbox diablo}}</div><!-- | --><div class="NavTabContent" title="D1_Skills">{{Skill navbox diablo}}</div><!-- | ||
Line 209: | Line 210: | ||
--><div class="NavTabContent" title="Hellfire_Skills">{{Skill navbox hellfire}}</div><!-- | --><div class="NavTabContent" title="Hellfire_Skills">{{Skill navbox hellfire}}</div><!-- | ||
--></div><!-- | --></div><!-- | ||
− | --> | + | --><noinclude> |
− | < | ||
− | |||
− | |||
+ | [[Category:Templates]] | ||
− | + | [[Category:Navboxes]] | |
− | |||
− | |||
Line 239: | Line 236: | ||
− | + | ||
+ | |||
{|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;" | {|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> | !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> | ||
Line 267: | Line 265: | ||
|colspan="2" style="font-size:85%;"|[http://diablo2.diablowiki.net/index.php?title=Template:{{{name|{{PAGENAME}}}}}_Skills&action=edit {{{name|{{PAGENAME}}}}} Skills]--> | |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>{{</nowiki>Class navbox |
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 |
| |||
|
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) }}