Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Robot: Changing Category:Infobox Templates to Category:Infobox templates)
mNo edit summary
 
(58 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=265px style="font-family: arial, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 11px; background-color:#fef; border:1px solid {{{border|#c8c}}}; color:gray"
<includeonly><templatestyles src="Location infobox/styles.css"/>
| align="center" style="background-color:#cbc; border:1px solid #c8c" colspan=2 | <font size=3><font color=black>'''{{{name|{{PAGENAME}}}}}'''</font>
{| id="location" class="infobox" style="width:300px"
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
|-
|-
| colspan="2" |{{#if:{{{image|}}}|[[Image:{{{image|}}}|{{{width|250}}}px|center]]}}
| colspan="2" style="text-align:center" | {{{image|}}}
|-
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|-
{{#if:{{{greater_location|}}}|
{{!}} '''Greater location'''
{{!}} {{{greater_location}}}
}}
|-
|-
| colspan="2" |<center>{{#if:{{{caption|}}}|{{{caption|}}}}}</center>
|-style="background-color:#ffe3ff"
{{#if:{{{greaterloc|}}}|
{{!}} <span style="color:black">'''Greater Location
{{!}} {{{greaterloc|}}}
|}}
|- style="vertical-align: top"
{{#if:{{{capital|}}}|
{{#if:{{{capital|}}}|
{{!}} <span style="color:black">'''Capital
{{!}} '''Capital'''
{{!}} {{{capital}}}
{{!}} {{{capital}}}
|}}
}}
|- style="vertical-align: top; background-color:#ffe3ff"
|-
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}} <span style="color:black">'''Ruler
{{!}} '''Ruler'''
{{!}} {{{ruler}}}
{{!}} {{{ruler}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{owner|}}}|
{{!}} '''Owner'''
{{!}} {{{owner}}}
}}
|-
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}} <span style="color:black">'''Inhabitants
{{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
|}}
}}
|- style="vertical-align: top; background-color:#ffe3ff"
|-
{{#if:{{{first_appearance|}}}|
{{#if:{{{iteration_of|}}}|
{{!}} <span style="color:black">'''First Appearance
{{!}} '''Iteration of'''
{{!}} {{{first_appearance}}}
{{!}} {{{iteration_of}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{latest_appearance|}}}|
{{#if:{{{iterations|}}}|
{{!}} <span style="color:black">'''Latest Appearance
{{!}} '''Iterations'''
{{!}} {{{latest_appearance}}}
{{!}} {{{iterations}}}
|}}
}}
|}<noinclude><br clear=all>
|}</includeonly><noinclude>
==Usage Instructions==
An infobox that provides basic information about a location.
Provides info about a location in any Mario game.
{{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=a file without "Image:" or "File:" preceding its name (e.g. write "Mario223.jpg")
|title=
|caption=a caption for the image
|image=
|width=only use if 250px is an enlargement of the original image
|first_appearance=
|greaterloc=the overall area where the location is found in (i.e. Shy Guy's Toybox &rarr; Toad Town)
|latest_appearance=
|capital=the capital (rarely applicable)
|greater_location=
|ruler=use the current/latest ruler
|capital=
|inhabitants=meaning species. There can be multiple types inhabitants.
|ruler=
|first_appearance=the game it first debuted in and the date in parentheses
|owner=
|latest_appearance=the game it last was shown in and the date in parentheses
|inhabitants=
|iteration_of=
|iterations=
}}
}}
</pre>
</pre>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 17: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=
}}