Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
Tag: Reverted
mNo edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Location infobox/styles.css"/>
{| id="location" class="infobox" style="width:300px"
{| id="location" class="infobox" style="width:300px"
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
|-
|-
| colspan="2" style="text-align:center" | {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{width|256}}}px]]}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
| colspan="2" style="text-align:center" | {{{image|}}}
|-
|-
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|
Line 32: Line 33:
{{!}} '''Owner'''
{{!}} '''Owner'''
{{!}} {{{owner}}}
{{!}} {{{owner}}}
}}
|-
{{#if:{{{warden|}}}|
{{!}} '''Warden'''
{{!}} {{{warden}}}
}}
}}
|-
|-
Line 43: Line 39:
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
}}
}}
|}<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.
{{#if:{{{iteration_of|}}}|
 
{{!}} '''Iteration of'''
{{!}} {{{iteration_of}}}
}}
|-
{{#if:{{{iterations|}}}|
{{!}} '''Iterations'''
{{!}} {{{iterations}}}
}}
|}</includeonly><noinclude>
An infobox that provides basic information about a location.
{{br}}
==Usage==
==Usage==
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em"
!colspan=2 style="background-color:#C8C"|Syntax
!colspan=2|Syntax
|-
|-
|&#124;title=
|&#124;title=
Line 54: Line 60:
|-
|-
|&#124;image=
|&#124;image=
|A file without "Image:" or "File:" preceding its name (e.g. write "Mario223.jpg")
|An image depicting the location
|-
|&#124;width=
|Only use if 256px is an enlargement of the original image.
|-
|&#124;caption=
|A caption for the image
|-
|-
|&#124;first_appearance=
|&#124;first_appearance=
Line 79: Line 79:
|&#124;owner=
|&#124;owner=
|Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|-
|&#124;warden=
|Alternative parameter used for "ruler" used for the locations in ''[[Mario + Rabbids Sparks of Hope]]''
|-
|-
|&#124;inhabitants=
|&#124;inhabitants=
|This specifically applies to species. There can be multiple types of 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.
|}
|}


Line 91: Line 94:
|title=
|title=
|image=
|image=
|width=
|caption=
|first_appearance=
|first_appearance=
|latest_appearance=
|latest_appearance=
Line 99: Line 100:
|ruler=
|ruler=
|owner=
|owner=
|warden=
|inhabitants=
|inhabitants=
|iteration_of=
|iterations=
}}
}}
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

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