Template:Trait

From Aethermancer Wiki
Jump to navigation Jump to search

This template uses the Database module to generate displays or tables for traits. All parameters requiring a value are not case-sensitive.

Displays

To generate a trait display, set the first parameter as display. Trait displays are also used as infoboxes (right float) on each individual trait page.

This would create a display listing all traits:
{{ Trait | display }}

Monster Parameter

The monster parameter is used to only show all the possible traits that the specified monster can learn.

This would create a display listing all traits that Shambler can learn:
{{ Trait | display | monster = Shambler }}

Filter Parameters

There are additional parameters that can be used to filter only specific traits. Up to three filter types can be made, each up to three filter values.

  • filterType#: The trait attribute, such as maverick, types, and category. (# - 1, 2, 3)
  • value#: The desired value of the attribute. Required when there is a filter type. (# - 1, 2, 3)
  • orValue##: The other desired value of the attribute. Optional. (## - 11, 12, 21, 22, 31, 32)
This would create a display listing all non-Maverick traits:
{{ Trait | display
| filterType1 = maverick | value1 = false
}}

This would create a display listing all traits assigned with either the Critical, Purge, or Sidekick types:
{{ Trait | display
| filterType1 = types | value1 = critical | orValue11 = purge | orValue12 = sidekick
}}

This would create a display listing only Maverick traits that Samebito can learn:
{{ Trait | display | monster = Samebito
| filterType1 = maverick | value1 = true
}}

This would create a display listing only Maverick traits assigned with the Aether type:
{{ Trait | display
| filterType1 = maverick | value1 = true
| filterType2 = types    | value2 = aether
}}

Notes Parameter

If set to true, the notes parameter will show any additional notes of each trait. By default, the notes are hidden.

This display would have the notes visible:
{{ Trait | display | notes = true }}

Tables (Deprecated)

To generate a trait table, set the first parameter as table. Tables have the same parameters as display, such as monster, notes, filterType, value, and orValue. However, it is recommended to use display where possible.

This would create a table listing all traits:
{{ Trait | table }}

Lists

To generate a trait display or table with custom listing (without any specific filters), set the first parameter as displaylist or tablelist, respectively, followed by each trait name.

This would create a table/display that will only list out the given traits (in the same order it is listed):
{{ Trait | displaylist | Outlast | Cosmic Hex | Warlock Party | Aether Breath }}
{{ Trait | tablelist   | Outlast | Cosmic Hex | Warlock Party | Aether Breath }}