Template:SubSpell: Difference between revisions
(Creating a template for subspells (or other uses for spells than Magiclysm magic)) |
(Fixing bugs) |
||
Line 6: | Line 6: | ||
|headerstyle = color:#000000; background:#B6B6B6; white-space: nowrap; | |headerstyle = color:#000000; background:#B6B6B6; white-space: nowrap; | ||
|title={{{id|{{{name|{{PAGENAME}}}}} Sub-Spell}}} | |title={{{id|{{{name|{{PAGENAME}} }}} Sub-Spell}}} | ||
|header1= | |header1=General | ||
|label1=<abbr title="Valid target(s)">Target</abbr> | |label1=<abbr title="Valid target(s)">Target</abbr> | ||
Line 15: | Line 15: | ||
|label2=<abbr title="Affected body part(s)">Body Part</abbr> | |label2=<abbr title="Affected body part(s)">Body Part</abbr> | ||
|data2={{{body_parts|}}} | |data2={{{body_parts|}}} | ||
|header3={{#if: {{{range|{{{range_increment|}}} }}}|Range }} | |header3={{#if: {{{range|{{{range_increment|}}} }}}|Range }} | ||
Line 122: | Line 121: | ||
|label32=Extra Effects | |label32=Extra Effects | ||
|data32={{#if: {{{extra_effects|}}}|{{{extra_effects}}} }} | |data32={{#if: {{{extra_effects|}}}|{{{extra_effects}}} }} | ||
]] | |||
[[Category:SubSpells]] | [[Category:SubSpells]] | ||
<noinclude> | <noinclude> | ||
== Template Documentation == | == Template Documentation == |
Revision as of 05:03, 8 February 2021
{{Infobox |bodystyle = width: 250px; border-color: #0F0F0F; |titlestyle = text-align:center; |labelstyle = color:#000000; background:#DFDFDF; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; vertical-align:middle; |datastyle = vertical-align:middle; |headerstyle = color:#000000; background:#B6B6B6; white-space: nowrap;
|title=SubSpell Sub-Spell
|header1=General
|label1=Target |data1=None
|label2=Body Part |data2=
|header3=
|label3=Min |data3=
|label4=Max |data4=
|label5=Increment |data5=
|header6=
|label6=Shape |data6=
|label7=Min AOE |data7=
|label8=Max AOE |data8=
|label9=Increment |data9=
|header10=
|label10=Min |data10=
|label11=Max |data11=
|label12=Increment |data12=
|header13=
|label13=Type |data13=
|label14=Min |data14=
|label15=Max |data15=
|label16=Increment |data16=
|header17=
|label17=Min |data17=
|label18=Max |data18=
|label19=Increment |data19=
|header20=
|label20= |data20=
|label21= |data21=
|label22= |data22=
|label23= |data23=
|label24= |data24=
|label25=Variance |data25=
|header26=
|label26=Min |data26=
|label27=Max |data27=
|label28=Increment |data28=
|header29=Other
|label29=Effect |data29=Pseudo-Attack
|label30=Effect String |data30=
|label31=Flags |data31=
|label32=Extra Effects |data32=
]]
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:
- 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)
- 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.