Anonymous
×
Create a new article
Write your page title here:
We currently have 632 articles on SpellForce Wiki - Rohens encyclopedia. Type your article name above or click on one of the titles below and start writing!



SpellForce Wiki - Rohens encyclopedia

Template:CoE Spell: Difference between revisions

Basara (talk | contribs)
No edit summary
Basara (talk | contribs)
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{CoE Styles}}
{{CoE Styles}}
<noinclude>
==CoE Spell==
==CoE Spell==
Inserts a single spell for CoE. While most parameters are optional, they should have real values for the spell to render correctly in the article.
Inserts a single spell for CoE.  


===Example Preview===
===Example Preview===


<div class="spell-block">
<div class="spell-main-block">
<div>
<div class="spell-grid">
   <div class="item-icon">[[Image:SF CoE Icon Battle Robe.png|50px]]</div>
 
   <h4><div class="item-title">Battle Robe</div></h4>
   <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-block"><h4><div class="spell-title">Zombify</div></h4></div>
  <div class="spell-subtitle-block spell-subtitle">Instant</div>
  <div class="spell-title-right-block right outer"></div>
  <div class="spell-research-block spell-resource-text">[[Image:SF CoE Icon Research Transparent.png|20px|link=|Research Cost]] 40</div>
  <div class="spell-mana-block spell-resource-text">[[Image:SF CoE Icon Mana Transparent.png|20px|link=|Mana Cost]] 9</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-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>
</div>
  <div class="item-subtitle">Artifact, Ingredient, Light Armor</div>
<div>
  <div class="item-threshold>[[Image:SF CoE Elemental 2.png|50px]] [[Image:SF CoE Life 1.png|25px]]</div>
  <div class="item-cost>[[Image:SF CoE Item Gold Cost.png|30px]] 10</div>
</div>
  <div class="item-block-splitter">[[Image:SF CoE Item Block Splitter.png|320px]]</div>
  <div class="item-text">+2 Speed</div>
  <div class="item-text">Grants <div class="tooltip-wrapper"> [[Quick Reflexes|Qiuck reflexes]]<div class="tooltip"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:SF CoE Ability Quick Reflexes.png]]</span></div></div></div>
</div>
</div>


===Example Usage===
===Example Usage===
<nowiki>
<nowiki>
{{CoE Item </nowiki><br><nowiki>
{{CoE Spell</nowiki><br><nowiki>
|title = Battle Robe </nowiki><br><nowiki>
|title = Zombify </nowiki><br><nowiki>
|sub-title = Artifact, Ingredient, Light Armor </nowiki><br><nowiki>
|linked = Zombify </nowiki><br><nowiki>
|icon = SF CoE Icon Battle Robe.png </nowiki><br><nowiki>
|type = Instant </nowiki><br><nowiki>
|value-gold = 10 </nowiki><br><nowiki>
|icon = SF CoE Zombify Icon.png </nowiki><br><nowiki>
|value-elemental = 2 </nowiki><br><nowiki>
|research = 40 </nowiki><br><nowiki>
|value-life = 1 </nowiki><br><nowiki>
|mana = 9 </nowiki><br><nowiki>
|line-1 = +2 Speed. </nowiki><br><nowiki>
|description-start = Turn your own mortal unit permanently into a </nowiki><br><nowiki>
|line-2 = Grants </nowiki><br><nowiki>
|link = Walking Corpse </nowiki><br><nowiki>
|tooltip-2-type = tooltip-short </nowiki><br><nowiki>
|link-page = Walking Corpses(CoE) </nowiki><br><nowiki>
|tooltip-2 = Quick Reflexes </nowiki><br><nowiki>
|description-end = - a strong, resilient minion that doesn't require upkeep. </nowiki><br><nowiki>
|tooltip-2-img = SF CoE Ability Quick Reflexes.png </nowiki><br><nowiki>
|blank = SF CoE Zombify Blank.png </nowiki><br><nowiki>
|school = Death </nowiki><br><nowiki>
|roman-numeral = I </nowiki><br><nowiki>
|slot = 1 </nowiki><br><nowiki>
|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. </nowiki><br><nowiki>
}}
}}
</nowiki>
</nowiki>
Line 42: Line 49:
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.
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.'' But if that is the only parameter you list, it will be an empty box (besides the item title).
''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 [[#See Example Usage|Example Usage]] section below.
''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 [[#See Example Usage|Example Usage]] section below.
Line 58: Line 65:
|-
|-
|title
|title
|The name of the item you are making. ** Header Level 4 **
|The name of the spell you are making. ** Header Level 4 **
|''Battle Robe''
|''Zombify''
|-
|-
|sub-title
|linked ''(optional)''
|Sub-classes or categories the item falls into.  
|Leave blank if you do NOT wish to link the item. List the name of the page to link to otherwise.  
|''Artifact, Ingredient, Light Armor''
|''Zombify''
|-
|-
|icon
|type
|File name for the icon.
|The type of spell, typically "Summoning", "Instant", "Unit Enchantment", "Global Enchantment", "Tower Room", or "Shaper Secret"
|''SF CoE Icon Battle Robe.png''
|''Instant''
|-
|-
|value-gold
|room-name
|The gold value of the item.
|Leave blank '''unless the type is "Tower Room",''' in which case use the title of the tower room itself to link to.
|''10''
|-
|value-mana
|The mana value of the item.
|
|
|-
|-
|value-elemental
|icon
|The elemental ([[Image:SF CoE Elemental 1.png|20px]]) value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
|The square icon next to the spell description and costs in the in-game Grimoire.
|''2''
|''SF CoE Zombify Icon.png''
|-
|-
|value-life
|research
|The life ([[Image:SF CoE Life 1.png|20px]]) value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
|The cost to research the spell, which must be completed before the spell can be used.
|''1''
|''40''
|-
|-
|value-death
|mana
|The death ([[Image:SF CoE Death 1.png|20px]]) value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
|The cost to cast the spell (one-time cost).
|
|''9''
|-
|-
|value-arcane
|upkeep ''(optional)''
|The arcane ([[Image:SF CoE Arcane 1.png|20px]]) value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
|The cost to maintain the spell (every day). Leave blank if there is no upkeep.
|
|
|-
|-
|value-amplifier
|description-start
|The amplifier ([[Image:SF CoE Amplifier 1.png|20px]]) value (ingredients, artifacts, etc.).
|The spell's description, before any link (if any).
|
|''Turn your own mortal unit permanently into a ''
|-
|-
|line-1
|description-link ''(optional)''
|rowspan="4"|The [first / second / third / fourth] line of the description (before any link / tooltip text).
|Leave blank if there is nothing to link in the spell's description. Otherwise use the text to display for the link.
|''+2 Speed''
|''Walking Corpse''
|-
|-
|line-2
|description-link-page ''(optional)''
|''Grants''
|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)''
|-
|-
|line-3
|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''
|-
|-
|line-4
|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.
|
|
|-
|-
|line-1-link
|description-end ''(optional)''
|rowspan="4"|If there is no link / tooltip, do not use this parameter.<br>The linked text (can show tooltip display with mouse hover on computers).
|Text that appears after the link (if any).
|
|'' - a strong, resilient minion that doesn't require upkeep.''
|-
|-
|line-2-link
|school
|''Quick Reflexes''
|The magic school the spell belongs to.
|''Death''
|-
|-
|line-3-link
|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''
|-
|-
|line-4-link
|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''
|line-1-link-page
|rowspan="4"|If there is no link / tooltip, do not use this parameter.<br>The link for the page that has the full data.<br>If the page title matches ''EXACTLY'' with the [line-#-link] text, you can leave this out and it will automatically link to that page. (The example is blank because the page name is also Quick Reflexes.)
|
|-
|line-2-link-page
|
|-
|line-3-link-page
|
|-
|line-4-link-page
|
|-
|-
|tooltip-1-type
|flavor ''(optional)''
|rowspan="4"|If there is no tooltip, do not use this parameter.<br>Use "tooltip", "tooltip-short", or "tooltip-long" to determine how far above the text the tooltip image should begin.
|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.''
|-
|tooltip-2-type
|''tooltip-short''
|-
|tooltip-3-type
|
|-
|tooltip-4-type
|
|-
|tooltip-1-img
|rowspan="4"|If there is no tooltip, do not use this parameter.<br>File name for the tooltip image.
|
|-
|tooltip-2-img
|''SF CoE Ability Quick Reflexes.png''
|-
|tooltip-3-img
|
|-
|tooltip-4-img
|
|-
|line-1-end
|rowspan="4"|If there is no link / tooltip, do not use this parameter.<br>Text that appears after a link / tooltip (if any).
|
|-
|line-2-end
|
|-
|line-3-end
|
|-
|line-4-end
|
|}
|}


Line 179: Line 140:
</noinclude>
</noinclude>


<div class="item-block">
 
<div>
<div class="spell-main-block">
  <div class="item-icon">[[Image:{{{icon|Icon Spacer.png}}}|50px|link=]]</div>
<div class="spell-grid">
   <h4><div class="item-title">{{{title}}}</div></h4>
{{#ifeq: {{{type}}} |Tower Room|  
</div>
  <div class="spell-title-left-block left outer"></div>
   <div class="item-subtitle">{{{sub-title|}}}</div>
   <div class="spell-title-block"><h4><div class="spell-title">{{{title}}}</div></h4></div>
<div>
   <div class="spell-subtitle-block spell-subtitle">{{{type|}}}</div>
   <div class="item-threshold">[[Image:SF CoE Elemental {{{value-elemental|Spacer}}}.png|link=|Elemental Threshold]][[Image:SF CoE Life {{{value-life|Spacer}}}.png|link=|Life Threshold]][[Image:SF CoE Death {{{value-death|Spacer}}}.png|link=|Death Threshold]][[Image:SF CoE Arcane {{{value-arcane|Spacer}}}.png|link=|Arcane Threshold]][[Image:SF CoE Amplifier {{{value-amplifier|Spacer}}}.png|link=|Amplifier Value]]</div>
  <div class="spell-title-right-block right outer"></div>
   <div class="item-cost">{{#ifexpr: {{{value-gold|}}} | [[Image:SF CoE Item Gold Cost.png|28px|link=|Gold]] {{{value-gold}}} | }}{{#ifexpr: {{{value-mana|}}} | [[Image:SF CoE Item Mana Cost.png|28px|link=|Mana]] {{{value-mana}}} | }}</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-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-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-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-flavor-block spell-flavor-text"><i>{{{flavor}}}</i></div>
}}
</div>
</div>
  <div class="item-block-splitter">[[Image:SF CoE Item Block Splitter.png|320px|link=]]</div>
{{#if: {{{line-1|}}} | <div class="item-text">{{{line-1|}}} {{#if: {{{line-1-link|}}} | <div class="tooltip-wrapper">[[{{{line-1-link-page| {{{line-1-link|}}} }}}|{{{line-1-link|}}}]]<div class="{{{tooltip-1-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-1-img|SF CoE Elemental Spacer.png}}}]]</span></div></div> | }} {{{line-1-end|}}}</div> | }} {{#if: {{{line-2|}}} | <div class="item-text">{{{line-2|}}} {{#if: {{{line-2-link|}}} | <div class="tooltip-wrapper">[[{{{line-2-link-page| {{{line-2-link|}}} }}}|{{{line-2-link|}}}]]<div class="{{{tooltip-2-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-2-img|SF CoE Elemental Spacer.png}}}]]</span></div></div> | }} {{{line-2-end|}}}</div> | }} {{#if: {{{line-3|}}} | <div class="item-text">{{{line-3|}}} {{#if: {{{line-3-link|}}} | <div class="tooltip-wrapper">[[{{{line-3-link-page| {{{line-3-link|}}} }}}|{{{line-3-link|}}}]]<div class="{{{tooltip-3-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-3-img|SF CoE Elemental Spacer.png}}}]]</span></div></div> | }} {{{line-3-end|}}}</div> | }} {{#if: {{{line-4|}}} | <div class="item-text">{{{line-4|}}} {{#if: {{{line-4-link|}}} | <div class="tooltip-wrapper">[[{{{line-4-link-page| {{{line-4-link|}}} }}}|{{{line-4-link|}}}]]<div class="{{{tooltip-4-type|tooltip}}}"><span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-4-img|SF CoE Elemental Spacer.png}}}]]</span></div></div> | }} {{{line-4-end|}}}</div> | }}
</div>
</div>

Latest revision as of 20:20, 10 October 2023


CoE Spell

Inserts a single spell for CoE.

Example Preview

Zombify

Instant
Research Cost 40
Mana Cost 9
Mana Upkeep 0
Turn your own mortal unit permanently into a Walking Corpse - a strong, resilient minion that doesn't require upkeep.
Sometimes you need to end a life to renew it. Consumes the target to create a more pliable and resilient minion.

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.
Template Parameters
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.

Template Markup

[[Image:{{{icon}}}|link=]]

{{{title}}}

Research Cost 0
Mana Cost 0
Mana Upkeep 0
{{{description-start}}}
[[{{{school}}} Magic School#Spellpage {{{roman-numeral}}} (Slot {{{slot}}})|{{{school}}} Spellpage {{{roman-numeral}}} (Slot {{{slot}}})]]
{{{flavor}}}