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 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=" | <data source="unit_upkeep"> | ||
<label>Unit UpKeep</label> | <label>Unit UpKeep</label> | ||
<format><span style="font-family: monospace; font-size: 8pt;">{{{ | <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;"> | <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;"> | <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 | <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:{{{ | {{#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:{{{ | {{#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:{{{ | {{#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:{{{ | {{#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:{{{ | {{#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> | ||
</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_CoE | ||
|name = | |name = | ||
|icon = | |icon = | ||
| Line 58: | Line 48: | ||
|caption = | |caption = | ||
|title = | |title = | ||
| | |unit_type = | ||
| | |unit_upkeep = | ||
|health = | |health = | ||
| | |focus = | ||
|armor = | |armor = | ||
| | |willpower = | ||
|speed = | |||
| | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
| Line 89: | Line 60: | ||
== Preview == | == Preview == | ||
<div style="width: fit-content; display: block;"> | <div style="width: fit-content; display: block;"> | ||
{{ | {{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, ... | ||
| | |unit_type = Human, Elf, Dwarf, Orc, ... | ||
| | |unit_upkeep = 10 | ||
|health = 100 | |||
|focus = 100 | |||
|armor = 100 | |||
|willpower = 100 | |||
|speed = 100 | |||
|health = | |||
| | |||
|armor = | |||
| | |||
| | |||
}} | }} | ||
</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 =
}}
