Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox location: Difference between revisions

Template page
Created page with "<div style="float: right; width: 300px; background: #1a1a2e; border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;"> <div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> {{{image|}}} {| style="width: 100%;" {{#if:{{{type|}}}| {{!}}- ! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Type {{!}} style="padding: 4px;" {{!}} {{{type}}} }} {{#if:{{{planet|}}}| {{!}}..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="float: right; width: 300px; background: #1a1a2e; border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;">
<div style="float: right; width: 300px; background: var(--color-surface-2); border: 1px solid var(--border-color-base); border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;">
<div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div>
<div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div>
{{{image|}}}
<div style="text-align: center;">{{{image|}}}</div>
{| style="width: 100%;"
{| style="width: 100%;"
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Type
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Type
{{!}} style="padding: 4px;" {{!}} {{{type}}}
{{!}} style="padding: 4px;" {{!}} {{{type}}}
}}
}}
{{#if:{{{planet|}}}|
{{#if:{{{planet|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Planet
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Planet
{{!}} style="padding: 4px;" {{!}} {{{planet}}}
{{!}} style="padding: 4px;" {{!}} {{{planet}}}
}}
{{#if:{{{region|}}}|
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Region
{{!}} style="padding: 4px;" {{!}} {{{region}}}
}}
}}
{{#if:{{{controlled_by|}}}|
{{#if:{{{controlled_by|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Controlled by
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Controlled by
{{!}} style="padding: 4px;" {{!}} {{{controlled_by}}}
{{!}} style="padding: 4px;" {{!}} {{{controlled_by}}}
}}
{{#if:{{{status|}}}|
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Status
{{!}} style="padding: 4px;" {{!}} {{{status}}}
}}
}}
{{#if:{{{series|}}}|
{{#if:{{{series|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Series
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Series
{{!}} style="padding: 4px;" {{!}} {{{series}}}
{{!}} style="padding: 4px;" {{!}} {{{series}}}
}}
}}
Line 42: Line 32:
|type=
|type=
|planet=
|planet=
|region=
|controlled_by=
|controlled_by=
|status=
|series=
|series=
}}
}}
</pre>
</pre>
<templatedata>
{
    "params": {
        "name": {
            "label": "Name",
            "type": "string",
            "description": "Location name",
            "default": "{{PAGENAME}}"
        },
        "image": {
            "label": "Image",
            "type": "wiki-file-name",
            "description": "Location image"
        },
        "type": {
            "label": "Type",
            "type": "string",
            "description": "Type of location (e.g. Planet, City, Structure)",
            "suggestedvalues": ["Planet", "Structure"]
        },
        "planet": {
            "label": "Planet",
            "type": "string",
            "description": "Which planet this location is on"
        },
        "controlled_by": {
            "label": "Controlled by",
            "type": "string",
            "description": "Faction or group that controls this location"
        },
        "series": {
            "label": "Series",
            "type": "string",
            "description": "Which series this location is from",
            "suggestedvalues": ["Rift SMP", "Ruinous Sands", "Tropical Island Civ"]
        }
    },
    "description": "Infobox for location pages",
    "format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 08:57, 5 April 2026

Infobox location

Usage

{{Infobox location
|name=
|image=
|type=
|planet=
|controlled_by=
|series=
}}

Infobox for location pages

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Location name

Default
{{PAGENAME}}
Stringoptional
Imageimage

Location image

Fileoptional
Typetype

Type of location (e.g. Planet, City, Structure)

Suggested values
Planet Structure
Stringoptional
Planetplanet

Which planet this location is on

Stringoptional
Controlled bycontrolled_by

Faction or group that controls this location

Stringoptional
Seriesseries

Which series this location is from

Suggested values
Rift SMP Ruinous Sands Tropical Island Civ
Stringoptional
Contents