Template:InfoboxCity: Difference between revisions

From Secret Club
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
== TemplateData ==
{
<templatedata>
{
"description": "An area infobox. Can be used for dungeons, fields, etc.",
"params": {
"params": {
"kingdom": {
"Representative": {
"type": "string",
"label": "Representative",
"autovalue": "kingdom"
"description": "Any Representative",
            "example": "Mayor Bikke",
"type": "string"
},
},
"image": {
"Nation": {
"type": "wiki-file-name",
"label": "Nation",
"autovalue": "",
"description": "Which nation this settlement is in.",
"default": "default.png"
"type": "string"
},
},
"name": {
"title": {
"label": "title",
"description": "What this town is known for, etc",
            "default": "x",
"type": "string",
"type": "string",
"suggestedvalues": [
"required": true
"title"
]
},
},
"title": {}
"areaname": {
"label": "Area Name",
"description": "The Name of the Area",
"example": "Prontera Culverts",
"type": "string"
}
},
},
"description": "A box for cities",
"paramOrder": [
"paramOrder": [
"name",
"areaname",
"image",
"title",
"title",
"kingdom"
"Representative",
"Nation"
],
],
"format": "block"
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
 
<div
<div style="
style="
float: right;
float: right;
clear: right;
clear: right;
margin: 0 0 5px 5px;
margin: 0 0 18px 18px;
border: 5px solid #150733;
border: 1px solid #150733;
border-radius: 18 px;
border-radius: 10px;
overflow: hidden;
overflow: hidden;
width: 270px;
width: 270px;
"
"
class="remove-margin-from-p infobox"
class="remove-margin-from-p infobox"
>
>
<div
<div
Line 49: Line 58:
font-weight: bold;
font-weight: bold;
font-size: larger;
font-size: larger;
padding: 0 0;
padding: 5px 0;
color: #222;
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="^"
>
>
<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 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></div></div>
[[Category:Templates]]
<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