Actions

Template

Difference between revisions of "LocationInfoBox"

m (Fixed groups having a link)
(Added location type and conditional parent location)
Line 4: Line 4:
 
             <tr>
 
             <tr>
 
                 <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]]</td>
 
                 <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]]</td>
 +
            </tr>
 +
        }}
 +
        {{#if: {{{type|}}}|
 +
            <tr>
 +
                <td class="infoboxtd1strow" style="padding: 10px;"><b>Type</b>:</td>
 +
                <td>{{{type}}}</td>
 
             </tr>
 
             </tr>
 
         }}
 
         }}
Line 20: Line 26:
 
         {{#if: {{{parentLocation|}}}|  
 
         {{#if: {{{parentLocation|}}}|  
 
             <tr>
 
             <tr>
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>{{{parentLocationType}}}</b>:</td>
+
                 <td class="infoboxtd1strow" style="padding: 10px;">
 +
                    <b>
 +
                        {{#switch: comparison string
 +
                            | Town = Province
 +
                            | Village = Province
 +
                            | City = Province
 +
                            | Province = State
 +
                            | State = Continent
 +
                            | default Parent Location
 +
                        }}
 +
                    </b>:</td>
 
                 <td>[[{{{parentLocation}}}]]</td>
 
                 <td>[[{{{parentLocation}}}]]</td>
 
             </tr>
 
             </tr>
Line 85: Line 101:
 
"description": "Additional content"
 
"description": "Additional content"
 
},
 
},
"parentLocationType": {
+
"type": {
"label": "Parent Location Type",
+
"label": "Type",
"description": "The type of parent location",
+
"description": "The type of location",
 
"example": "State, Province etc."
 
"example": "State, Province etc."
 
}
 
}
Line 99: Line 115:
 
"parentLocation",
 
"parentLocation",
 
"extraContent",
 
"extraContent",
"parentLocationType"
+
"type"
 
],
 
],
 
"description": "This location info box template is used by the more specific types of location, so that they all keep a consistent style. This contains the fields that every location should have."
 
"description": "This location info box template is used by the more specific types of location, so that they all keep a consistent style. This contains the fields that every location should have."

Revision as of 21:40, 17 September 2020



A Test location
ByAllah.jpg
Population: 6969
                   
                       default Parent Location
:
A Parent Location
Associated Group(s): Some Group
The extra contentThis is used by other templates to add stuff in here


This location info box template is used by the more specific types of location, so that they all keep a consistent style. This contains the fields that every location should have.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Page title, usually the common name for the location

Example
Tala Rane
Stringrequired
Imageimage

An image, could be a map or a picutre of the location

Filesuggested
Populationpopulation

The number of people in the location

Example
31000
Stringrequired
Groupgroup

Any groups the area is aligned or associated with with

Example
Templars
Pageoptional
Demonymdemonym

The name to describe the people from this location

Example
Rathirian
Pagesuggested
Parent LocationparentLocation

The location that this location is within

Example
Amalur
Pagesuggested
Extra contentextraContent

Additional content

Unknownoptional
Typetype

The type of location

Example
State, Province etc.
Unknownoptional