Template:Location: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
firrhna>FANDOM
m (1 revision: Starter Wiki Refresh)
 
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox type="Location">
<includeonly>
<title source="title"/>
<table class="infobox"><tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
<image source="image"><caption source="imagecaption"/></image>
{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|260px]]
<image source="map"><caption source="mapcaption"/></image>
{{#if:{{{imagecaption|}}}|''{{{imagecaption}}}''}}</td>
<data source="type"><label>Type</label></data>
</tr>}}
<data source="level"><label>Level</label></data>
{{#if:{{{tabber|}}}|<tr>
<data source="location"><label>Location</label></data>
    <td colspan="2" class="infobox-image">{{{tabber}}}</td>
<data source="inhabitants"><label>Inhabitants</label></data>
</tr>}}
</infobox><includeonly>{{Namespace|main=[[Category:Locations]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{#if:{{{type|}}}|<tr>
    <th class="infobox-label">Type</th>
    <td class="infobox-data">{{{type}}}</td>
</tr>}}
{{#if:{{{location|}}}|<tr>
    <th class="infobox-label">Location</th>
    <td class="infobox-data">{{{location}}}</td>
</tr>}}
{{#if:{{{inhabitants|}}}|<tr>
    <th class="infobox-label">Inhabitants</th>
    <td class="infobox-data">{{{inhabitants}}}</td>
</tr>}}</table>
</includeonly>
<includeonly>{{Namespace|main=[[Category:Locations]]}}</includeonly>
<noinclude>
{{Location
| name          = Firrhna Prime
| image        = Felis 1.png
| type          = Planet
| location      = Firrhna system
| inhabitants  = Kitties!
}}
<templatedata>
{
"params": {
"name": {
"example": "Firrhna Prime",
"type": "string",
"required": true,
"label": "Name",
"autovalue": "{{PAGENAME}}"
},
"image": {
"label": "Image",
"example": "Felis_1.png",
"type": "wiki-file-name"
},
"imagecaption": {
"label": "Image caption",
"type": "string"
},
"tabber": {
"type": "content",
"label": "Tabber"
},
"type": {
"label": "Type",
"example": "Planet",
"type": "string"
},
"location": {
"type": "string",
"label": "Location",
"example": "Firrhna system"
},
"inhabitants": {
"type": "string",
"label": "Inhabitants",
"example": "Kitties!"
}
},
"description": "An infobox for locations."
}
</templatedata></noinclude>

Latest revision as of 13:45, 10 September 2023



Firrhna Prime
Type Planet
Location Firrhna system
Inhabitants Kitties!


An infobox for locations.

Template parameters

ParameterDescriptionTypeStatus
Namename

no description

Example
Firrhna Prime
Auto value
{{PAGENAME}}
Stringrequired
Imageimage

no description

Example
Felis_1.png
Fileoptional
Image captionimagecaption

no description

Stringoptional
Tabbertabber

no description

Contentoptional
Typetype

no description

Example
Planet
Stringoptional
Locationlocation

no description

Example
Firrhna system
Stringoptional
Inhabitantsinhabitants

no description

Example
Kitties!
Stringoptional