Template:Location: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="infobox" border="0" cellspacing="0"><tr><th colspan="2" class="infobox-title">{{{title}}}</th></tr>
<includeonly>
<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|260px]]</td></tr>
<table class="infobox"><tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|260px]]
{{#if:{{{imagecaption|}}}|''{{{imagecaption}}}''}}</td>
</tr>}}
{{#if:{{{tabber|}}}|<tr>
    <td colspan="2" class="infobox-image">{{{tabber}}}</td>
</tr>}}
{{#if:{{{type|}}}|<tr>
{{#if:{{{type|}}}|<tr>
     <th>Type</th>
     <th class="infobox-label">Type</th>
     <td>{{{type}}}</td>
     <td class="infobox-data">{{{type}}}</td>
</tr>}}
{{#if:{{{level|}}}|<tr>
    <th>Level</th>
    <td>{{{level}}}</td>
</tr>}}
</tr>}}
{{#if:{{{location|}}}|<tr>
{{#if:{{{location|}}}|<tr>
     <th>Location</th>
     <th class="infobox-label">Location</th>
     <td>{{{location}}}</td>
     <td class="infobox-data">{{{location}}}</td>
</tr>}}
</tr>}}
{{#if:{{{inhabitants|}}}|<tr>
{{#if:{{{inhabitants|}}}|<tr>
     <th>Inhabitants</th>
     <th class="infobox-label">Inhabitants</th>
     <td>{{{inhabitants}}}</td>
     <td class="infobox-data">{{{inhabitants}}}</td>
</tr>}}</table><includeonly>{{Namespace|main=[[Category:Locations]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
</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