Template:InfoboxCity: Difference between revisions

From Secret Club
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div style="float:right; margin:0 0 1em 2em; margin-clear:right; width:320px; border:1; background:#eee8dc">
<noinclude>
<table style="width:100%;background:#e0e0e0; color:#000000;margin:0; border:0;">
<templatedata>
<tr>
{
    <th style="text-align:center;font-size:125%">**{$name}**</th>
"params": {
</tr>
"kingdom": {
</table>
"type": "string",
"autovalue": "kingdom"
},
"image": {
"type": "wiki-file-name",
"autovalue": "",
"default": "default.png"
},
"name": {
"type": "string",
"suggestedvalues": [
"title"
]
},
"title": {}
},
"description": "A box for cities",
"paramOrder": [
"name",
"image",
"title",
"kingdom"
],
"format": "block"
}
</templatedata>
</noinclude>


<table style="width:100%;background:Gainsboro ;margin:0; border:0;">
<div style="
<tr>
float: right;
    <th style="text-align:center"><image {$image} style="margin:0; border:0;" width="310px" alt="{$name}"></th>
clear: right;
</tr>
margin: 0 0 5px 5px;
border: 5px solid #150733;
border-radius: 18 px;
overflow: hidden;
width: 270px;
"
class="remove-margin-from-p infobox"
>
<div
style="
background-color: #150733;
text-align: center;
font-weight: bold;
font-size: larger;
padding: 0 0;
color: #222;
"
>
<infobox><title source="name"><default>{{PAGENAME}}</default></title><image source="image"/><data source="title"><label>Title:</label><default>A city.</default></data><data source="kingdom"><label>Nation:</label><default>kingdom</default></data></infobox>
</div></div>


</table></div>
[[Category:Templates]]
 
[[table style="width:100%;background:Gainsboro ;margin:0; border:0;"]]
[[row]]
    [[cell style="text-align:center"]]**{$title}**[[/cell]]   
[[/row]]
 
[[/table]]
 
<table style="background:Gainsboro;width:100%;margin:0; border:0;">
 
 
[[row style="vertical-align:top"]]
    [[cell]] **Population:**  [[/cell]]
    [[cell]]{$population}[[/cell]]
    [[/row]]
 
[[row style="vertical-align:top"]]
    [[cell]] **Nation:**  [[/cell]]
    [[cell]][[[wiki:{$nation}]]][[/cell]]
    [[/row]]
 
[[/table]]
</div>

Revision as of 00:06, 1 September 2024

A box for cities

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

no description

Suggested values
title
Stringoptional
imageimage

no description

Default
default.png
Auto value
Fileoptional
titletitle

no description

Unknownoptional
kingdomkingdom

no description

Auto value
kingdom
Stringoptional


<infobox><title source="name"><default>InfoboxCity</default></title><image source="image"/><label>Title:</label><default>A city.</default><label>Nation:</label><default>kingdom</default></infobox>