Template:InfoboxCity: Difference between revisions

From Secret Club
Jump to navigation Jump to search
(Replaced content with " Category:Templates")
Tag: Replaced
No edit summary
Line 1: Line 1:
 
<noinclude>
== TemplateData ==
<templatedata>
{
"description": "An area infobox. Can be used for dungeons, fields, etc.",
"params": {
"Representative": {
"label": "Representative",
"description": "Any Representative",
            "example": "Mayor Bikke",
"type": "string"
},
"Nation": {
"label": "Nation",
"description": "Which nation this settlement is in.",
"type": "string"
},
"title": {
"label": "title",
"description": "What this town is known for, etc",
            "default": "x",
"type": "string",
"required": true
},
"areaname": {
"label": "Area Name",
"description": "The Name of the Area",
"example": "Prontera Culverts",
"type": "string"
}
},
"paramOrder": [
"areaname",
"title",
"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
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>


[[Category:Templates]]
[[Category:Templates]]

Revision as of 03:21, 1 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