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

0z2y (talk | contribs)
No edit summary
0z2y (talk | contribs)
No edit summary
Line 30: Line 30:
     <header>Stats</header>  
     <header>Stats</header>  
   <group layout="horizontal" show="incomplete">
   <group layout="horizontal" show="incomplete">
     <data source="health"><label>Health</label></data>
     <data source="health"><label>Health<br /><format>{{{health}}}</format></label></data>
     <data source="armor" span="2"><label>Armor</label><format>{{{armor}}}</format></data>
     <data source="armor" span="2"><label>Armor<br /><format>{{{armor}}}</format></label></data>
     <data source="mana" span="2"><label>Mana</label><format>{{{mana}}}</format></data>
     <data source="mana" span="2"><label>Mana<br /><format>{{{mana}}}</format></label></data>
     <data source="damage 2star" span="2"><label>Damage</label><format>{{{damage}}}</format></data>
     <data source="damage 2star" span="2"><label>Damage<br /><format>{{{damage}}}</format></label></data>
   </group>
   </group>
   <group>
   <group>

Revision as of 22:34, 18 March 2023

There is a problem with parsing the infobox

  • 0
  • 1
    <navigation style="background: #210;"><div style="font-weight: bold;text-align: center;font-size: 14px;color: #fb5;">Character</div></navigation>
  • 2
    <title source="name">
  • 3
    <default>{{PAGENAME}}</default>
  • 4
    <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>
  • 5
    </title>
  • 6
    <image source="image">
  • 7
    <caption source="caption" />
  • 8
    </image>
  • 9
    <data source="unit_id">
  • 10
    <label>Unit ID</label>
  • 11
    <format><span style="font-family: monospace; font-size: 8pt;">{{{unit_id|}}}</span></format>
  • 12
    </data>
  • 13
    <group>
  • 14
    <header><p style="padding: 3px;margin: 0;line-height: 1;">Basic Info</p></header>
  • 15
    <data source="title"><label>Title</label></data>
  • 16
    <data source="race"><label>Race</label></data>
  • 17
    <data source="gender"><label>Gender</label></data>
  • 18
    <data source="class"><label>Class</label></data>
  • 19
    <data source="specialization"><label>Specialization</label></data>
  • 20
    <data source="rank"><label>Rank</label></data>
  • 21
    <data source="caste"><label>Caste</label></data>
  • 22
    <data source="skills"><label>Skills</label></data>
  • 23
    <data source="status"><label>Status</label></data>
  • 24
    <data source="location"><label>Location</label></data>
  • 25
    <data source="quests"><label>Quests</label></data>
  • 26
    <data source="drops"><label>Drops</label></data>
  • 27
    <data source="appearance"><label>Appears in</label><format>''{{{appearance}}}''</format></data>
  • 28
    </group>
  • 29
    <header>Stats</header>
  • 30
    <group layout="horizontal" show="incomplete">
  • 31
    <data source="health"><label>Health<br /><format>{{{health}}}</format></label></data>

    Opening and ending tag mismatch

    Incorrect XML markup. Please validate your XML

  • 32
    <data source="armor" span="2"><label>Armor<br /><format>{{{armor}}}</format></label></data>

    Opening and ending tag mismatch

    Incorrect XML markup. Please validate your XML

  • 33
    <data source="mana" span="2"><label>Mana<br /><format>{{{mana}}}</format></label></data>

    Extra content at the end of the document

  • 34
    <data source="damage 2star" span="2"><label>Damage<br /><format>{{{damage}}}</format></label></data>
  • 35
    </group>
  • 36
    <group>
  • 37
    <header>Resistances</header>
  • 38
    <data source="veryweak"><label>Very weak</label><format>{{{veryweak}}}</format></data>
  • 39
    <data source="weak"><label>Weak</label><format>{{{weak}}}</format></data>
  • 40
    <data source="resistant"><label>Resistant</label><format>{{{resistant}}}</format></data>
  • 41
    <data source="veryresistant"><label>Very resistant</label><format>{{{veryresistant}}}</format></data>
  • 42
    <data source="immune"><label>Immune</label><format>{{{immune}}}</format></data>
  • 43
    </group>
  • 44
    <group layout="horizontal" show="incomplete">
  • 45
    <data source="SlashType_Sen"><label>Slash<br />{{{Slash}}}</label></data>
  • 46
    <data source="ThrustType_Sen"><label>Thrust<br />{{{Thrust}}}</label></data>
  • 47
    <data source="PierceType_Sen"><label>Pierce<br />{{{Pierce}}}</label></data>
  • 48
    <data source="StrikeType_Sen"><label>Strike<br />{{{Strike}}}</label></data>
  • 49
    </group>
  • 50

Usage

{{CharacterInfoBox |name = Default_is_Page_Name |icon = SF logo.png |image = <gallery><--USE_ONLY_IF_MULTIPLE_IMGS name_your_image.jpg/png/gif/jpeg/webp </gallery><--USE_ONLY_IF_MULTIPLE_IMGS |caption = image_caption |title = Avatar, Hero, Companion, NPC, Merchant, ... |race = Human, Elf, Dwarf, Orc, ... |gender = Male, Female |class = Warrior, Rogue, Mage, ... |specialization = Light Combat, Heavy Combat, Mind Magic, ... |rank = Critter, Weak, Normal, Lieutenant, Boss, Elite Boss, Player |caste = Archon, Sinistra, Dracon (Dark Elves Only) |skills = Boons, Warcry, Taunt, ... |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, ... |drops = item, item1, item2 |health = |damage = |mana = |armor = |veryweak = |weak = |resistant = |veryresistant = |immune = }}