Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(proof)
mNo edit summary
 
(80 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|}}}|
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|-
{{#if:{{{greater_location|}}}|
{{!}} '''Greater location'''
{{!}} {{{greater_location}}}
}}
|-
{{#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
|-
|-
|'''Greater Location'''
|&#124;title=
|{{{greaterloc}}}}}
|By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|-
|-
|{{#if:{{{capital|}}} | 
|&#124;image=
|An image depicting the location
|-
|-
|'''Capital'''
|&#124;first_appearance=
|{{{capital}}}}}
|The debut appearance of the location and the date in parentheses
|-
|-
|{{#if:{{{ruler|}}} |  
|style="white-space:nowrap"|&#124;latest_appearance=
|The latest appearance of the location and the date in parentheses
|-
|-
|'''Current Ruler'''
|&#124;greater_location=
|{{{ruler}}}}}
|The overall area where the location is found in (e.g. [[Shy Guy's Toy Box]] → [[Toad Town]])
|-
|-
|{{#if:{{{inhabitants|}}} |  
|&#124;capital=
|The capital of the location (rarely applicable)
|-
|-
|'''Inhabitants'''
|&#124;ruler=
|{{{inhabitants}}}}}
|The character(s) who rule or otherwise govern the area (rarely applicable)
|-
|-
|{{#if:{{{first_appearance|}}} |  
|&#124;owner=
|Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|-
|-
|'''First Appearance'''
|&#124;inhabitants=
|{{{first_appearance}}}}}
|This specifically applies to species. There can be multiple types of inhabitants.
|-
|-
|{{#if:{{{latest_appearance|}}} |  
|&#124;iteration_of=
|Use this on the pages for specific versions of a recurring location.
|-
|-
|'''Latest Appearance'''
|&#124;iterations=
|{{{latest_appearance}}}}}
|Use this to list specific versions of a recurring location when said versions get a separate page due to size.
|}<noinclude><br clear="all">
|}
== Usage Instructions ==
Provides info about a location in any Mario game.


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=
}}