Template:InfoboxCity: Difference between revisions

From Secret Club
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
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 ==
[[row]]
<templatedata>
    [[cell style="text-align:center;font-size:125%"]]**{$name}**[[/cell]]
{
[[/row]]
"description": "An area infobox. Can be used for dungeons, fields, etc.",
</table>
"params": {
 
"Representative": {
[[table style="width:100%;background:Gainsboro ;margin:0; border:0;"]]
"label": "Representative",
[[row]]
"description": "Any Representative",
    [[cell style="text-align:center"]][[image {$image} style="margin:0; border:0;" width="310px" alt="{$name}"]][[/cell]]   
            "example": "Mayor Bikke",
[[/row]]
"type": "string"
 
},
[[/table]]
"Nation": {
 
"label": "Nation",
[[table style="width:100%;background:Gainsboro ;margin:0; border:0;"]]
"description": "Which nation this settlement is in.",
[[row]]
"type": "string"
    [[cell style="text-align:center"]]**{$title}**[[/cell]]   
},
[[/row]]
"title": {
 
"label": "title",
[[/table]]
"description": "What this town is known for, etc",
 
            "default": "x",
<table style="background:Gainsboro;width:100%;margin:0; border:0;">
"type": "string",
 
"required": true
 
},
[[row style="vertical-align:top"]]
"areaname": {
    [[cell]] **Population:**  [[/cell]]
"label": "Area Name",
    [[cell]]{$population}[[/cell]]
"description": "The Name of the Area",
    [[/row]]
"example": "Prontera Culverts",
 
"type": "string"
[[row style="vertical-align:top"]]
}
    [[cell]] **Nation:**  [[/cell]]
},
    [[cell]][[[wiki:{$nation}]]][[/cell]]
"paramOrder": [
    [[/row]]
"areaname",
 
"title",
[[/table]]
"Representative",
"Nation"
],
"format": "block"
}
</templatedata>
</noinclude>
<div
style="
float: right;
clear: right;
margin: 0 0 18px 18px;
border: 1px solid #150733;
border-radius: 10px;
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: 5px 0;
color: #eee;
"
>
{{{areaname|{{PAGENAME}}}}}
</div>
<div style="
background-color: #150733;
text-align: center;
padding: 1px 0;
color: #eee;
"
>{{{title|The Rune-Midgarts Capital}}}
</div>
</div>
<div
style="background-color: #3d188d; border-bottom: 1px solid #150733;
color: #eee;"
class="mw-collapsible mw-collapsed custom-collapsible white-toggle-text"
data-expandtext="v"
data-collapsetext="^"
>
<div class="custom-collapsible-title">'''Details'''</div>
<div class="mw-collapsible-content" style="background-color: #ffffff; color: #222">
<div style="padding: 5px; border-bottom: 1px solid #cccccc">
<div style="font-weight: bold">Nation</div>
<div style="padding-left: 10px">{{{Nation|Blurl}}}</div>
</div>
{{#if: {{{Representative|}}}|
<div style="padding: 5px; border-bottom: 1px solid #cccccc">
<div style="font-weight: bold">Representative</div>
<div style="padding-left: 10px">{{{Representative|Phreeoni}}}</div>
</div>
|}}{{#if: {{{Nation|}}}|
<div style="padding: 5px; border-bottom: 1px solid #cccccc">
<div class="mw-collapsible mw-collapsed">
<span style="font-weight: bold">An area in {{{Nation|}}}</span>
</div></div>
|}}</div></div></div>
<noinclude>[[Category:Templates]]

Latest revision as of 00:35, 3 September 2024

TemplateData

An area infobox. Can be used for dungeons, fields, etc.

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Area Nameareaname

The Name of the Area

Example
Prontera Culverts
Stringoptional
titletitle

What this town is known for, etc

Default
x
Stringrequired
RepresentativeRepresentative

Any Representative

Example
Mayor Bikke
Stringoptional
NationNation

Which nation this settlement is in.

Stringoptional

InfoboxCity

The Rune-Midgarts Capital
Details
Nation
Blurl