Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "background-color:" to "background:")
mNo edit summary
 
(39 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:265px;background:#fef;border:1px solid {{{border|#c8c}}}"
<includeonly><templatestyles src="Location infobox/styles.css"/>
| align="center" style="background:#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|}}}|[[File:{{{image|}}}|{{{width|256}}}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:#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:#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:#ffe3ff"
|}</includeonly><noinclude>
{{#if:{{{first_appearance|}}}|
An infobox that provides basic information about a location.
{{!}} <span style="color:black">'''First appearance
{{br}}
{{!}} {{{first_appearance}}}
==Usage==
|}}
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em"
|- style="vertical-align: top"
!colspan=2|Syntax
{{#if:{{{latest_appearance|}}}|
|-
{{!}} <span style="color:black">'''Latest appearance
|&#124;title=
{{!}} {{{latest_appearance}}}
|By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|}}
|-
|}<noinclude>{{br}}
|&#124;image=
==Usage instructions==
|An image depicting the location
Provides info about a location in any ''Mario'' game.
|-
|&#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.
|}


All rows will disappear if respective variables are not defined. Width is for image only, default 256px.
<pre>
<pre>
{{location-infobox
{{location infobox
|name=Changes the name in the infobox to remove title identifiers
|title=
|image=A file without "Image:" or "File:" preceding its name (e.g. write "Mario223.jpg")
|image=
|caption=A caption for the image
|first_appearance=
|width=Only use if 256px is an enlargement of the original image.
|latest_appearance=
|greaterloc=The overall area where the location is found in (i.e. Shy Guy's Toybox &rarr; Toad Town)
|greater_location=
|capital=The capital (rarely applicable)
|capital=
|ruler=The current/latest ruler
|ruler=
|inhabitants=Meaning species. There can be multiple types of inhabitants.
|owner=
|first_appearance=The game it first debuted in and the date in parentheses
|inhabitants=
|latest_appearance=The game it last was shown in and the date in parentheses
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 13:09, June 20, 2024

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.
{{location infobox
|title=
|image=
|first_appearance=
|latest_appearance=
|greater_location=
|capital=
|ruler=
|owner=
|inhabitants=
}}