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

0z2y (talk | contribs)
No edit summary
0z2y (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
<infobox theme="item_box">
<title source="name">
<title source="name">
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
Line 7: Line 7:
<caption source="caption" />
<caption source="caption" />
</image>
</image>
     <data source="unit_id">
     <data source="item_id">
<label>Item ID</label>
<label>Item ID</label>
<format><span style="font-family: monospace; font-size: 8pt;">{{{item_id|}}}</span></format>
<format><span style="font-family: monospace; font-size: 8pt;">{{{item_id|}}}</span></format>
Line 22: Line 22:
<data source="dps"><label>DPS</label></data>
<data source="dps"><label>DPS</label></data>
<data source="damagetype"><label>Damage Type</label></data>
<data source="damagetype"><label>Damage Type</label></data>
<data source="mindamage">
<data source="damage"><label>Damage</label><format><p style="font-size:12px; color: #4e4;">{{{damage}}}</p></format></data>
<label>Damage</label>
<format>{{#if:{{{mindamage|}}}|<div class="grid-item" style="display: flex;color: #eebe36;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding:0;line-height: 1;margin: 0;"><b>Min. Damage</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{mindamage}}}</span></div>
<span style="display:inline-block; margin: 0 5px;">⚔️</span>
  <div class="grid-item" style="display: flex;color: #eb3;text-align: center;font-family: sans-serif;flex-direction: column;align-items: stretch;padding: 0;line-height: 1;margin: 0;"><b>Max. Damage</b> <span style="font-size: 12px;width: fit-content;height: auto;display:block;margin: 3px auto 0;">{{{maxdamage}}}</span></div> }}</format>
</data>
<data source="requires"><label>Requires</label></data>
<data source="requires"><label>Requires</label></data>
<data source="restriction"><label>Restriction</label></data>
<data source="restriction"><label>Restriction</label></data>
<data source="attack_speed"><label>Attack Speed (mm)</label></data>
<data source="critical_chance"><label>Critical Chance</label></data>
<data source="critical_chance"><label>Critical Chance</label></data>
<data source="range"><label>Range</label></data>
<data source="range"><label>Range</label></data>
<data source="armor"><label>Armor</label></data>
<data source="armor"><label>Armor</label></data>
<data source="health"><label>Health</label></data>
<data source="health"><label>Health</label></data>
   <data source="stats"><label>Stats</label><format><p style="font-size:12px; color: #6a0;">{{{stats}}}</p></format></data>
   <data source="stats"><label>Stats</label><format><div style="font-size:12px; color: #6a0;">{{{stats}}}</div></format></data>
<data source="locations"><label>Locations</label></data>
<data source="locations"><label>Locations</label></data>
<data source="quests"><label>Quests</label></data>
<data source="quests"><label>Quests</label></data>
Line 55: Line 49:
__TOC__
__TOC__
== Usage ==
== Usage ==
'''NOTE:''' the setting <span style="color:#ea3"><b><nowiki>{{#setmainimage:</nowiki></b><i style="opacity: 0.65;">name_your_image.jpg/png/gif/jpeg/webp</i><b><nowiki>}}</nowiki></b></span> is used IF you want to define that image as the main image to show on social media sharing sites.
<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>
{{ItemInfoBox
{{ItemInfoBox
Line 60: Line 56:
  |icon          =  
  |icon          =  
  |image          = {{#setmainimage:SF logo.png}}
  |image          = {{#setmainimage:SF logo.png}}
  |caption        =   
  |caption       =
|item_id       =   
  |description    =  
  |description    =  
|location      =
  |type          =  
  |type          =  
  |material      =
  |material      =
Line 70: Line 66:
  |restriction    =
  |restriction    =
  |armor          =
  |armor          =
|health        =
  |stats          =
  |stats          =
  |critical_chance=
  |critical_chance=
  |attack_speed  =
  |damagetype    =  
  |damage        =
  |damage        =
  |dps            =
  |dps            =
Line 94: Line 89:
  |caption        = image_caption
  |caption        = image_caption
  |description    = This is where you write the in-game description or from the lore, if exists
  |description    = This is where you write the in-game description or from the lore, if exists
|location      = Where it can be found
  |type          = Ring, Gem, Sword, Dagger, Bow
  |type          = Ring, Gem, Sword, Dagger, Bow
  |material      = Varies
  |material      = Varies
Line 102: Line 96:
  |restriction    = White Magic
  |restriction    = White Magic
  |armor          = 10
  |armor          = 10
|health        = 200
  |stats          = Mana: 880<br>Fire Resistance: +75% Fire Resistance<br>Dark Resistance: +50% Black Magic Resistance
  |stats          = Mana: 880<br>Fire Resistance: +75% Fire Resistance<br>Dark Resistance: +50% Black Magic Resistance
  |critical_chance= 20
  |critical_chance= 20
  |attack_speed  = 1400
  |attack_speed  = 1400
  |damagetype    = Physical
  |damagetype    = Physical
  |mindamage      = 140.00
  |damage        = 140-280 every 1.4s
|maxdamage      = 280.00
  |dps            = 22
  |dps            = 22
  |range          = 0
  |range          = 0

Latest revision as of 23:36, 21 March 2023

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.

{{ItemInfoBox |name = |icon = |image = {{#setmainimage:SF logo.png}} |caption = |item_id = |description = |type = |material = |tier = (OPTIONAL) |set = |requires = |restriction = |armor = |stats = |critical_chance= |damagetype = |damage = |dps = |range = |valuebuy = |valuesell = |quests = |locations = |appearances = |notes = }}

Preview