テンプレート:SpellTypeClassForCss/doc

提供:Noita Wiki
ナビゲーションに移動 検索に移動

This template lets you look up the CSS variable containing the colour for a given spell type, which can be used to format spell backgrounds etc.

{{SpellTypeClassForCss|Projectile}}
{{SpellTypeClassForCss|2}}
{{SpellTypeClassForCss|type=other}}
  • Works with names or action type enum IDs
  • Returns var(--color-spell-unknown) if nothing matches

Spell Related templates

  • {{Wand2}} - Render Wands and wand builds just like in-game.
  • {{SpellSequence}} - Render ordered spell sequences, just the spells, or customise using your own templates.
  • {{SpellName}} - Maps spell IDs to spell names.
  • {{SpellIcon}} - Render individual spell icons.
  • {{SpellQueryIcon}} - Query for groups of spells by name, tag, type etc., displayed in a grid of icons with tooltips.
    • {{SpellType}} - Normalises variations of spell type names, used by SpellTypeClass, SpellTypeColour, SpellQueryIcon etc.
  • {{SpellTag}} - Render inline links to spell tag groups, e.g. Lua エラー: エラー: テーブルSpellTagsが見つかりません。.
  • {{SpellQueryGroup}} - Navigation box for spells grouped by common attributes or tag groups.
  • {{Infobox spell}} - Spell infobox, defines spell parameters in cargo db.
  • Module:Wand - this lua module handles querying cargo for data, and rendering the Wand2 & SpellSequence templates.


Examples

In Out
{{SpellTypeClassForCss|Projectile}}
Projectile
{{SpellTypeClassForCss|Static}}
Static Projectile
{{SpellTypeClassForCss|Modifier}}
Projectile Modifier
{{SpellTypeClassForCss|Multicast}}
Multicast
{{SpellTypeClassForCss|Material}}
Material
{{SpellTypeClassForCss|Other}}
Other
{{SpellTypeClassForCss|Utility}}
Utility
{{SpellTypeClassForCss|Passive}}
Passive
{{SpellTypeClassForCss|NotASpellType}}
spellUnknown
Example 1:

| 0 | Projectile | projectile | 放射物 = Projectile

| 1 | Static | Static Projectile | Static projectile | static projectile | 静電放射物 = Static Projectile

| 2 | Modifier | Projectile Modifier | Projectile modifier | projectile modifier | 放射物調整盤 = Projectile Modifier

| 3 | Multicast | multicast | Draw Many | Draw many | マルチキャスト = Multicast

| 4 | Material | material | 資材 = Material

| 5 | Other | other | その他 = Other

| 6 | Utility | utility | ユーティリティー = Utility

| 7 | Passive | passive | 受け身 = Passive