Anonymous
×
Create a new article
Write your page title here:
We currently have 667 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:CharacterInfoBox CoE: Difference between revisions

NeoX (talk | contribs)
Created page with "<infobox theme="item_box"> <title source="name"> <default>{{PAGENAME}}</default> <format>{{#if:{{{icon|}}}|<div class="title-icon" style="float: right;">[[File:{{{icon|SF logo.png}}}|42px|link=]]</div>}}<span style="display: inline-block;width: calc(100% - 43px);padding: 0 2px;box-sizing: border-box;">{{{name|}}}</span></format> </title> <image source="image"> <caption source="caption" /> </image> <data source="unit_type"> <label>Unit Type</label> <form..."
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 12: Line 12:
</data>
</data>
     <data source="unit_upkeep">
     <data source="unit_upkeep">
         <label>Unit UpKeep</label>
         <label>Unit Upkeep</label>
<format><span style="font-family: monospace; font-size: 8pt;">{{{unit_upkeep|}}}</span></format>
<format><span style="font-family: monospace; font-size: 8pt;">{{{unit_upkeep|}}}</span></format>
     </data>
     </data>
   <group>
   <group>
     <header><p style="padding: 3px;margin: 0;line-height: 1;">Unit Info</p></header>
     <header><p style="padding: 3px;margin: 0;line-height: 1;">'''Unit Info'''</p></header>
<data source="health"><label>Health</label></data>
<data source="health"><label>Health</label></data>
<data source="focus"><label>Focus</label></data>
<data source="focus"><label>Focus</label></data>
Line 22: Line 22:
<data source="willpower"><label>Willpower</label></data>
<data source="willpower"><label>Willpower</label></data>
<data source="speed"><label>Speed</label></data>
<data source="speed"><label>Speed</label></data>
  </group>
  <header><p style="padding: 3px;margin: 0;line-height: 1;">'''Slots'''</p></header>
  <group>
<data source="glyph_slot"><label>Glyph Slot</label></data>
    <header><p style="border-bottom: 1px solid;">Unit-Info</p>
<data source="artifact_slot"><label>Artifact Slot</label></data>
<span style="display: inline-block;box-sizing: border-box;font-style:italic;font-size:85%; color:#ff0;">The base info of the Unit.</span></header>
<data source="mind_slot"><label>Mind Slot</label></data>
<data source="health"><format><div class="grid-row" style="display: flex;flex-flow: row wrap;justify-content: center;align-items: center;padding: 0;gap: 3px;width: 100%;">
      {{#if:{{{health|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 5px 7px;line-height: 1;margin: 0;border: 1px solid #ca6;box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);"><b>Health</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{health}}}</span></div>}}
      {{#if:{{{focus|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 5px 7px;line-height: 1;margin:0;border: 1px solid #ca6;box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);"><b>Focus</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{focus}}}</span></div>}}
      {{#if:{{{armor|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 5px 7px;line-height: 1;margin: 0;border: 1px solid #ca6;box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);"><b>Armor</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{armor}}}</span></div>}}
      {{#if:{{{willpower|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 5px 7px;line-height: 1;margin:0;border: 1px solid #ca6;box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);"><b>Willpower</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{willpower}}}</span></div>}}
      {{#if:{{{speed|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 5px 7px;line-height: 1;margin:0;border: 1px solid #ca6;box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);"><b>Speed</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{speed}}}</span></div>}}
</div></format></data>
   </group>
   </group>
</infobox>
</infobox>
Line 55: Line 48:
  |willpower      =
  |willpower      =
  |speed          =
  |speed          =
|glyph_slot    =
|artifact_slot  =
|mind_slot      =
}}
}}
</nowiki>
</nowiki>
Line 73: Line 69:
  |willpower      = 100
  |willpower      = 100
  |speed          = 100
  |speed          = 100
|glyph_slot    = 1
|artifact_slot  = 1
|mind_slot      = 3
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 05:07, 10 November 2025

Usage

NOTE: the setting {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}} is used IF you want to define that image as the main image to show on social media sharing sites.


{{CharacterInfoBox_CoE |name = |icon = |image = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}} |caption = |title = |unit_type = |unit_upkeep = |health = |focus = |armor = |willpower = |speed = |glyph_slot = |artifact_slot = |mind_slot = }}

Preview