Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:300px;background:#fef;border:1px solid {{{border|#c8c}}}"
{| id="location" class="infobox" style="width:300px"
! style="background:#cbc;border:1px solid #c8c;font-size:125%" colspan=2 |{{{name|{{PAGENAME}}}}}
! 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|}}}}}
|- style="background:#ffe3ff"
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
|}}
}}
|-
|-
{{#if:{{{latest_appearance|}}}|
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
|}}
}}
|-style="background:#ffe3ff"
|-
{{#if:{{{greaterloc|}}}|
{{#if:{{{greater_location|}}}|
{{!}} '''Greater location'''
{{!}} '''Greater location'''
{{!}} {{{greaterloc|}}}
{{!}} {{{greater_location}}}
|}}
}}
|-
|-
{{#if:{{{capital|}}}|
{{#if:{{{capital|}}}|
{{!}} '''Capital'''
{{!}} '''Capital'''
{{!}} {{{capital}}}
{{!}} {{{capital}}}
|}}
}}
|- style="background:#ffe3ff"
|-
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}} '''Ruler'''
{{!}} '''Ruler'''
{{!}} {{{ruler}}}
{{!}} {{{ruler}}}
|}}
}}
|-
|-
{{#if:{{{owner|}}}|
{{#if:{{{owner|}}}|
{{!}} '''Owner'''
{{!}} '''Owner'''
{{!}} {{{owner}}}
{{!}} {{{owner}}}
|}}
}}
|- style="background:#ffe3ff"
|-
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}} '''Inhabitants'''
{{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
|}}
}}
|}<noinclude>{{br}}
|}<templatestyles src="Location infobox/styles.css"/><noinclude>{{br}}
Provides basic information about a location within the respective ''[[Mario (franchise)|Mario]]'', ''[[Yoshi (franchise)|Yoshi]]'', ''[[Wario (franchise)|Wario]]'', and ''[[Donkey Kong (franchise)|Donkey Kong]]'' franchises.
Provides basic information about a location in ''[[Super Mario (franchise)|Super Mario]]'' media.


==Usage==
==Usage==
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin-left:1em;margin-bottom:4px" cellpadding=3
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
!colspan=2 style="background-color:#C8C"|Syntax
!colspan=2 style="background-color:#C8C"|Syntax
|-
|-
|&#124;name=
|&#124;title=
|By default, this is not necessary, as it will automatically use the article title. When this is not desirable (e.g., where there is a "(disambiguation)" tag in the article title), it can be manually specified.
|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=
|&#124;image=
|A file without "Image:" or "File:" preceding its name (e.g. write "Mario223.jpg")
|An image depicting the location
|-
|&#124;caption=
|A caption for the image
|-
|&#124;width=
|Only use if 256px is an enlargement of the original image.
|-
|-
|&#124;first_appearance=
|&#124;first_appearance=
|The debut appearance of the location and the date in parentheses
|The debut appearance of the location and the date in parentheses
|-
|-
|style=white-space:nowrap|&#124;latest_appearance=
|style="white-space:nowrap"|&#124;latest_appearance=
|The latest appearance of the location and the date in parentheses
|The latest appearance of the location and the date in parentheses
|-
|-
|&#124;greaterloc=
|&#124;greater_location=
|The overall area where the location is found in (e.g. [[Shy Guy's Toy Box]] → [[Toad Town]])
|The overall area where the location is found in (e.g. [[Shy Guy's Toy Box]] → [[Toad Town]])
|-
|-
Line 82: Line 74:


<pre>
<pre>
{{location-infobox
{{location infobox
|name=
|title=
|image=
|image=
|caption=
|width=
|first_appearance=
|first_appearance=
|latest_appearance=
|latest_appearance=
|greaterloc=
|greater_location=
|capital=
|capital=
|ruler=
|ruler=
|owner=
|owner=
|inhabitants=
|inhabitants=
}}</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=
}}