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

Created page with "<infobox layout="stacked"> <title source="name"> <default>{{PAGENAME}}</default> </title> <image source="image" /> <data source="parameter-1"> <label>Label 1</label> </data> <data source="parameter-2"> <label>Label 2</label> </data> </infobox>"
 
0z2y (talk | contribs)
No edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox layout="stacked">
<infobox theme="item_box">
   <title source="name">
   <title source="name">
     <default>{{PAGENAME}}</default>
     <default>{{PAGENAME}}</default>
   </title>
   </title>
  <image source="image" />
<image source="image">
   <data source="parameter-1">
<caption source="caption" />
    <label>Label 1</label>
</image>
   </data>
    <data source="map_id">
   <data source="parameter-2">
<label>Map ID</label>
    <label>Label 2</label>
<format><span style="font-family: monospace; font-size: 8pt;">{{{map_id|}}}</span></format>
   </data>
</data>
  <group>
    <header><p style="padding: 3px;margin: 0;line-height: 1;">Basic Info</p></header>
  <data source="inhabitants"><label>Inhabitants</label></data>
  <data source="status"><label>Status</label></data>
  <data source="rulingbody"><label>Ruling Body</label></data>
  <data source="climate"><label>Climate</label></data>
  <data source="vegetation"><label>Vegetation</label></data>
  <data source="wildlife"><label>Wildlife</label></data>
  <data source="portals"><label>Portals To</label></data>
  <data source="readalso"><label>Read Also</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>
</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.
<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>
{{LocationInfobox
|name        =
|image      = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}}
|caption    =
|map_id      =
|inhabitants =
|status      =
|rulingbody  =
|climate    =
|vegetation  =
|wildlife    =
|portals    =
|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>

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