Template:Spell: Difference between revisions
(Содержимое страницы заменено на «123») |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>This template is intended to provide uniform formatting of spells. It should be used at the top of a spell article. | |||
---- | |||
</noinclude>{{#if: {{{icon|}}} | [[image:{{{icon}}}|right|{{PAGENAME}}]] }}{{ | |||
#if: {{{line|}}} | | |||
{{{!}} class="navigation" style="float:right; clear:right" | |||
{{!}}- | |||
!class="navhead"{{!}} {{{line}}} | |||
{{!}}- | |||
{{!}}{{ | |||
#if: {{{line0|}}} | 0: ''[[{{{line0}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}}{{{line5|}}}{{{line4|}}}{{{line3|}}}{{{line2|}}}{{{line1|}}} |<br />}} }}{{ | |||
#if: {{{line1|}}} | 1: ''[[{{{line1}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}}{{{line5|}}}{{{line4|}}}{{{line3|}}}{{{line2|}}} |<br />}} }}{{ | |||
#if: {{{line2|}}} | 2: ''[[{{{line2}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}}{{{line5|}}}{{{line4|}}}{{{line3|}}} |<br />}} }}{{ | |||
#if: {{{line3|}}} | 3: ''[[{{{line3}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}}{{{line5|}}}{{{line4|}}} |<br />}} }}{{ | |||
#if: {{{line4|}}} | 4: ''[[{{{line4}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}}{{{line5|}}} |<br />}} }}{{ | |||
#if: {{{line5|}}} | 5: ''[[{{{line5}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}}{{{line6|}}} |<br />}} }}{{ | |||
#if: {{{line6|}}} | 6: ''[[{{{line6}}}]]''{{#if: {{{line9|}}}{{{line8|}}}{{{line7|}}} |<br />}} }}{{ | |||
#if: {{{line7|}}} | 7: ''[[{{{line7}}}]]''{{#if: {{{line9|}}}{{{line8|}}} |<br />}} }}{{ | |||
#if: {{{line8|}}} | 8: ''[[{{{line8}}}]]''{{#if: {{{line9|}}} |<br />}} }}{{ | |||
#if: {{{line9|}}} | 9: ''[[{{{line9}}}]]''}} | |||
{{!}}} | |||
}}{{#if: {{{linebreach|}}} | | |||
{{{!}} class="navigation" style="float:right; clear:right" | |||
{{!}}- | |||
!class="navhead"{{!}} Breaches | |||
{{!}}- | |||
{{!}} | |||
4: ''[[lesser spell breach]]''<br /> | |||
6: ''[[greater spell breach]]''<br /> | |||
9: ''[[Mordenkainen's disjunction]]'' | |||
{{!}}} | |||
}}'''Spell level:''' {{ | |||
#if: {{{bardlevel|}}} |[[bard]] {{{bardlevel}}}{{#if: {{{clericlevel|}}}{{{druidlevel|}}}{{{paladinlevel|}}}{{{rangerlevel|}}}{{{magelevel|}}}{{{domain|}}} |; }} }}{{ | |||
#if: {{{clericlevel|}}} |[[cleric]] {{{clericlevel}}}{{#if: {{{druidlevel|}}}{{{paladinlevel|}}}{{{rangerlevel|}}}{{{magelevel|}}}{{{domain|}}} |; }} }}{{ | |||
#if: {{{druidlevel|}}} |[[druid]] {{{druidlevel}}}{{#if: {{{paladinlevel|}}}{{{rangerlevel|}}}{{{magelevel|}}}{{{domain|}}} |; }} }}{{ | |||
#if: {{{paladinlevel|}}} |[[paladin]] {{{paladinlevel}}}{{#if: {{{rangerlevel|}}}{{{magelevel|}}}{{{domain|}}} |; }} }}{{ | |||
#if: {{{rangerlevel|}}} |[[ranger]] {{{rangerlevel}}}{{#if: {{{magelevel|}}}{{{domain|}}} |; }} }}{{ | |||
#if: {{{magelevel|}}} |[[sorcerer]]/[[wizard]] {{{magelevel}}}{{#if: {{{domain|}}} |; }} }}{{ | |||
#if: {{{domain|}}} |[[cleric]] with [[{{{domain}}} domain]] {{{domainlevel}}}{{#if: {{{domain2|}}} |, [[{{{domain2}}} domain]] {{{domain2level}}}{{#if: {{{domain3|}}} |, [[{{{domain3}}} domain]] {{{domain3level}}}{{#if: {{{domain4|}}} |, [[{{{domain4}}} domain]] {{{domain4level}}} }} }} }} }} <br /> | |||
'''Innate level:''' [[innate level|{{{innatelevel}}}]]{{#ifeq: {{{magelevel}}} | epic | | <br /> | |||
'''School:''' {{{school}}} }}{{#if: {{{immunity|}}} |<br /> | |||
'''Descriptor:''' [[descriptor|{{{immunity}}}]] }}<br /> | |||
'''Components:''' {{#switch: {{{components|}}} | VS = [[component|verbal, somatic]] | V-S- = [[component|verbal]], <s>somatic</s> | V = [[component|verbal]] | S = [[component|somatic]] | {{{components|none}}} }}<br /> | |||
'''Range:''' {{range|{{{range}}} }} <br /> | |||
'''Area of effect:''' {{AoE|{{{area}}}|{{{conesize|10}}} }}{{{areanote|}}}<br /> | |||
'''Duration:''' {{{duration}}}<br /> | |||
'''Save:''' {{{save|none}}} <br /> | |||
'''Spell resistance:''' {{#ifeq: {{{spellresistance|}}} | yes | [[spell resistance|yes]] | {{#ifeq: {{{spellresistance|}}} | yes* | <del>[[spell resistance|yes]]</del> ''no'' | {{{spellresistance|no}}} }} }}{{ | |||
#if: {{{counters|}}} |<br /> | |||
'''Additional counterspells:''' {{{counters}}} }} | |||
'''Description:''' {{{desc}}}{{ | |||
#ifeq: {{{magelevel}}} | epic | <br /><br />'''Special:''' [[Epic spell]]s are not affected by arcane [[spell failure]] from armor, nor can they be interrupted, [[counterspell|countered]], or [[dispel]]led.{{ | |||
#if: {{{spellcraft|}}} | <br />'''Spellcraft prerequisite:''' {{{spellcraft}}} }} }} | |||
<!-- Categories: -- | |||
--><includeonly>{{ | |||
#ifeq: {{{magelevel}}} | epic | [[category:epic spells]] | [[category:spells]] }}{{ | |||
#if: {{{bardlevel|}}} | [[category:bard spells |{{{bardlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{clericlevel|}}} | [[category:cleric spells |{{ucfirst:{{{clericlevel}}} }} {{PAGENAME}}]]}}{{ | |||
#if: {{{druidlevel|}}} | [[category:druid spells |{{ucfirst:{{{druidlevel}}} }} {{PAGENAME}}]]}}{{ | |||
#if: {{{paladinlevel|}}} | [[category:paladin spells |{{{paladinlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{rangerlevel|}}} | [[category:ranger spells |{{{rangerlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{magelevel|}}} | [[category:sorcerer/wizard spells |{{ucfirst:{{{magelevel}}} }} {{PAGENAME}}]][[category:sorcerer spells |{{ucfirst:{{{magelevel}}} }} {{PAGENAME}}]][[category:wizard spells |{{ucfirst:{{{magelevel}}} }} {{PAGENAME}}]]}}{{ | |||
#if: {{{domain|}}} | [[category:cleric domain spells |{{{domainlevel}}} {{PAGENAME}}]]}}<!-- | |||
-- special categories -- | |||
-->{{#switch: {{{components|}}} | V | V-S- = {{ | |||
#if: {{{bardlevel|}}} | [[category:bard nonsomatic spells|{{{bardlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{magelevel|}}} | [[category:sorcerer/wizard nonsomatic spells|{{{magelevel}}} {{PAGENAME}}]]}} <!-- | |||
--> | S = {{ | |||
#if: {{{bardlevel|}}} | [[category:bard nonverbal spells|{{{bardlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{clericlevel|}}} | [[category:cleric nonverbal spells|{{{clericlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{druidlevel|}}} | [[category:druid nonverbal spells|{{{druidlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{paladinlevel|}}} | [[category:paladin nonverbal spells|{{{paladinlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{rangerlevel|}}} | [[category:ranger nonverbal spells|{{{rangerlevel}}} {{PAGENAME}}]]}}{{ | |||
#if: {{{magelevel|}}} | [[category:sorcerer/wizard nonverbal spells|{{{magelevel}}} {{PAGENAME}}]]}} }}</includeonly><noinclude> | |||
---- | |||
Parameters for this template are | |||
* '''Spell levels:''' | |||
**''bardlevel'' — The level of this spell when cast by a [[bard]]. ''Optional'' | |||
**''clericlevel'' — The level of this spell when cast by a [[cleric]]. ''Optional'' | |||
**''druidlevel'' — The level of this spell when cast by a [[druid]]. ''Optional'' | |||
**''paladinlevel'' — The level of this spell when cast by a [[paladin]]. ''Optional'' | |||
**''rangerlevel'' — The level of this spell when cast by a [[ranger]]. ''Optional'' | |||
**''magelevel'' — The level of this spell when cast by a [[sorcerer]] or [[wizard]]. ''Optional'' | |||
**''domain'' — The clerical [[domain]] that grants access to this spell. ''Optional'' | |||
**''domainlevel'' — The level of this spell when granted by this domain. ''Required if domain is specified'' | |||
**''domain2'' — A second clerical domain that grants access to this spell. ''Optional'' | |||
**''domain2level'' — The level of this spell when granted by the second domain. ''Required if domain2 is specified'' | |||
**''domain3'' — A third clerical domain that grants access to this spell. ''Optional'' | |||
**''domain3level'' — The level of this spell when granted by the third domain. ''Required if domain3 is specified'' | |||
**''domain4'' — A fourth clerical domain that grants access to this spell. ''Optional'' | |||
**''domain4level'' — The level of this spell when granted by the fourth domain. ''Required if domain4 is specified'' | |||
**''innatelevel'' — The innate level of this spell. | |||
*''area'' — The area affected by this spell. The values "small", "medium", "large", "huge", "gargantuan", "colossal", and "spellcone" should be used when appropriate. | |||
**''areanote'' — Additional information about the area of effect (e.g. a limit on the number of targets in a colossal area). ''Optional'' | |||
**''conesize'' — This can override the default length of "10" for spell cones. | |||
*''components'' — "V", "S", or "VS" indicating the components this spell utilizes. ''Optional'' | |||
*''counters'' — Additional counterspells, preferably linked. ''Optional'' | |||
*''duration'' — The duration of the spell. | |||
*''immunity'' — The [[descriptor]] (immunity type) of this spell. ''Optional'' | |||
*''range'' — "p", "t", "s", "m", or "l" indicating the range of the spell. | |||
*''save'' — The save allowed for this spell, preferably linked. ''Optional'' | |||
*''school'' — The [[spell school]] of this spell, preferably linked. | |||
*''spellcraft'' — The spellcraft requirement (for epic spells). ''Optional, epic only'' | |||
*''spellresistance'' — Should be "yes" if spell resistance can bock this spell. Should be "yes*" if the BioWare description says spell resistance can block this spell, but it does not actually do so. ''Optional'' | |||
* '''Lines of spells:''' | |||
** ''line'' — a name for the spell line this spell belongs to. ''Optional, but if not set then ''line0'' through ''line9'' are ignored'' | |||
** ''line0'' through ''line9'' — names of spells (not linked) that are considered in the same "line" of spells as the current spell. Use the parameter corresponding to the spell's innate level. Include the current spell. ''Optional, but some should be used if "line" is set'' | |||
** ''linebreach'' — set this (to "yes") to get a table for the breach line of spells. (This is a hack to accommodate ''disjunction'' having two spell lines.) ''Optional'' | |||
*''desc'' — The spell's in-game description. | |||
*''icon'' — The name of the image (icon) for this spell. ''Optional'' | |||
[[category:templates|Spell]] | |||
</noinclude> |
Revision as of 18:43, 5 October 2015
This template is intended to provide uniform formatting of spells. It should be used at the top of a spell article.
{{#if: | [[image:{{{icon}}}|right|Spell]] }}{{
- if: |
{{{line}}} |
---|
{{
|
}}{{#if: |
Breaches |
---|
4: lesser spell breach |
}}Spell level: {{
- if: |bard {{{bardlevel}}}{{#if: |; }} }}{{
- if: |cleric {{{clericlevel}}}{{#if: |; }} }}{{
- if: |druid {{{druidlevel}}}{{#if: |; }} }}{{
- if: |paladin {{{paladinlevel}}}{{#if: |; }} }}{{
- if: |ranger {{{rangerlevel}}}{{#if: |; }} }}{{
- if: |sorcerer/wizard {{{magelevel}}}{{#if: |; }} }}{{
- if: |cleric with [[{{{domain}}} domain]] {{{domainlevel}}}{{#if: |, [[{{{domain2}}} domain]] {{{domain2level}}}{{#if: |, [[{{{domain3}}} domain]] {{{domain3level}}}{{#if: |, [[{{{domain4}}} domain]] {{{domain4level}}} }} }} }} }}
Innate level: {{{innatelevel}}}{{#ifeq: {{{magelevel}}} | epic | |
School: {{{school}}} }}{{#if: |
Descriptor: {{{immunity}}} }}
Components: {{#switch: | VS = verbal, somatic | V-S- = verbal, somatic | V = verbal | S = somatic | none }}
Range: {{
- ifeq: {{{range}}} | p | на себя |{{
- ifeq: {{{range}}} | t | прикосновение |{{
- ifeq: {{{range}}} | s | малая (8 метров) |{{
- ifeq: {{{range}}} | m | средняя (20 метров) |{{
- ifeq: {{{range}}} | l | высокая (40 метров) |{{
- ifeq: {{{range}}} |l*m|
long (40 meters)medium (20 meters) |{{{range}}} }} }} }} }} }} }}
Area of effect: {{
- ifeq: {{{area}}} | small | малый (радиус 1.67 метра) |{{
- ifeq: {{{area}}} | medium | средний (радиус 3.33 метра) |{{
- ifeq: {{{area}}} | large | большой (радиус 5 метров) |{{
- ifeq: {{{area}}} | huge | огромный (радиус 6.67 метров) |{{
- ifeq: {{{area}}} | gargantuan | гигантский (радиус 8.33 метров) |{{
- ifeq: {{{area}}} | colossal | колоссальный (радиус 10 метров) |{{
- ifeq: {{{area}}} | spellcone | конус {{#if: 10 | 10 |10}} метров |{{
- ifeq: {{{area}}} | aura | {{#if: 10 | 10 | 4}} метров |{{{area}}} }} }} }} }} }} }} }} }}
Duration: {{{duration}}}
Save: none
Spell resistance: {{#ifeq: | yes | yes | {{#ifeq: | yes* | yes no | no }} }}{{
- if: |
Additional counterspells: {{{counters}}} }}
Description: {{{desc}}}{{
- ifeq: {{{magelevel}}} | epic |
Special: Epic spells are not affected by arcane spell failure from armor, nor can they be interrupted, countered, or dispelled.{{ - if: |
Spellcraft prerequisite: {{{spellcraft}}} }} }}
Parameters for this template are
- Spell levels:
- bardlevel — The level of this spell when cast by a bard. Optional
- clericlevel — The level of this spell when cast by a cleric. Optional
- druidlevel — The level of this spell when cast by a druid. Optional
- paladinlevel — The level of this spell when cast by a paladin. Optional
- rangerlevel — The level of this spell when cast by a ranger. Optional
- magelevel — The level of this spell when cast by a sorcerer or wizard. Optional
- domain — The clerical domain that grants access to this spell. Optional
- domainlevel — The level of this spell when granted by this domain. Required if domain is specified
- domain2 — A second clerical domain that grants access to this spell. Optional
- domain2level — The level of this spell when granted by the second domain. Required if domain2 is specified
- domain3 — A third clerical domain that grants access to this spell. Optional
- domain3level — The level of this spell when granted by the third domain. Required if domain3 is specified
- domain4 — A fourth clerical domain that grants access to this spell. Optional
- domain4level — The level of this spell when granted by the fourth domain. Required if domain4 is specified
- innatelevel — The innate level of this spell.
- area — The area affected by this spell. The values "small", "medium", "large", "huge", "gargantuan", "colossal", and "spellcone" should be used when appropriate.
- areanote — Additional information about the area of effect (e.g. a limit on the number of targets in a colossal area). Optional
- conesize — This can override the default length of "10" for spell cones.
- components — "V", "S", or "VS" indicating the components this spell utilizes. Optional
- counters — Additional counterspells, preferably linked. Optional
- duration — The duration of the spell.
- immunity — The descriptor (immunity type) of this spell. Optional
- range — "p", "t", "s", "m", or "l" indicating the range of the spell.
- save — The save allowed for this spell, preferably linked. Optional
- school — The spell school of this spell, preferably linked.
- spellcraft — The spellcraft requirement (for epic spells). Optional, epic only
- spellresistance — Should be "yes" if spell resistance can bock this spell. Should be "yes*" if the BioWare description says spell resistance can block this spell, but it does not actually do so. Optional
- Lines of spells:
- line — a name for the spell line this spell belongs to. Optional, but if not set then line0 through line9 are ignored
- line0 through line9 — names of spells (not linked) that are considered in the same "line" of spells as the current spell. Use the parameter corresponding to the spell's innate level. Include the current spell. Optional, but some should be used if "line" is set
- linebreach — set this (to "yes") to get a table for the breach line of spells. (This is a hack to accommodate disjunction having two spell lines.) Optional
- desc — The spell's in-game description.
- icon — The name of the image (icon) for this spell. Optional