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

No edit summary
Tag: Reverted
0z2y (talk | contribs)
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox>
<infobox theme="item_box">
<title source="name"><label></label></title>
  <title source="name">
 
    <default>{{PAGENAME}}</default>
<image source="image"><caption source=""/></image>
  </title>
 
<image source="image">
<data source="caption"><label></label></data>
<caption source="caption" />
 
</image>
<image source="map"><caption source=""/></image>
    <data source="map_id">
 
<label>Map ID</label>
<data source="mapcaption"><label></label></data>
<format><span style="font-family: monospace; font-size: 8pt;">{{{map_id|}}}</span></format>
 
</data>
<group>
  <group>
<header>Additional Information</header>
    <header><p style="padding: 3px;margin: 0;line-height: 1;">Basic Info</p></header>
 
  <data source="inhabitants"><label>Inhabitants</label></data>
<data source="type"><label>Map Type:</label></data>
  <data source="status"><label>Status</label></data>
 
  <data source="rulingbody"><label>Ruling Body</label></data>
<data source="level"><label>Map Level:</label></data>
  <data source="climate"><label>Climate</label></data>
 
  <data source="vegetation"><label>Vegetation</label></data>
<data source="location"><label>Location:</label></data>
  <data source="wildlife"><label>Wildlife</label></data>
 
  <data source="portals"><label>Portals To</label></data>
<data source="inhabitants"><label>Inhabitants</label></data>
  <data source="readalso"><label>Read Also</label></data>
 
</group>
 
<group>
<header>Battle Info</header>
 
<data source="monument"><label>Monument(s):</label></data>
 
<data source="enemy"><label>Enemy Camps:</label></data>


  <data source="parameter-1"><label>Inhabitants</label></data>
  <data source="parameter-2"><label>Status</label></data>
  <data source="parameter-3"><label>Ruling Body</label></data>
  <data source="parameter-4"><label>Climate</label></data>
  <data source="parameter-5"><label>Vegetation</label></data>
  <data source="parameter-6"><label>Wildlife</label></data>
  <data source="parameter-7"><label>Portals To</label></data>
  <data source="parameter-8"><label>Read Also</label></data>
</group>
</group>
</infobox>
</infobox>
<noinclude>
__TOC__
== 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.


<noinclude>
<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>
<pre>{{WIP
{{LocationInfobox
|name = Greyfell
|name       =  
|image = Image:Greyfell.jpg
|image       = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}}
|caption  = The House of the Order
|caption     =
|map = Image:Greyfellmap.jpg
  |map_id      =  
|mapcaption = Map of Greyfell
|inhabitants =
|type = Mountain
  |status      =  
|level = 1-3
|rulingbody  =
|location = Northander, Fiara
  |climate    =  
|inhabitants = Human, Elf, Dwarf, Goblin, Orc
|vegetation  =
|enemy = enemy encounters
  |wildlife    =  
}}
|portals    =
</pre>
  |readalso    =
}}
</nowiki>
</div>
== Preview ==
<div style="width: fit-content; display: block;">
{{LocationInfobox
|name        =
  |image      = {{#setmainimage:SF logo.png}}
|caption    = image_caption
  |map_id      = 1, 10, 148, ...
|inhabitants = Inhabitants
|status      = Status
|rulingbody  = Ruling Body
|climate    = Climate
|vegetation  = Vegetation
|wildlife    = Wildlife
|portals    = Portals To
|readalso    = Read Also Link
}}  
</div>
</noinclude>
</noinclude>

Latest revision as of 01:05, 23 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.

{{LocationInfobox |name = |image = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}} |caption = |map_id = |inhabitants = |status = |rulingbody = |climate = |vegetation = |wildlife = |portals = |readalso = }}

Preview