Difference between revisions of "Template:Spell"

From ShadowHaven Reloaded
Jump to navigation Jump to search
 
Line 1: Line 1:
<includeonly>
<includeonly>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 30%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: {{{ScreenWidthPercentage|30}}}%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|
Line 25: Line 25:


*Name The name of the quality.
*Name The name of the quality.
*ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
*Tags Any tags associated with the spell.
*Tags Any tags associated with the spell.
*Type Physical or Mana
*Type Physical or Mana
Line 38: Line 39:
{{Spell|
{{Spell|
|Name=Test Spell
|Name=Test Spell
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Tags=Direct, Elemental, Touch
|Tags=Direct, Elemental, Touch
|Type=P
|Type=P
Line 51: Line 53:
{{Spell|
{{Spell|
|Name=Test Spell
|Name=Test Spell
|ScreenWidthPercentage=30
|Tags=Direct, Elemental, Touch
|Tags=Direct, Elemental, Touch
|Type=P
|Type=P

Latest revision as of 12:57, 25 August 2024


Usage

This template helps create a standard display format for custom qualities.

  • Name The name of the quality.
  • ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
  • Tags Any tags associated with the spell.
  • Type Physical or Mana
  • Range The range of the spell
  • Damage The damage type of the spell
  • Duration The duration of the spell
  • Drain The adjustment to F for drain of the spell. IE -6 for a F-6 spell
  • Description The text associated with the quality.

So, if you enter this:

{{Spell|
|Name=Test Spell
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Tags=Direct, Elemental, Touch
|Type=P
|Range=T
|Damage=F
|Duration=I
|Drain=-6
|Description=This is some text
|}}

The template will return the characters current essence/total essence.

Test Spell(Direct, Elemental, Touch)
Type: P Range: T Damage: F Duration: I Drain: -6
This is some text