No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
{{CoE Styles}} | {{CoE Styles}} | ||
==CoE Spell== | ==CoE Spell== | ||
Inserts a single spell for CoE. | Inserts a single spell for CoE. | ||
Line 9: | Line 9: | ||
<div class="spell-grid"> | <div class="spell-grid"> | ||
<div class="spell-icon-block">[[Image:SF CoE Zombify | <div class="spell-icon-block">[[Image:SF CoE Icon Zombify.png|link=Zombify (CoE) (Spell)]]</div> | ||
<div class="spell-title-left-block left outer"></div> | <div class="spell-title-left-block left outer"></div> | ||
<div class="spell-title-block"><h4><div class="spell-title"> | <div class="spell-title-block"><h4><div class="spell-title">Zombify</div></h4></div> | ||
<div class="spell-subtitle-block spell-subtitle">Instant</div> | <div class="spell-subtitle-block spell-subtitle">Instant</div> | ||
<div class="spell-title-right-block right outer"></div> | <div class="spell-title-right-block right outer"></div> | ||
Line 18: | Line 18: | ||
<div class="spell-upkeep-block spell-resource-text">[[Image:SF CoE Icon Mana Upkeep Transparent.png|20px|link=|Mana Upkeep]] 0</div> | <div class="spell-upkeep-block spell-resource-text">[[Image:SF CoE Icon Mana Upkeep Transparent.png|20px|link=|Mana Upkeep]] 0</div> | ||
<div class="spell-info-block spell-text">Turn your own mortal unit permanently into a [[Walking Corpses(CoE)|Walking Corpse]] - a strong, resilient minion that doesn't require upkeep.</div> | <div class="spell-info-block spell-text">Turn your own mortal unit permanently into a [[Walking Corpses(CoE)|Walking Corpse]] - a strong, resilient minion that doesn't require upkeep.</div> | ||
<div class="spell-page-block spell-flavor-text">[[Death Magic School#Spellpage I (Slot 1)|Death Spellpage I (Slot 1)]]</div> | <div class="spell-page-block spell-flavor-text">[[Death Magic School#Spellpage I (Slot 1)|Death Spellpage I (Slot 1)]]</div> | ||
<div class="spell-flavor-block spell-flavor-text"><i>Sometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion.</i></div> | <div class="spell-flavor-block spell-flavor-text"><i>Sometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion.</i></div> | ||
Line 76: | Line 75: | ||
|The type of spell, typically "Summoning", "Instant", "Unit Enchantment", "Global Enchantment", "Tower Room", or "Shaper Secret" | |The type of spell, typically "Summoning", "Instant", "Unit Enchantment", "Global Enchantment", "Tower Room", or "Shaper Secret" | ||
|''Instant'' | |''Instant'' | ||
|- | |||
|room-name | |||
|Leave blank '''unless the type is "Tower Room",''' in which case use the title of the tower room itself to link to. | |||
| | |||
|- | |- | ||
|icon | |icon | ||
Line 116: | Line 119: | ||
|Text that appears after the link (if any). | |Text that appears after the link (if any). | ||
|'' - a strong, resilient minion that doesn't require upkeep.'' | |'' - a strong, resilient minion that doesn't require upkeep.'' | ||
|- | |- | ||
|school | |school | ||
Line 144: | Line 143: | ||
<div class="spell-main-block"> | <div class="spell-main-block"> | ||
<div class="spell-grid"> | <div class="spell-grid"> | ||
{{#ifeq: {{{type}}} |Tower Room| | |||
<div class="spell-icon-block">[[Image:{{{icon}}}|link={{#if: {{{linked|}}} | {{{ | <div class="spell-title-left-block left outer"></div> | ||
<div class="spell-title-block"><h4><div class="spell-title">{{{title}}}</div></h4></div> | |||
<div class="spell-subtitle-block spell-subtitle">{{{type|}}}</div> | |||
<div class="spell-title-right-block right outer"></div> | |||
<div class="spell-room-icon-block">[[Image:{{#setmainimage: {{{icon}}} }}|link={{{room-name}}}]]</div> | |||
<div class="spell-research-block spell-resource-text">[[Image:SF CoE Icon Research Transparent.png|20px|link=|Research Cost]] {{{research|0}}}</div> | |||
<div class="spell-mana-block spell-resource-text">[[Image:SF CoE Icon Mana Transparent.png|20px|link=|Mana Cost]] {{{mana|0}}}</div> | |||
<div class="spell-upkeep-block spell-resource-text">[[Image:SF CoE Icon Mana Upkeep Transparent.png|20px|link=|Mana Upkeep]] {{{upkeep|0}}}</div> | |||
<div class="spell-page-block spell-flavor-text">{{#if: {{{linked|}}} | {{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}}) | [[{{{school}}} Magic School#Spellpage {{{roman-numeral}}} (Slot {{{slot}}})|{{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}})]] }} </div> | |||
<div class="spell-flavor-block spell-flavor-text"><i>{{{flavor}}}</i></div> | |||
| | |||
<div class="spell-icon-block">[[Image:{{#setmainimage: {{{icon}}} }}|link=]]</div> | |||
<div class="spell-title-left-block left outer"></div> | <div class="spell-title-left-block left outer"></div> | ||
<div class="spell-title-block"><h4><div class="spell-title"> | <div class="spell-title-block"><h4><div class="spell-title">{{{title}}}</div></h4></div> | ||
<div class="spell-subtitle-block spell-subtitle">{{{type|}}}</div> | <div class="spell-subtitle-block spell-subtitle">{{{type|}}}</div> | ||
<div class="spell-title-right-block right outer"></div> | <div class="spell-title-right-block right outer"></div> | ||
Line 153: | Line 163: | ||
<div class="spell-mana-block spell-resource-text">[[Image:SF CoE Icon Mana Transparent.png|20px|link=|Mana Cost]] {{{mana|0}}}</div> | <div class="spell-mana-block spell-resource-text">[[Image:SF CoE Icon Mana Transparent.png|20px|link=|Mana Cost]] {{{mana|0}}}</div> | ||
<div class="spell-upkeep-block spell-resource-text">[[Image:SF CoE Icon Mana Upkeep Transparent.png|20px|link=|Mana Upkeep]] {{{upkeep|0}}}</div> | <div class="spell-upkeep-block spell-resource-text">[[Image:SF CoE Icon Mana Upkeep Transparent.png|20px|link=|Mana Upkeep]] {{{upkeep|0}}}</div> | ||
<div class="spell-info-block spell-text">{{{description-start}}} {{#if: {{{description-link|}}} | {{#if: {{{link-tooltip|}}} | <div class="tooltip-wrapper">[[{{{description-link-page|description-link}}}|{{{description-link}}}]]<div class="{{{link-tooltip-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{link-tooltip|SF CoE Elemental Spacer.png}}}]]</span></div></div> | [[{{{description-link-page|description-link}}}|{{{description-link}}}]] }} | }} {{{description-end}}} | <div class="spell-info-block spell-text">{{{description-start}}} {{#if: {{{description-link|}}} | {{#if: {{{link-tooltip|}}} | <div class="tooltip-wrapper">[[{{{description-link-page|description-link}}}|{{{description-link}}}]]<div class="{{{link-tooltip-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{link-tooltip|SF CoE Elemental Spacer.png}}}]]</span></div></div> | [[{{{description-link-page|description-link}}}|{{{description-link}}}]] }} | }} {{{description-end|}}}</div> | ||
<div class="spell-page-block spell-flavor-text">{{#if: {{{linked|}}} | {{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}}) | [[{{{school}}} Magic School#Spellpage {{{roman-numeral}}} (Slot {{{slot}}})|{{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}})]] }} </div> | <div class="spell-page-block spell-flavor-text">{{#if: {{{linked|}}} | {{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}}) | [[{{{school}}} Magic School#Spellpage {{{roman-numeral}}} (Slot {{{slot}}})|{{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}})]] }} </div> | ||
<div class="spell-flavor-block spell-flavor-text"><i>{{{flavor}}}</i></div> | <div class="spell-flavor-block spell-flavor-text"><i>{{{flavor}}}</i></div> | ||
}} | |||
</div> | </div> | ||
</div> | </div> |
Latest revision as of 20:20, 10 October 2023
CoE Spell
Inserts a single spell for CoE.
Example Preview
Zombify
Example Usage
{{CoE Spell
|title = Zombify
|linked = Zombify
|type = Instant
|icon = SF CoE Zombify Icon.png
|research = 40
|mana = 9
|description-start = Turn your own mortal unit permanently into a
|link = Walking Corpse
|link-page = Walking Corpses(CoE)
|description-end = - a strong, resilient minion that doesn't require upkeep.
|blank = SF CoE Zombify Blank.png
|school = Death
|roman-numeral = I
|slot = 1
|flavor = ometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion.ometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion.
}}
How to Use This Template & Parameters
Parameters define the data that gets be passed to the template. That's how the template "knows" what to display for you. They can loosely be called variables.
The ONLY required parameter is title. While most parameters are optional, most should have real values for the spell to render correctly in the article.
THIS TEMPLATE'S parameters do not need to be used in order, but you do need to specify the parameter name, the = sign, and then the data/text you want to use, separated by the | sign. See the Example Usage section below.
- Table Column Explanations
- Parameter is the name for what you are describing.
- Value is the text/info you want to show.
- Example is what is shown in the Example Usage and Example Preview sections.
Parameter | Value | Example |
---|---|---|
title | The name of the spell you are making. ** Header Level 4 ** | Zombify |
linked (optional) | Leave blank if you do NOT wish to link the item. List the name of the page to link to otherwise. | Zombify |
type | The type of spell, typically "Summoning", "Instant", "Unit Enchantment", "Global Enchantment", "Tower Room", or "Shaper Secret" | Instant |
room-name | Leave blank unless the type is "Tower Room", in which case use the title of the tower room itself to link to. | |
icon | The square icon next to the spell description and costs in the in-game Grimoire. | SF CoE Zombify Icon.png |
research | The cost to research the spell, which must be completed before the spell can be used. | 40 |
mana | The cost to cast the spell (one-time cost). | 9 |
upkeep (optional) | The cost to maintain the spell (every day). Leave blank if there is no upkeep. | |
description-start | The spell's description, before any link (if any). | Turn your own mortal unit permanently into a |
description-link (optional) | Leave blank if there is nothing to link in the spell's description. Otherwise use the text to display for the link. | Walking Corpse |
description-link-page (optional) | Leave blank if there is nothing to link in the spell's description. Otherwise use the page title for the link. If the page title matches exactly with the link text, you can leave this blank. | Walking Corpses(CoE) |
link-tooltip (optional) | Leave blank if there is no tooltip for the description link. Otherwise use the image to display for the tooltip. | Walking Corpse |
link-tooltip-type (optional) | Leave blank if there is no tooltip. Use "tooltip", "tooltip-short", or "tooltip-long" to determine how far above the text the tooltip image should begin. | |
description-end (optional) | Text that appears after the link (if any). | - a strong, resilient minion that doesn't require upkeep. |
school | The magic school the spell belongs to. | Death |
roman-numeral | This MUST be the capital Roman Numeral for the spellpage for the link to work properly. "I", "II", "III", or "IV" are the only acceptable inputs. | I |
slot | This is the spell slot for the spell, and MUST be correct for the link to work properly. "1", "2", "3", or "4" are the only acceptable inputs. | 1 |
flavor (optional) | This is the flavor slot for the spell. | Sometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion. |