Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - " margin: 0 0 1em 1em;" to "")
mNo edit summary
(43 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=2 cellspacing=2 width=265px style="font-family: arial, sans-serif; padding: 4px; font-size: 11px; background-color:#fef; border:1px solid {{{border|#c8c}}}"
{| id="location" class="infobox" style="width:300px"
| align="center" style="background-color:#cbc; border:1px solid #c8c" colspan=2 | <font size=3><font color=black>'''{{{name|{{PAGENAME}}}}}'''</font>
! 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-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"
|}<templatestyles src="Location infobox/styles.css"/><noinclude>{{br}}
{{#if:{{{first_appearance|}}}|
Provides basic information about a location in ''[[Super Mario (franchise)|Super Mario]]'' media.
{{!}} <span style="color:black">'''First appearance
 
{{!}} {{{first_appearance}}}
==Usage==
|}}
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
|- style="vertical-align: top"
!colspan=2 style="background-color:#C8C"|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>

Revision as of 19:38, November 21, 2023

Location infobox

Provides basic information about a location in Super Mario media.

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