Difference between revisions of "Template:Spell"

From Mournheim
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{nocategory|}}}||{{#switch: {{{lvl}}} | cantrip = [[Category:Spell 0]] | 1st = [[Category:Spell 1]] | 2nd = [[Category:Spell 2]] | 3rd = [[Category:Spell 3]]| 4th = [[Category:Spell 4]] | 5th = [[Category:Spell 5]] | 6th = [[Category:Spell 6]] | 7th = [[Category:Spell 7]] | 8th = [[Category:Spell 8]] | 9th = [[Category:Spell 9]] | }}}}
+
<includeonly>
{| class="d20 dragon monstats" cellspacing="0" cellpadding="0"
+
<div style="font-size: 14px; line-height: 1.25; font-weight: bold;">{{{name}}}</div>
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}}
+
<table>
|-
+
  {{#if:{{{school|}}}|<tr>
| colspan="2" | ''{{#ifeq:{{{lvl}}}|cantrip| |{{{lvl}}}-level}} {{#ifeq:{{NAMESPACE}}|Main|{{{school}}} Spells|[[{{{school}}} Spells|{{#ifeq:{{{lvl}}}|cantrip| |<span style="text-transform:lowercase;">}}{{{school}}}{{#ifeq:{{{lvl}}}|cantrip| |</span>}}]]}} {{#if: {{{desc|}}}|[<nowiki/>{{{desc}}}<nowiki/>]|}}{{#if:{{{ritual|}}}|(ritual){{#if:{{{nocategory|}}}||[[Category:Ritual Tag]]}}}} {{#ifeq:{{{lvl}}}|cantrip|cantrip|}}''{{#if: {{{casttime|}}}|<nowiki/>
+
    <th>School</th>
{{!}}-
+
    <td>{{{school|}}}</td>
! Casting time:
+
  </tr>
{{!}} {{{casttime}}}|}}{{#if: {{{range|}}}|<nowiki/>
+
  }}
{{!}}-
+
  {{#if:{{{ritual|}}}|<tr>
! Range:
+
    <th>Ritual?</th>
{{!}} {{{range}}}|}}{{#if: {{{comp|}}}|<nowiki/>
+
    <td>{{{ritual|}}}</td>
{{!}}-
+
  </tr>
! Components:
+
  }}
{{!}} {{{comp}}}|}}{{#if: {{{dur|}}}|<nowiki/>
+
  {{#if:{{{lvl|}}}|<tr>
{{!}}-
+
    <th>School(s)</th>
! Duration:
+
    <td>{{{lvl|}}}</td>
{{!}} {{{dur}}}|}}
+
  </tr>
|
+
  }}
! Summary:
+
  {{#if:{{{casttime|}}}|<tr>
{{!}} {{{summary}}}|}}
+
    <th>Casting time</th>
|}
+
    <td>{{{casttime|}}}</td>
{{#if:{{{nocategory|}}}||[[Category:{{{school}}} School]][[Category:Spells]]}}
+
  </tr>
 +
  }}
 +
  {{#if:{{{range|}}}|<tr>
 +
    <th>Range</th>
 +
    <td>{{{range|}}}</td>
 +
  </tr>
 +
  }}
 +
  {{#if:{{{comp|}}}|<tr>
 +
    <th>Components</th>
 +
    <td>{{{comp|}}}</td>
 +
  </tr>
 +
  }}
 +
  {{#if:{{{dur|}}}|<tr>
 +
    <th>Duration</th>
 +
    <td>{{{dur|}}}</td>
 +
  </tr>
 +
  }}
 +
  {{#if:{{{summary|}}}|<tr>
 +
    <th>Summary</th>
 +
    <td>{{{summary|}}}</td>
 +
  </tr>
 +
  }}
 +
</table>
 +
{{#ifeq: {{NAMESPACE}} | Spell | {{#if:{{{school|}}}|[[Category:{{{school}}} School]]}} | }}
 +
 
 
</includeonly>
 
</includeonly>

Latest revision as of 16:58, 10 April 2022