Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(i.e. is short for "in other words." fixing..)
mNo edit summary
 
(33 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:280px;background:#fef;border:1px solid {{{border|#c8c}}}"
<templatestyles src="Location infobox/styles.css"/>
! style="background:#cbc;border:1px solid #c8c;font-size:125%" colspan=2 |{{{name|{{PAGENAME}}}}}
{| 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|}}}
|-
|-
| colspan="2" style="text-align:center" | {{#if:{{{caption|}}}|{{{caption|}}}}}
{{#if:{{{first_appearance|}}}|
|-style="background:#ffe3ff"
{{!}} '''First appearance'''
{{#if:{{{greaterloc|}}}|
{{!}} {{{first_appearance}}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|-
{{#if:{{{greater_location|}}}|
{{!}} '''Greater location'''
{{!}} '''Greater location'''
{{!}} {{{greaterloc|}}}
{{!}} {{{greater_location}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{capital|}}}|
{{#if:{{{capital|}}}|
{{!}} '''Capital'''
{{!}} '''Capital'''
{{!}} {{{capital}}}
{{!}} {{{capital}}}
|}}
}}
|- style="vertical-align: top;background:#ffe3ff"
|-
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}} '''Ruler'''
{{!}} '''Ruler'''
{{!}} {{{ruler}}}
{{!}} {{{ruler}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{owner|}}}|
{{!}} '''Owner'''
{{!}} {{{owner}}}
}}
|-
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}} '''Inhabitants'''
{{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
|}}
}}
|- style="vertical-align: top;background:#ffe3ff"
|}<noinclude>
{{#if:{{{first_appearance|}}}|
Provides basic information about a location in ''[[Super Mario (franchise)|Super Mario]]'' media.
{{!}} '''First appearance'''
{{br}}
{{!}} {{{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|}}}|
|-
{{!}} '''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 a game of the respective ''[[Mario (franchise)|Mario]]'', ''[[Yoshi (franchise)|Yoshi]]'', ''[[Wario (franchise)|Wario]]'', and ''[[Donkey Kong (franchise)|Donkey Kong]]'' franchises.
|-
|&#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 (e.g. 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 22:53, May 18, 2024

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