Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Test.)
mNo edit summary
 
(82 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=3 cellspacing=2 width=270px style="font-family: arial, sans-serif; padding: 4px; margin:{{#switch:{{{align|right}}}|left=0 1em 1em 0|center=1em 1em 1em 1em|right=0 0 1em 1em}}; font-size: 11px; background-color:#fef; border:1px solid #c8c;float:{{{align|right}}}; color:black"
<includeonly><templatestyles src="Location infobox/styles.css"/>
{| id="location" class="infobox" style="width:300px"
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
|-
|-
| align="center" style="background-color:#cbc; border:1px solid #c8c" colspan=2 | <font size=3>'''{{{name|{{PAGENAME}}}}}'''</font>
| colspan="2" style="text-align:center" | {{{image|}}}
|-
| colspan=2 | {{#if:{{{image|}}}|[[Image:{{{image|}}}|{{{width|250}}}px|center]]}}
|-
|-
{{#if:{{{greaterloc|}}} | {{!}}-
{{#if:{{{first_appearance|}}}|
{{!}} '''Greater Location''' {{!}}{{!}} {{{greaterloc}}}
{{!}} '''First appearance'''
|}}{{#if:{{{capital|}}} | {{!}}-
{{!}} {{{first_appearance}}}
{{!}} '''Capital''' {{!}}{{!}} {{{capital}}}
}}
|}}{{#if:{{{ruler|}}} | {{!}}-
|-
{{!}} '''Current Ruler''' {{!}}{{!}} {{{ruler}}}
{{#if:{{{latest_appearance|}}}|
|}}{{#if:{{{inhabitants|}}} | {{!}}-
{{!}} '''Latest appearance'''
{{!}} '''Inhabitants''' {{!}}{{!}} {{{inhabitants}}}
{{!}} {{{latest_appearance}}}
|}}{{#if:{{{first_appearance|}}} | {{!}}-
}}
{{!}} '''First Appearance''' {{!}}{{!}} {{{first_appearance}}}
|-
|}}{{#if:{{{latest_appearance|}}} | {{!}}-
{{#if:{{{greater_location|}}}|
{{!}} '''Latest Appearance''' {{!}}{{!}} {{{latest_appearance}}}
{{!}} '''Greater location'''
|}}
{{!}} {{{greater_location}}}
|}<noinclude><br clear="all">
}}
== Usage Instructions ==
|-
Provides info about a location in any Mario game.
{{#if:{{{capital|}}}|
{{!}} '''Capital'''
{{!}} {{{capital}}}
}}
|-
{{#if:{{{ruler|}}}|
{{!}} '''Ruler'''
{{!}} {{{ruler}}}
}}
|-
{{#if:{{{owner|}}}|
{{!}} '''Owner'''
{{!}} {{{owner}}}
}}
|-
{{#if:{{{inhabitants|}}}|
{{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
}}
|-
{{#if:{{{iteration_of|}}}|
{{!}} '''Iteration of'''
{{!}} {{{iteration_of}}}
}}
|-
{{#if:{{{iterations|}}}|
{{!}} '''Iterations'''
{{!}} {{{iterations}}}
}}
|}</includeonly><noinclude>
An infobox that provides basic information about a location.
{{br}}
==Usage==
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em"
!colspan=2|Syntax
|-
|&#124;title=
|By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|-
|&#124;image=
|An image depicting the location
|-
|&#124;first_appearance=
|The debut appearance of the location and the date in parentheses
|-
|style="white-space:nowrap"|&#124;latest_appearance=
|The latest appearance of the location and the date in parentheses
|-
|&#124;greater_location=
|The overall area where the location is found in (e.g. [[Shy Guy's Toy Box]] → [[Toad Town]])
|-
|&#124;capital=
|The capital of the location (rarely applicable)
|-
|&#124;ruler=
|The character(s) who rule or otherwise govern the area (rarely applicable)
|-
|&#124;owner=
|Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|-
|&#124;inhabitants=
|This specifically applies to species. There can be multiple types of inhabitants.
|-
|&#124;iteration_of=
|Use this on the pages for specific versions of a recurring location.
|-
|&#124;iterations=
|Use this to list specific versions of a recurring location when said versions get a separate page due to size.
|}


All rows will disappear if respective variables are not defined. Width is for image only, default 250px.
<pre>
<pre>
{{location-infobox
{{location infobox
|image = file w/o "Image:" e.g. Mario223.jpg
|title=
|width = use only if 250px is an enlargement of the original image
|image=
|greaterloc = Greater Location, i.e. Shy Guy's Toybox &rarr; Toad Town
|first_appearance=
|capital = as says
|latest_appearance=
|ruler = use current/latest ruler
|greater_location=
|inhabitants = meaning species. Can be multiple
|capital=
|first_appearance = game it first debuted
|ruler=
|latest_appearance = game it last was shown in
|owner=
|inhabitants=
|iteration_of=
|iterations=
}}
}}
</pre>
</pre>


[[Category: Formatting Templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 18:14, February 2, 2025

An infobox that provides basic information about a location.

Usage

Syntax
|title= By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|image= An image depicting the location
|first_appearance= The debut appearance of the location and the date in parentheses
|latest_appearance= The latest appearance of the location and the date in parentheses
|greater_location= The overall area where the location is found in (e.g. Shy Guy's Toy BoxToad Town)
|capital= The capital of the location (rarely applicable)
|ruler= The character(s) who rule or otherwise govern the area (rarely applicable)
|owner= Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|inhabitants= This specifically applies to species. There can be multiple types of inhabitants.
|iteration_of= Use this on the pages for specific versions of a recurring location.
|iterations= Use this to list specific versions of a recurring location when said versions get a separate page due to size.
{{location infobox
|title=
|image=
|first_appearance=
|latest_appearance=
|greater_location=
|capital=
|ruler=
|owner=
|inhabitants=
|iteration_of=
|iterations=
}}