Template:SpellEffect: Difference between revisions

From Koada`Dal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>|-
''{{{1|}}}:'' {{{2|}}}
| style="border:none; padding:1px 4px;" | {{{1|}}}: {{{2|}}}</includeonly>
</includeonly>
```
 
This renders each effect as a simple italicized numbered line rather than a nested table row, which avoids the table nesting conflict entirely. On the Minor Heal page it would display as:
```
1: Increase Health by 10
```
 
And for Berserker Spirit:
```
1: Increase STR by 2
2: Increase DEX by 2
3: Increase AGI by 2
4: Increase STA by 2
<noinclude>
<noinclude>
Helper template for individual spell effects inside {{[[Template:Spell|Spell]]}}.
Helper template for individual spell effects inside {{[[Template:Spell|Spell]]}}.


== Usage ==
== Usage ==
Each <nowiki>{{SpellEffect}}</nowiki> call creates one effect line. The first parameter is the effect number and the second is the description:
<pre>
<pre>
{{SpellEffect|1|Increase STR by 2}}
{{SpellEffect|1|Increase STR by 2}}
{{SpellEffect|2|Increase STA by 2}}
{{SpellEffect|2|Increase DEX by 2}}
{{SpellEffect|3|Increase AGI by 2}}
</pre>
</pre>
This would display as:
: 1: Increase STR by 2
: 2: Increase DEX by 2
: 3: Increase AGI by 2
* '''First parameter''' — Effect number
* '''Second parameter''' — Effect description
</noinclude>
</noinclude>

Latest revision as of 20:22, 15 March 2026


Helper template for individual spell effects inside {{Spell}}.

Usage

Each {{SpellEffect}} call creates one effect line. The first parameter is the effect number and the second is the description:

{{SpellEffect|1|Increase STR by 2}}
{{SpellEffect|2|Increase DEX by 2}}
{{SpellEffect|3|Increase AGI by 2}}

This would display as:

1: Increase STR by 2
2: Increase DEX by 2
3: Increase AGI by 2
  • First parameter — Effect number
  • Second parameter — Effect description