Difference between revisions of "Template:Classes table"

From Basin Wiki
Jump to navigation Jump to search
(Undo revision 70800 by Trang Oul (talk))
Tag: Undo
 
(3 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: <nowiki>{{Class table|type=number}}</nowiki> or <nowiki>{{Class table|type=text}}</nowiki>
+
* 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)]]
Line 9: Line 10:
 
  | #default = {{Number table}} width=75%
 
  | #default = {{Number table}} width=75%
 
}}
 
}}
−
{{#if:{{{itemonly|}}}|
+
{{#ifexpr:{{{itemonly|0}}}|
 
{{!}}-
 
{{!}}-
 
!width=11% align=center{{!}}[[Amazon]]
 
!width=11% align=center{{!}}[[Amazon]]
Line 19: Line 20:
 
!width=11% align=center{{!}}[[Sorceress]]
 
!width=11% align=center{{!}}[[Sorceress]]
 
!width=11% align=center{{!}}[[Warlock (Diablo II)|Warlock]]
 
!width=11% align=center{{!}}[[Warlock (Diablo II)|Warlock]]
−
!width=11% align=center{{!}}item only
+
!width=11% align=center{{!}}Item only
 
|
 
|
 
{{!}}-
 
{{!}}-

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