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

0z2y (talk | contribs)
No edit summary
0z2y (talk | contribs)
No edit summary
Line 3: Line 3:
     <default>{{PAGENAME}}</default>
     <default>{{PAGENAME}}</default>
   </title>
   </title>
  <image source="image" />
<image source="image">
  <data source="parameter-1">
<caption source="caption" />
    <label>Inhabitants</label>
</image>
   </data>
    <data source="map_id">
   <data source="parameter-2">
<label>Map ID</label>
    <label>Status</label>
<format><span style="font-family: monospace; font-size: 8pt;">{{{map_id|}}}</span></format>
  </data>
</data>
   <data source="parameter-3">
  <group>
    <label>Ruling Body</label>
    <header><p style="padding: 3px;margin: 0;line-height: 1;">Basic Info</p></header>
  </data>
  <data source="inhabitants"><label>Inhabitants</label></data>
   <data source="parameter-4">
  <data source="status"><label>Status</label></data>
    <label>Climate</label>
  <data source="rulingbody"><label>Ruling Body</label></data>
  </data>
  <data source="climate"><label>Climate</label></data>
   <data source="parameter-5">
  <data source="vegetation"><label>Vegetation</label></data>
    <label>Vegetation</label>
  <data source="wildlife"><label>Wildlife</label></data>
  </data>
   <data source="portals"><label>Portals To</label></data>
   <data source="parameter-6">
  <data source="readalso"><label>Read Also</label></data>
    <label>Wildlife</label>
 
  </data>
  <data source="parameter-1"><label>Inhabitants</label></data>
   <data source="parameter-7">
   <data source="parameter-2"><label>Status</label></data>
    <label>Portals To</label>
   <data source="parameter-3"><label>Ruling Body</label></data>
  </data>
   <data source="parameter-4"><label>Climate</label></data>
   <data source="parameter-8">
   <data source="parameter-5"><label>Vegetation</label></data>
    <label>Read Also</label>
   <data source="parameter-6"><label>Wildlife</label></data>
  </data>
   <data source="parameter-7"><label>Portals To</label></data>
   <data source="parameter-8"><label>Read Also</label></data>
</group>
</infobox>
</infobox>
<noinclude>
<noinclude>
__TOC__
== Usage ==
== Usage ==
<div style="font-family: Courier New !important;display: block;padding: 5px 10px;background: rgba(255, 255, 10, 0.65);color: #000;width: fit-content;border: 2px double #ff0;border-radius: 10px;">
'''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.
<nowiki>{{LocationInfobox</nowiki><br>
 
<nowiki> |name        = Title </nowiki><br>
<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>
<nowiki> |image      = [[File:image_name.PNG]]</nowiki><br>
{{LocationInfobox
<nowiki> |parameter-1 = Inhabitants</nowiki><br>
|name        =
<nowiki> |parameter-2 = Status</nowiki><br>
|image      = {{#setmainimage:name_your_image.jpg/png/gif/jpeg/webp}}
<nowiki> |parameter-3 = Ruling Body</nowiki><br>
|caption    =
<nowiki> |parameter-4 = Climate</nowiki><br>
|map_id      =
<nowiki> |parameter-5 = Vegetation</nowiki><br>
|inhabitants =
<nowiki> |parameter-6 = Wildlife</nowiki><br>
|status      =
<nowiki> |parameter-7 = Portals To</nowiki><br>
|rulingbody  =
<nowiki> |parameter-8 = Read Also Link</nowiki><br>
|climate    =
<nowiki>}}</nowiki>
|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>
</div>
</noinclude>

Revision as of 23:34, 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.

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

Preview