Template:SubSpell: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(Add bodystyle_add parameter - will document if works)
(→‎Template Documentation: Remember copy-from!)
 
(5 intermediate revisions by the same user not shown)
Line 16: Line 16:
|data2={{{body_parts|}}}
|data2={{{body_parts|}}}


|header3={{#if: {{{range|{{{range_increment|}}} }}}|Range }}
|label3=<abbr title="Maximum effective level">Max Level</abbr>
|data3={{{maxlevel|<span style="color:grey">0</span>}}}


|label3=<abbr title="Base/min range">Min</abbr>
|header4={{#if: {{{range|{{{range_increment|}}} }}}|Range }}
|data3={{#if: {{{range|{{{range_increment|}}} }}}|{{{range|<span style="color:lightgrey">0</span>}}} }}


|label4=<abbr title="Maximum range">Max</abbr>
|label4=<abbr title="Base/min range">Min</abbr>
|data4={{{max_range|}}}
|data4={{#if: {{{range|{{{range_increment|}}} }}}|{{{range|<span style="color:grey">0</span>}}} }}


|label5=<abbr title="Range increment">Increment</abbr>
|label5=<abbr title="Maximum range">Max</abbr>
|data5={{#ifeq: {{{range|}}}|{{{max_range|}}}|{{{range_increment|}}}|{{{range_increment|<span style="color:lightgrey">0</span>}}} }}
|data5={{{max_range|}}}


|header6={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|<abbr title="Shape/Area Of Effect">Shape/AOE</abbr> }}
|label6=<abbr title="Range increment">Increment</abbr>
|data6={{#ifeq: {{{range|}}}|{{{max_range|}}}|{{{range_increment|}}}|{{{range_increment|<span style="color:grey">0</span>}}} }}


|label6=Shape
|header7={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|<abbr title="Shape/Area Of Effect">Shape/AOE</abbr> }}
|data6={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|{{{shape|<span style="color:lightgrey"><abbr title="N/A shape; technically blast">Pseudo-Blast</abbr></span>}}} }}


|label7=<abbr title="Base/minimum Area Of Effect (usually radius)">Min AOE</abbr>
|label7=Shape
|data7={{#if: {{{min_AOE|{{{AOE_increment|}}} }}}|{{{min_AOE|0}}} }}
|data7={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|{{{shape|<span style="color:grey"><abbr title="N/A shape; technically blast">Pseudo-Blast</abbr></span>}}} }}


|label8=<abbr title="Maximum Area Of Effect">Max AOE</abbr>
|label8=<abbr title="Base/minimum Area Of Effect (usually radius)">Min AOE</abbr>
|data8={{#if: {{{max_AOE|}}}|{{{max_AOE}}} }}
|data8={{#if: {{{min_AOE|{{{AOE_increment|}}} }}}|{{{min_AOE|0}}} }}


|label9=<abbr title="Area Of Effect increment">Increment</abbr>
|label9=<abbr title="Maximum Area Of Effect">Max AOE</abbr>
|data9={{#if: {{{AOE_increment|{{{min_AOE|}}} }}}|{{{AOE_increment|0}}} }}
|data9={{#if: {{{max_AOE|}}}|{{{max_AOE}}} }}


|header10={{#if: {{{duration|{{{duration_increment|}}} }}}|Duration}}
|label10=<abbr title="Area Of Effect increment">Increment</abbr>
|data10={{#if: {{{AOE_increment|{{{min_AOE|}}} }}}|{{{AOE_increment|0}}} }}


|label10=<abbr title="Base/minimum duration (in moves)">Min</abbr>
|header11={{#if: {{{duration|{{{duration_increment|}}} }}}|Duration}}
|data10={{#if: {{{duration|{{{duration_increment|}}} }}}|{{{duration|0}}} }}


|label11=<abbr title="Maximum duration (in moves)">Max</abbr>
|label11=<abbr title="Base/minimum duration (in moves)">Min</abbr>
|data11={{{max_duration|}}}
|data11={{#if: {{{duration|{{{duration_increment|}}} }}}|{{{duration|0}}} }}


|label12=<abbr title="Duration increment (in moves)">Increment</abbr>
|label12=<abbr title="Maximum duration (in moves)">Max</abbr>
|data12={{#if: {{{duration_increment|{{{duration|}}} }}}|{{{duration_increment|0}}} }}
|data12={{{max_duration|}}}


|header13={{#if: {{{min_damage|{{{damage_increment|}}} }}}|Damage}}
|label13=<abbr title="Duration increment (in moves)">Increment</abbr>
|data13={{#if: {{{duration_increment|{{{duration|}}} }}}|{{{duration_increment|0}}} }}


|label13=<abbr title="Damage type">Type</abbr>
|header14={{#if: {{{min_damage|{{{damage_increment|}}} }}}|Damage}}
|data13={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{dtype|<span style="color:lightgrey">Pure</span>}}}}}


|label14=<abbr title="Base/minimum damage">Min</abbr>
|label14=<abbr title="Damage type">Type</abbr>
|data14={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{min_damage|0}}} }}
|data14={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{dtype|<span style="color:grey">Pure</span>}}}}}


|label15=<abbr title="Maximum damage">Max</abbr>
|label15=<abbr title="Base/minimum damage">Min</abbr>
|data15={{{max_damage|}}}
|data15={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{min_damage|0}}} }}


|label16=<abbr title="Damage increment">Increment</abbr>
|label16=<abbr title="Maximum damage">Max</abbr>
|data16={{#if: {{{damage_increment|{{{min_damage|}}} }}}|{{{damage_increment|0}}} }}
|data16={{{max_damage|}}}


|header17={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|<abbr title="Damage Over Time (per turn)">DOT</abbr>}}
|label17=<abbr title="Damage increment">Increment</abbr>
|data17={{#if: {{{damage_increment|{{{min_damage|}}} }}}|{{{damage_increment|0}}} }}


|label17=<abbr title="Base/minimum Damage Over Time">Min</abbr>
|header18={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|<abbr title="Damage Over Time (per turn)">DOT</abbr>}}
|data17={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{min_DOT|0}}} }}


|label18=<abbr title="Maximum Damage Over Time">Max</abbr>
|label18=<abbr title="Base/minimum Damage Over Time">Min</abbr>
|data18={{{max_DOT|}}}
|data18={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{min_DOT|0}}} }}


|label19=<abbr title="Damage Over Time increment">Increment</abbr>
|label19=<abbr title="Maximum Damage Over Time">Max</abbr>
|data19={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{DOT_increment|0}}} }}
|data19={{{max_DOT|}}}


|header20={{#if: {{{field|}}}|Field }}
|label20=<abbr title="Damage Over Time increment">Increment</abbr>
|data20={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{DOT_increment|0}}} }}


|label20={{#if: {{{field|}}}|<abbr title="Field ID">Field</abbr> }}
|header21={{#if: {{{field|}}}|Field }}
|data20={{{field|}}}


|label21={{#if: {{{field_chance|}}}|<abbr title="1 over this is the chance of a field occurring in the AOE">Field Chance</abbr> }}
|label21={{#if: {{{field|}}}|<abbr title="Field ID">Field</abbr> }}
|data21={{{field_chance|}}}
|data21={{{field|}}}


|label22={{#if: {{{field|}}}|<abbr title="Minimum/base field intensity">Min Intensity</abbr> }}
|label22={{#if: {{{field_chance|}}}|<abbr title="1 over this is the chance of a field occurring in the AOE">Field Chance</abbr> }}
|data22={{#if: {{{field|}}}|{{{min_field_intensity|<span style="color:lightgrey">0</span>}}} }}
|data22={{{field_chance|}}}


|label23={{#if: {{{max_field_intensity|}}}|<abbr title="Maximum/final field intensity">Max Intensity</abbr> }}
|label23={{#if: {{{field|}}}|<abbr title="Minimum/base field intensity">Min I</abbr> }}
|data23={{{max_field_intensity|}}}
|data23={{#if: {{{field|}}}|{{{min_field_intensity|<span style="color:grey">0</span>}}} }}


|label24={{#if: {{{field|}}}|<abbr title="Field intensity increment">Increment</abbr> }}
|label24={{#if: {{{max_field_intensity|}}}|<abbr title="Maximum/final field intensity">Max I</abbr> }}
|data24={{#if: {{{field_intensity_increment|<span style="color:lightgrey">0</span>}}} }}
|data24={{{max_field_intensity|}}}


|label25=<abbr title="Intensity is +/- this as a proportion">Variance</abbr>
|label25={{#if: {{{field|}}}|<abbr title="Field intensity increment">Increment</abbr> }}
|data25={{{field_intensity_variance|}}}
|data25={{#if: {{{field_intensity_increment|<span style="color:grey">0</span>}}} }}


|header26={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|Pierce}}
|label26=<abbr title="Intensity is +/- this as a proportion">Variance</abbr>
|data26={{{field_intensity_variance|}}}


|label26=<abbr title="Base/minimum pierce">Min</abbr>
|header27={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|Pierce}}
|data26={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|{{{min_pierce|0}}} }}


|label27=<abbr title="Maximum pierce">Max</abbr>
|label27=<abbr title="Base/minimum pierce">Min</abbr>
|data27={{{max_pierce|}}}
|data27={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|{{{min_pierce|0}}} }}


|label28=<abbr title="Pierce increment">Increment</abbr>
|label28=<abbr title="Maximum pierce">Max</abbr>
|data28={{#if: {{{pierce_increment|{{{min_pierce|}}} }}}|{{{pierce_increment|0}}} }}
|data28={{{max_pierce|}}}


|header29=Other
|label29=<abbr title="Pierce increment">Increment</abbr>
|data29={{#if: {{{pierce_increment|{{{min_pierce|}}} }}}|{{{pierce_increment|0}}} }}


|label29=Effect
|header30=Other
|data29={{{effect|<span style="color:lightgray">Pseudo-Attack</span>}}}


|label30=Effect String
|label30=Effect
|data30={{#if: {{{eff_str|}}}|{{{eff_str}}} }}
|data30={{{effect|<span style="color:gray">Pseudo-Attack</span>}}}


|label31=Flags
|label31=Effect String
|data31={{#if:{{{flag1|}}}|<abbr title="{{spellflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{spellflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{spellflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{spellflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{spellflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{spellflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}
|data31={{#if: {{{eff_str|}}}|{{{eff_str}}} }}


|label32=Extra Effects
|label32=Flags
|data32={{#if: {{{extra_effects|}}}|{{{extra_effects}}} }}
|data32={{#if:{{{flag1|}}}|<abbr title="{{spellflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{spellflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{spellflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{spellflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{spellflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{spellflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}
 
|label33=Extra Effects
|data33={{#if: {{{extra_effects|}}}|{{{extra_effects}}} }}


}}
}}
Line 127: Line 130:
<noinclude>
<noinclude>
== Template Documentation ==
== Template Documentation ==
This template is for spells that are either sub-spells of another spell, or used to get a result other than an actual [[Magiclysm]] spell (e.g., the Frog Mother's spawning of tadpoles). In parentheses are variable names, where not identical:
This template is for spells that are either sub-spells of [[:Template:Spell|another spell]], or used to get a result other than an actual [[Magiclysm]] spell (e.g., the Frog Mother's spawning of tadpoles). When translating from JSON, be sure to notice and include anything gotten via "copy-from", such as "max_level". In parentheses are variable names, where not identical:


* Title:
* Title:
Line 134: Line 137:
** Valid target/targets (target): Defaults to "None"
** Valid target/targets (target): Defaults to "None"
** Affected body part/parts (body_parts)
** Affected body part/parts (body_parts)
** Max effective level (maxlevel): If this is not in a subspell's [[:Category:JSON|JSON]] and the main spell has it, there may be a problem with the subspell for anything that's supposed to change with level.
* Range:
* Range:
** Base (minimum) range (range): Defaults to 0
** Base (minimum) range (range): Defaults to 0
Line 175: Line 179:
Not part of the infobox are the description and, if present, message. Note that this template is incomplete; for instance, it does not include any sounds produced.
Not part of the infobox are the description and, if present, message. Note that this template is incomplete; for instance, it does not include any sounds produced.


[[Category:Spells]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:07, 4 April 2021

SubSpell Sub-Spell
General
Target None
Max Level 0
Other
Effect Pseudo-Attack

Template Documentation

This template is for spells that are either sub-spells of another spell, or used to get a result other than an actual Magiclysm spell (e.g., the Frog Mother's spawning of tadpoles). When translating from JSON, be sure to notice and include anything gotten via "copy-from", such as "max_level". In parentheses are variable names, where not identical:

  • Title:
    • Id: Defaults to name or page name, with "Sub-Spell" appended
  • Casting:
    • Valid target/targets (target): Defaults to "None"
    • Affected body part/parts (body_parts)
    • Max effective level (maxlevel): If this is not in a subspell's JSON and the main spell has it, there may be a problem with the subspell for anything that's supposed to change with level.
  • Range:
    • Base (minimum) range (range): Defaults to 0
    • Maximum range (max_range)
    • Range increment: Defaults to 0
  • Shape/AOE (Area Of Effect):
    • Shape: If the shape is down as "blast", but this is not actually applicable (e.g., many self-only effects), leave this field out. If it is shown, the string "Pseudo-Blast" will be used. (Please feel free to suggest alternate phraseology.)
    • Base (minimum) area of effect (min_AOE): Defaults to 0; usually radius, but depends on "shape"
    • Maximum area of effect (max_AOE): Usually radius, but depends on "shape"
    • Area of effect increment (AOE_increment): Usually radius, but depends on "shape"
  • Duration (in moves):
    • Base (minimum) duration (duration): Defaults to 0
    • Maximum duration (max_duration)
    • Duration increment: Defaults to 0
  • Damage:
    • Damage type (dtype): Defaults to "Pure" (note that a JSON spell file lacking a damage type may not work right currently)
    • Base (minimum) damage (min_damage): Defaults to 0
    • Maximum damage (max_damage)
    • Damage increment: Defaults to 0
  • DOT (Damage Over Time, per turn):
    • Base (minimum) Damage Over Time (min_DOT): Defaults to 0
    • Maximum Damage Over Time (max_DOT)
    • Damage Over Time increment (DOT_increment): Defaults to 0
  • Field:
    • Field ID (field)
    • Field chance (field_chance): 1/this is the chance the field will be created in each tile of the AOE
    • Minimum (base) field intensity (min_field_intensity): Defaults to 0
    • Maximum (final) field intensity (max_field_intensity)
    • Field intensity increment: Defaults to 0
    • Field intensity variance: Actual intensity is intensity +/- this*intensity
  • Pierce:
    • Minimum (base) pierce (min_pierce): Defaults to 0
    • Maximum (final) pierce (max_pierce)
    • Pierce increment: Defaults to 0
  • Other (some other category name, no pun intended, would be helpful...):
    • Effect: Similarly to "shape", if the effect is down as "attack", but it is not actually an attack as such (e.g., a negative-damage self-effect for healing), leave this field out; it will show up as "Pseudo-Attack". (Please feel free to suggest alternate phraseology.)
    • Effect string (eff_str)
    • Flags: Currently can take up to 6 flags; see Template:Spellflags for further information
    • Extra Effects (extra_effects): Other things (usually/always spells?) that are set off by this spell

Not part of the infobox are the description and, if present, message. Note that this template is incomplete; for instance, it does not include any sounds produced.