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
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;">{{{UpKeep|}}}</span></format>
Line 29: Line 29:
{{#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:{{{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:{{{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:{{{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:{{{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:{{{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:{{{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>
</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 58: Line 49:
  |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 95: Line 67:
  |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>

Revision as of 11:19, 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 |name = |icon = |image = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}} |caption = |title = |unit_type = |unit_upkeep = |health = |focus = |armor = |willpower = |speed = }}

Preview