Difference between revisions of "Template:Classes table"

From Basin Wiki
Jump to navigation Jump to search
(only headers centered)
(Undo revision 70800 by Trang Oul (talk))
Tag: Undo
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
−
*Used to apply consistent format to class tables
+
* Used to apply consistent format to class tables.
−
 
+
* Usage: <code><nowiki>{{Class table|type=number}}</nowiki></code> or <code><nowiki>{{Class table|type=text}}</nowiki></code>.
−
 
+
* To add a column "Item only", use <code><nowiki>{{Class table|itemonly=1}}</nowiki></code>
 
[[Category:Templates (Diablo II)]]
 
[[Category:Templates (Diablo II)]]
 
[[Category:Templates (Table)]]
 
[[Category:Templates (Table)]]
−
 
+
</noinclude>
−
 
+
{{#switch: {{{type|number}}}
−
</noinclude>{{Number table}} width=75%
+
| text = {{Text table}} width=75%
−
|-
+
| #default = {{Number table}} width=75%
−
!width=12% align=center|[[Amazon]]
+
}}
−
!width=13% align=center|[[Assassin]]
+
{{#ifexpr:{{{itemonly|0}}}|
−
!width=12% align=center|[[Barbarian (Diablo II)|Barbarian]]
+
{{!}}-
−
!width=13% align=center|[[Druid (Diablo II)|Druid]]
+
!width=11% align=center{{!}}[[Amazon]]
−
!width=12% align=center|[[Necromancer]]
+
!width=11% align=center{{!}}[[Assassin]]
−
!width=13% align=center|[[Paladin (Diablo II)|Paladin]]
+
!width=11% align=center{{!}}[[Barbarian (Diablo II)|Barbarian]]
−
!width=12% align=center|[[Sorceress]]
+
!width=11% align=center{{!}}[[Druid (Diablo II)|Druid]]
−
!width=13% align=center|[[Warlock (Diablo II)|Warlock]]
+
!width=11% align=center{{!}}[[Necromancer]]
 +
!width=11% align=center{{!}}[[Paladin (Diablo II)|Paladin]]
 +
!width=11% align=center{{!}}[[Sorceress]]
 +
!width=11% align=center{{!}}[[Warlock (Diablo II)|Warlock]]
 +
!width=11% align=center{{!}}Item only
 +
|
 +
{{!}}-
 +
!width=12% align=center{{!}}[[Amazon]]
 +
!width=13% align=center{{!}}[[Assassin]]
 +
!width=12% align=center{{!}}[[Barbarian (Diablo II)|Barbarian]]
 +
!width=13% align=center{{!}}[[Druid (Diablo II)|Druid]]
 +
!width=12% align=center{{!}}[[Necromancer]]
 +
!width=13% align=center{{!}}[[Paladin (Diablo II)|Paladin]]
 +
!width=12% align=center{{!}}[[Sorceress]]
 +
!width=13% align=center{{!}}[[Warlock (Diablo II)|Warlock]]
 +
}}

Latest revision as of 19:19, 24 November 2026

  • Used to apply consistent format to class tables.
  • Usage: {{Class table|type=number}} or {{Class table|type=text}}.
  • To add a column "Item only", use {{Class table|itemonly=1}}
Amazon Assassin Barbarian Druid Necromancer Paladin Sorceress Warlock