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 Item: Difference between revisions

Basara (talk | contribs)
No edit summary
Basara (talk | contribs)
WIP
Line 17: Line 17:
</div>
</div>
   <div class="item-block-splitter">[[Image:SF CoE Item Block Splitter.png|320px]]</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">+2 Speed.</div>
   <div class="item-text">Grants <div class="tooltip-short">Quick Reflexes<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:SF CoE Ability Quick Reflexes.png]]</span></div></div>
   <div class="item-text">Grants <div class="tooltip-short">Quick Reflexes<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>


===Using This Template & Parameters===
===Example Usage===
<nowiki>
{{CoE Item </nowiki><br><nowiki>
|title = Battle Robe </nowiki><br><nowiki>
|sub-title = Artifact, Ingredient, Light Armor </nowiki><br><nowiki>
|icon = SF CoE Icon Battle Robe.png </nowiki><br><nowiki>
|value-gold = 10 </nowiki><br><nowiki>
|value-elemental = 2 </nowiki><br><nowiki>
|value-life = 1 </nowiki><br><nowiki>
|line-1 = +2 Speed. </nowiki><br><nowiki>
|line-2 = Grants </nowiki><br><nowiki>
|tooltip-2-type = tooltip-short </nowiki><br><nowiki>
|tooltip-2 = Quick Reflexes </nowiki><br><nowiki>
|tooltip-2-img = SF CoE Ability Quick Reflexes.png </nowiki><br><nowiki>
|line-2-end = . </nowiki><br><nowiki>
}}
</nowiki>
 
===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.
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.
Line 121: Line 139:
|-
|-
|line-2-end
|line-2-end
|
| .
|-
|-
|line-3-end
|line-3-end
|
|
|}
|}
===Example Usage===
<nowiki>
{{CoE Item
</nowiki><br><nowiki>
|title = Battle Robe
</nowiki><br><nowiki>
|sub-title = Artifact, Ingredient, Light Armor
</nowiki><br><nowiki>
|line-1-start    = +2 Speed
</nowiki><br><nowiki>
|line-2-start = Grants
</nowiki><br><nowiki>
|line-2-tooltip = Quick Reflexes
</nowiki><br><nowiki>
|line-2-tooltip-type  = tooltip-short
</nowiki><br><nowiki>
|line-2-image = Image:SF CoE Ability Quick Reflexes.png
</nowiki><br><nowiki>
}}
</nowiki>


==Template Markup==
==Template Markup==
Line 167: Line 160:
   <div class="item-threshold>[[Image:SF CoE Elemental {{{value-elemental|Spacer}}}.png]][[Image:SF CoE Life {{{value-life|Spacer}}}.png]]    [[Image:SF CoE Death {{{value-death|Spacer}}}.png]][[Image:SF CoE Arcane {{{value-arcane|Spacer}}}.png]]</div>
   <div class="item-threshold>[[Image:SF CoE Elemental {{{value-elemental|Spacer}}}.png]][[Image:SF CoE Life {{{value-life|Spacer}}}.png]]    [[Image:SF CoE Death {{{value-death|Spacer}}}.png]][[Image:SF CoE Arcane {{{value-arcane|Spacer}}}.png]]</div>
   <div class="item-cost>
   <div class="item-cost>
     {{#iferror: {{{value-gold}}} | [[Image:SF CoE Item Gold Cost.png|28px]] {{{value-gold}}} | }}
     {{#if: {{{value-gold}}} | [[Image:SF CoE Item Gold Cost.png|28px]] {{{value-gold}}} | }}
     {{#iferror: {{{value-mana}}} | [[Image:SF CoE Item Mana Cost.png|28px]] {{{value-mana}}} | }}
     {{#if: {{{value-mana}}} | [[Image:SF CoE Item Mana Cost.png|28px]] {{{value-mana}}} | }}
   </div>
   </div>
</div>
</div>
   <div class="item-block-splitter">[[Image:SF CoE Item Block Splitter.png|320px]]</div>
   <div class="item-block-splitter">[[Image:SF CoE Item Block Splitter.png|320px]]</div>
  {{#if: {{{tooltip-1}}} | <div class="item-text">{{{line-1|}}} <div class="{{{tooltip-1-type|}}}">{{{tooltip-1|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-1-img}}}]]</span></div> {{{line-1-end|}}}</div> | <div class="item-text">{{{line-1|}}}</div> }}
   <div class="item-text">{{{line-1|}}} <div class="{{{tooltip-1-type|}}}">{{{tooltip-1|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-1-img}}}]]</span></div> {{{line-1-end|}}}</div>
   <div class="item-text">{{{line-1|}}} <div class="{{{tooltip-1-type|}}}">{{{tooltip-1|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-1-img}}}]]</span></div> {{{line-1-end|}}}</div>
   <div class="item-text">{{{line-2|}}} <div class="{{{tooltip-2-type|}}}">{{{tooltip-2|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-2-img|SF CoE Elemental Spacer.png}}}]]</span></div> {{{line-2-end|}}}</div>
   <div class="item-text">{{{line-2|}}} <div class="{{{tooltip-2-type|}}}">{{{tooltip-2|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-2-img|SF CoE Elemental Spacer.png}}}]]</span></div> {{{line-2-end|}}}</div>
   <div class="item-text">{{{line-3|}}} <div class="{{{tooltip-3-type|}}}">{{{tooltip-3|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-3-img}}}]]</span></div> {{{line-3-end|}}}</div>
   <div class="item-text">{{{line-3|}}} <div class="{{{tooltip-3-type|}}}">{{{tooltip-3|}}}<span style="margin: 5px; display: block;height: auto; max-width: 250px;" border="0">[[Image:{{{tooltip-3-img}}}]]</span></div> {{{line-3-end|}}}</div>
</div>
</div>

Revision as of 20:31, 25 September 2023


CoE Item

Inserts a block item for CoE. Typical items are abilities, statuses, room expansions, artifacts, recipes, ingredients, etc.

Example Preview

Battle Robe
Artifact, Ingredient, Light Armor
10
+2 Speed.
Grants
Quick Reflexes
.

Example Usage

{{CoE Item
|title = Battle Robe
|sub-title = Artifact, Ingredient, Light Armor
|icon = SF CoE Icon Battle Robe.png
|value-gold = 10
|value-elemental = 2
|value-life = 1
|line-1 = +2 Speed.
|line-2 = Grants
|tooltip-2-type = tooltip-short
|tooltip-2 = Quick Reflexes
|tooltip-2-img = SF CoE Ability Quick Reflexes.png
|line-2-end = .
}}

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. But if that is the only parameter you list, it will be an empty box (besides the item title).

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 item you are making. Battle Robe
sub-title Sub-classes or categories the item falls into. Artifact, Ingredient, Light Armor
icon File name for the icon. SF CoE Icon Battle Robe.png
value-gold The gold value of the item. 10
value-mana The mana value of the item.
value-elemental The elemental () value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.). 2
value-life The life () value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.). 1
value-death The death () value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
value-arcane The arcane () value (ingredients, artifacts, etc.) or threshold (recipes, room extensions, etc.).
line-1 The [first / second / third] line of the description (before any tooltip text). +2 Speed
line-2 Grants
line-3
tooltip-1-type If there is no tooltip, do not use this parameter.
Use "tooltip", "tooltip-short", or "tooltip-long" to determine how far above the text the tooltip image should begin.
tooltip-2-type tooltip-short
tooltip-3-type
tooltip-1 If there is no tooltip, do not use this parameter.
The text that makes the tooltip display with mouse hover.
tooltip-2 Quick Reflexes
tooltip-3
tooltip-1-img If there is no tooltip, do not use this parameter.
File name for the tooltip image.
tooltip-2-img SF CoE Ability Quick Reflexes.png
tooltip-3-img
line-1-end If there is no tooltip, do not use this parameter.
Text that appears after a tooltip (if any).
line-2-end .
line-3-end

Template Markup

tooltip


{{{title}}}
    {{{value-gold}}}
    {{{value-mana}}}
[[Image:{{{tooltip-1-img}}}]]
[[Image:{{{tooltip-1-img}}}]]
[[Image:{{{tooltip-3-img}}}]]