Template:Spell list table row: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
 
(41 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  <includeonly>
  <includeonly>
<tr>
<tr>
   <td>{{#if: {{{image|}}}
   <td>{{IconLink|{{{controller icon}}}|{{{spell}}}|{{{name}}}}}{{#if:{{{conc|}}}|{{Nbts}}{{Icon|Concentration Icon.png|20px|link=Concentration|caption=}}|}}{{#if:{{{ritual|}}}|{{Nbts}}{{Icon|Ritual_Spell_Icon.png|16px|link=Ritual Spells|caption=}}|}}</td>
  | [[File:{{{image}}}|frameless|upright=0.1|link=Acid Splash]]
  <td style="text-align:right;">{{#switch:{{{level|}}}
  | [[File:{{{spell}}} Icon.png|frameless|upright=0.1|link={{{spell}}}]]
   | 0 = <span class="bg3wiki-help-tooltip" aria-label="Cantrip">C</span>
   }} [[{{{ spell }}}]] {{#ifeq: {{{conc|}}} | required | {{SmallIcon|Concentration Icons.png|link=Concentration}} | }}</td>
  | #default = {{{level|}}}
 
  }}</td>
   <td>{{{ casttime | {{Action}} }}}</td>
  <td style="text-align:center;">{{#if:{{{upcastable|}}}|{{upcastable}} }}</td>
   <td>{{action icon|{{{ casttime|}}}}}</td>


   <td>{{#if: {{{duration|}}} | {{SmallIcon|Duration Icons.png}}{{nbts}}{{#switch: {{{duration}}}
   <td>{{#if: {{{duration|}}} | {{SmallIcon|Duration Icons.png}}{{nbts}}{{#switch: {{{duration}}}
     | 1 = 1 turn
     | 1 = 1 turn
     | longrest = Until Long Rest
    | Until Long Rest
    | Long Rest
     | longrest = Long Rest
     | #default = {{{duration}}} turns
     | #default = {{{duration}}} turns
   }} | - }}</td>
   }} | <div style="text-align:center">-</div> }}</td>


   <td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}}
   <td>{{SmallIcon|Range Icon.png}}{{nbts}}{{#switch: {{{range|{{!}}}}}
    | {{!}} = 18m / 60ft
     | self
     | self
     | Self = Self
     | Self = Self
     | melee
     | melee
     | Melee
     | Melee
     | touch = 1.5/5
     | touch
     | Touch = 1.5/5
     | Touch = 1.5 m / 5 ft
     | weapon
     | weapon
     | Weapon = Weapon Range
     | Weapon = Weapon Range
    | short ranged = 15 m / 50 ft
    | ranged = 18 m / 60 ft
     | #default = {{#explode: {{{range}}} |/|0 }}m / {{#explode: {{{range}}} |/|1 }}ft
     | #default = {{#explode: {{{range}}} |/|0 }}m / {{#explode: {{{range}}} |/|1 }}ft
   }} {{#if: {{{area|}}}
   }} {{#if: {{{area|}}}
     | <br>{{SmallIcon|Aoe Icon.png}}{{nbts}}{{#explode: {{{area}}} |/|0 }}m / {{#explode: {{{area}}} |/|1 }}ft {{#switch: {{{aoe|{{!}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }}
     | <br>{{SmallIcon|Aoe Icon.png}}{{nbts}}{{#explode: {{{area}}} |/|0 }}m / {{#explode: {{{area}}} |/|1 }}ft {{#switch: {{lc:{{{aoe|{{!}}}}}}} | {{!}} | radius = (Radius) | cone = (Cone) | cube = (Cube) }}
     |  
     |  
   }}</td>
   }}</td>


   <td>{{#ifeq: {{{attack|yes}}} | no | | {{Attack Roll}} }}{{#if: {{{save|}}}
   <td>{{#ifeq: {{{attack|}}} | 1 | {{Attack Roll}} | {{#if:{{{save|}}}||<div style="text-align:center">-</div>}} }}
    | {{#ifeq: {{{attack|yes}}} | no | | <br> }} {{SavingThrow | {{{save}}} }}
  {{#if: {{{save|}}}|<div>{{short saving throw | {{{save}}} }}</div> }}
    | {{#ifeq: {{{attack|yes}}} | no | - }} }}</td>
  </td>


   <td>{{#if: {{{damage|}}} | {{DamageType|{{{damage}}} }} | - }}</td>
   <td>{{#if: {{{damage|}}}{{{damage type|}}} | {{DamageText|{{{damage}}}|{{{damage type}}} }}{{#if: {{{extra damage|}}}{{{extra damage type|}}} | <br>{{DamageText|{{{extra damage}}}|{{{extra damage type}}} }}}} | <div style="text-align:center">-</div> }}</td>
</tr>
</tr>
</includeonly>
</includeonly><noinclude>
Example:
<pre>
{{Spell list table row
| controller icon=Flame Blade Icon.webp
| level=Cantrip
| spell=Flame Blade (Spell)
| name=Flame Blade
| area=2/7
| save=DEX
| damage=2d6
| damage type=Acid
}}
{{Spell list table row
| spell=Blade Ward
| controller icon=Blade Ward Icon.webp
| name=Blade Ward
| level=Cantrip
| casttime={{action}}
| duration=2
| range=self
| conc=required
| attack=no
}}
{{Spell list table row
| spell=Firebolt?
| controller icon=Fire Bolt Icon.webp
| name=Firebolt?
| level=Cantrip
| upcastable=yes
| casttime={{action}}
| duration=2
| range=self
| ritual=true
| attack=no
}}
</pre>


<noinclude>
Result:


{{Spell list table row/header}}
{{Spell list table row
| controller icon=Flame Blade Spell Icon.webp
| level=Cantrip
| spell=Flame Blade (Spell)
| name=Flame Blade
| area=2/7
| save=DEX
| damage=2d6
| damage type=Acid
}}
{{Spell list table row
| spell=Blade Ward
| controller icon=Blade Ward Icon.webp
| name=Blade Ward
| level=0
| casttime={{action}}
| duration=2
| range=self
| conc=required
| attack=no
}}
{{Spell list table row
| spell=Firebolt?
| controller icon=Fire Bolt Icon.webp
| name=Firebolt?
| level=0
| upcastable=y
| casttime={{action}}
| duration=2
| range=self
| ritual=true
| attack=no
| damage=1d10
| damage type=Piercing
| extra damage=2d8
| extra damage type=Fire
}}
{{Spell list table row
| spell=Ensnaring Strike (Ranged)
| controller icon=Ensnaring Strike Ranged Icon.webp
| name=Ensnaring Strike
| level=1
| casttime={{action}}
| duration=10
| range=weapon
| save=Dexterity
| attack=yes
}}
{{Spell list table row/footer}}
== template data ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"image": {
"controller icon": {
"description": "File name, auto-generated as \"{{spell}} Icon.png\" if not provided.",
"description": "File name of the spell's icon.",
"type": "string"
"type": "string"
},
},
Line 53: Line 145:
},
},
"conc": {
"conc": {
"description": "Does spell require concentration.",
"description": "If specified, marks spell as requiring concentration.",
"type": "string",
"type": "boolean",
"suggestedvalues": [
"suggestedvalues": [
"required"
"required"
Line 144: Line 236:
],
],
"type": "string"
"type": "string"
},
"ritual": {
"description": "If specified, marks spell as ritual.",
"type": "boolean"
},
"level": {
"description": "The level of the spell.",
"suggestedvalues": [
"1",
"2",
"3",
"4",
"5",
"6",
"Cantrip"
]
},
"upcastable": {
"description": "If specified, adds the upcastable marker next to the level.",
"type": "boolean"
}
}
},
},
Line 149: Line 261:
"paramOrder": [
"paramOrder": [
"spell",
"spell",
"image",
"level",
"upcastable",
"controller icon",
"conc",
"conc",
"ritual",
"casttime",
"casttime",
"duration",
"duration",
Line 162: Line 277:
}
}
</templatedata>
</templatedata>
Example:
<pre>
{| class=wikitable style="width: 100%;"
! | Name
! | Casting Time
! | Duration
! | Range / Area
! | Attack / Save
! | Damage / Effect
|-
{{SpellListTableRow
| image=Acid Splash Icon 2.png
| spell=Acid Splash
| area=2/7
| save=DEX
| damage=Acid
}}
{{SpellListTableRow
| spell=Blade Ward
| casttime={{action}}
| duration=2
| range=self
| conc=required
| attack=no
}}
|}
</pre>
Result:
{| class=wikitable style="width: 100%;"
! | Name
! | Casting Time
! | Duration
! | Range / Area
! | Attack / Save
! | Damage / Effect
|-
{{SpellListTableRow
| image=Acid Splash Icon 2.png
| spell=Acid Splash
| area=2/7
| save=DEX
| damage=Acid
}}
{{SpellListTableRow
| spell=Blade Ward
| casttime={{action}}
| duration=2
| range=self
| conc=required
| attack=no
}}
|}
</noinclude>
</noinclude>

Navigation menu