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
 
(38 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:280px;background:#fef;border:1px solid {{{border|#c8c}}}"
<includeonly><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"
|-
{{#if:{{{first_appearance|}}}|
{{#if:{{{iteration_of|}}}|
{{!}} '''First appearance'''
{{!}} '''Iteration of'''
{{!}} {{{first_appearance}}}
{{!}} {{{iteration_of}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{latest_appearance|}}}|
{{#if:{{{iterations|}}}|
{{!}} '''Latest appearance'''
{{!}} '''Iterations'''
{{!}} {{{latest_appearance}}}
{{!}} {{{iterations}}}
|}}
}}
|}<noinclude>{{br}}
|}</includeonly><noinclude>
==Usage instructions==
An infobox that provides basic information about a 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.
{{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 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
|iteration_of=
|iterations=
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

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