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

New Unit Info Template: 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..."
 
NeoX (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
<format><span style="font-family: monospace; font-size: 8pt;">{{{unit_type|}}}</span></format>
<format><span style="font-family: monospace; font-size: 8pt;">{{{unit_type|}}}</span></format>
</data>
</data>
     <data source="UpKeep">
     <data source="unit_upkeep">
         <label>Unit UpKeep</label>
         <label>Unit UpKeep</label>
<format><span style="font-family: monospace; font-size: 8pt;">{{{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;">Basic 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 24: Line 24:
   </group>
   </group>
   <group>
   <group>
     <header><p style="border-bottom: 1px solid;">Stats</p>
     <header><p style="border-bottom: 1px solid;">Unit-Info</p>
<span style="display: inline-block;box-sizing: border-box;font-style:italic;font-size:85%; color:#ff0;">The stats of this unit increase as a multiplicator of its level.</span></header>
<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="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%;">
<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:{{{level|}}}|<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>Met at level 💪</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{level}}}</span></div>}}<br>
      {{#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:{{{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:{{{mana|}}}|<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>Mana ⚡️</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{mana}}}</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:{{{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:{{{damage|}}}|<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>Damage ⚔️</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{damage}}}</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>
</div></format></data>
   </group>
   </group>
  <group>
  <header>Resistances</header>
<data source="resistant"><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:{{{veryweak|}}}|<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>Very weak</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{veryweak}}}</span></div>}}
      {{#if:{{{weak|}}}|<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>Weak</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{weak}}}</span></div>}}
      {{#if:{{{resistant|}}}|<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>Resistant</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{resistant}}}</span></div>}}
      {{#if:{{{veryresistant|}}}|<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>Very resistant</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{veryresistant}}}</span></div>}}
      {{#if:{{{immune|}}}|<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>Immune</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{immune}}}</span></div>}}
</div></format></data>
</group>
</infobox>
</infobox>
<noinclude>
<noinclude>
Line 52: Line 42:


<div style="font-family: Consolas, Monaco, monospace;padding: 5px 10px;width: fit-content;border-radius: 10px;overflow-wrap: normal;background-color: rgba(255, 255, 255, 0.65);border: 1px solid #222;color: #333;line-height: 1.2;overflow: auto;white-space: pre-wrap;box-shadow: 0 5px 3px -3px rgba(0,0,0,.5);"><nowiki>
<div style="font-family: Consolas, Monaco, monospace;padding: 5px 10px;width: fit-content;border-radius: 10px;overflow-wrap: normal;background-color: rgba(255, 255, 255, 0.65);border: 1px solid #222;color: #333;line-height: 1.2;overflow: auto;white-space: pre-wrap;box-shadow: 0 5px 3px -3px rgba(0,0,0,.5);"><nowiki>
{{CharacterInfoBox
{{CharacterInfoBox_CoE
  |name          =  
  |name          =  
  |icon          =  
  |icon          =  
Line 58: Line 48:
  |caption        =   
  |caption        =   
  |title          =  
  |title          =  
  |race          =  
  |unit_type      =  
  |gender        =
  |unit_upkeep    =
|class          =
|specialization =
|rank          =
|allegiance    =
|caste          =
|skills        =
|spells        =
|location      =
|quests        = <ul style='list-style-type: "➢ ";'><li>List of quest envolving this character</li></ul>
|status        =
|appearance    = <ul style='list-style-type: "➢ ";'><li>ToOD</li><li>BoW</li><li>SotP</li><li> ...</li></ul>
|unit_id        =
|size          =
|drops          =
|level          =
  |health        =  
  |health        =  
  |damage        =
  |focus          =
|mana          =
  |armor          =
  |armor          =
  |veryweak      =
  |willpower     =
|weak          =
  |speed          =
|resistant     =
  |veryresistant  =
|immune        =
}}
}}
</nowiki>
</nowiki>
Line 89: Line 60:
== Preview ==
== Preview ==
<div style="width: fit-content; display: block;">
<div style="width: fit-content; display: block;">
{{CharacterInfoBox
{{CharacterInfoBox_CoE
  |name          = Character InfoBox
  |name          = Character InfoBox
  |icon          = SF logo.png
  |icon          = SF logo.png
Line 95: Line 66:
  |caption        = image_caption
  |caption        = image_caption
  |title          = Avatar, Hero, Companion, NPC, Merchant, ...
  |title          = Avatar, Hero, Companion, NPC, Merchant, ...
  |race          = Human, Elf, Dwarf, Orc, ...
  |unit_type      = Human, Elf, Dwarf, Orc, ...
  |gender        = Male, Female
  |unit_upkeep    = 10
|class          = Warrior, Rogue, Mage, ...
  |health        = 100
|specialization = Light Combat, Heavy Combat, Mind Magic, ...
  |focus          = 100
|rank          = Critter, Weak, Normal, Lieutenant, Boss, Elite Boss, Player
  |armor          = 100
|allegiance    = The Realm, The Order of Dawn, The Clans, The Pact, ...
  |willpower     = 100
|caste          = Archon, Sinistra, Dracon (Dark Elves Only)
  |speed          = 100
|skills        = Boons, Warcry, Taunt, ...
|spells        = Heal, Pain, ...
|location      = Greyfell
|quests        = <ul style='list-style-type: "➢ ";'><li>List of quest envolving this character</li></ul>
|status        = Alive, Dead, Undead, ...
|appearance    = <ul style='list-style-type: "➢ ";'><li>ToOD</li><li>BoW</li><li>SotP</li><li> ...</li></ul>
|unit_id        = 1, 10, 148, ...
|size          = +20%, -50%, ...
|drops          = item, item1, item2
|level          = 10
  |health        = 500
  |damage        = 50
|mana          = 300
  |armor          = 45
|veryweak      = slashing
  |weak          = piercing
|resistant     = white magic
  |veryresistant  = ice magic
|immune        = fire
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 11:40, 9 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 = }}

Preview