Template:Location: Difference between revisions
From Firrhna Project Wiki
Jump to navigationJump to search
Kawa-neechan (talk | contribs) mNo edit summary |
Kawa-neechan (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<table class="infobox"><tr><th colspan="2" class="infobox-title">{{{name| | <includeonly> | ||
{{#if:{{{image|}}}|<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>}} | </tr>}} | ||
{{#if:{{{tabber|}}}|<tr> | {{#if:{{{tabber|}}}|<tr> | ||
Line 9: | Line 10: | ||
<th class="infobox-label">Type</th> | <th class="infobox-label">Type</th> | ||
<td class="infobox-data">{{{type}}}</td> | <td class="infobox-data">{{{type}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{location|}}}|<tr> | {{#if:{{{location|}}}|<tr> | ||
Line 21: | Line 18: | ||
<th class="infobox-label">Inhabitants</th> | <th class="infobox-label">Inhabitants</th> | ||
<td class="infobox-data">{{{inhabitants}}}</td> | <td class="infobox-data">{{{inhabitants}}}</td> | ||
</tr>}}</table><includeonly>{{Namespace|main=[[Category:Locations]]}}</includeonly><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": { | "params": { | ||
Line 27: | Line 35: | ||
"example": "Firrhna Prime", | "example": "Firrhna Prime", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"label": "Name", | |||
"autovalue": "{{PAGENAME}}" | |||
}, | }, | ||
"image": { | "image": { | ||
"label": "Image", | |||
"example": "Felis_1.png", | "example": "Felis_1.png", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
" | "imagecaption": { | ||
" | "label": "Image caption", | ||
" | "type": "string" | ||
"location": { "type": "string", "label": "Location" }, | }, | ||
"inhabitants": { "type": "string", "label": "Inhabitants" } | "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> | </templatedata></noinclude> |
Latest revision as of 13:45, 10 September 2023
Firrhna Prime | |
---|---|
Type | Planet |
Location | Firrhna system |
Inhabitants | Kitties! |
An infobox for locations.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description
| String | required |
Image | image | no description
| File | optional |
Image caption | imagecaption | no description | String | optional |
Tabber | tabber | no description | Content | optional |
Type | type | no description
| String | optional |
Location | location | no description
| String | optional |
Inhabitants | inhabitants | no description
| String | optional |