Template:InfoboxCity: Difference between revisions

From Secret Club
Jump to navigation Jump to search
(Created page with "<noinclude> <templatedata> { "params": { "kingdom": { "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> <div style=" float:...")
 
No edit summary
Line 1: Line 1:
<noinclude>
[[div style="float:right; margin:0 0 1em 2em; margin-clear:right; width:320px; border:1; background:#eee8dc"]]
<templatedata>
[[table style="width:100%;background:#e0e0e0; color:#000000;margin:0; border:0;"]]
{
[[row]]
"params": {
    [[cell style="text-align:center;font-size:125%"]]**{$name}**[[/cell]]
"kingdom": {
[[/row]]
"type": "string",
[[/table]]
"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>


<div style="
[[table style="width:100%;background:Gainsboro ;margin:0; border:0;"]]
float: right;
[[row]]
clear: right;
    [[cell style="text-align:center"]][[image {$image} style="margin:0; border:0;" width="310px" alt="{$name}"]][[/cell]]   
margin: 0 0 5px 5px;
[[/row]]
border: 5px solid #150733;
 
border-radius: 18 px;
[[/table]]
overflow: hidden;
 
width: 270px;
[[table style="width:100%;background:Gainsboro ;margin:0; border:0;"]]
"
[[row]]
class="remove-margin-from-p infobox"
    [[cell style="text-align:center"]]**{$title}**[[/cell]]   
>
[[/row]]
<div
 
style="
[[/table]]
background-color: #150733;
 
text-align: center;
[[table style="background:Gainsboro;width:100%;margin:0; border:0;"]]
font-weight: bold;
 
font-size: larger;
 
padding: 0 0;
[[row style="vertical-align:top"]]
color: #222;
    [[cell]] **Population:**  [[/cell]]
"
    [[cell]]{$population}[[/cell]]
>
    [[/row]]
<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>
[[row style="vertical-align:top"]]
    [[cell]] **Nation:**  [[/cell]]
    [[cell]][[[wiki:{$nation}]]][[/cell]]
    [[/row]]
 
[[/table]]
[[/div]]

Revision as of 04:14, 23 November 2023