Template:Location infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "background-color:" to "background:")
(cleanup coding. i might do a table similar to that of char infobox & species infobox)
Line 1: Line 1:
{| class="infobox" style="width:265px;background:#fef;border:1px solid {{{border|#c8c}}}"
{| class="infobox" style="width:280px;background:#fef;border:1px solid {{{border|#c8c}}}"
| align="center" style="background:#cbc;border:1px solid #c8c" colspan=2 | <font size=3><font color=black>'''{{{name|{{PAGENAME}}}}}'''</font>
! style="background:#cbc;border:1px solid #c8c;font-size:125%" colspan=2 |{{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" |{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{width|256}}}px|center]]}}
| colspan="2" |{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{width|256}}}px|center]]}}
|-
|-
| colspan="2" |<center>{{#if:{{{caption|}}}|{{{caption|}}}}}</center>
| colspan="2" style="text-align:center" | {{#if:{{{caption|}}}|{{{caption|}}}}}
|-style="background:#ffe3ff"
|-style="background:#ffe3ff"
{{#if:{{{greaterloc|}}}|
{{#if:{{{greaterloc|}}}|
{{!}} <span style="color:black">'''Greater location
{{!}} '''Greater location'''
{{!}} {{{greaterloc|}}}
{{!}} {{{greaterloc|}}}
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{capital|}}}|
{{#if:{{{capital|}}}|
{{!}} <span style="color:black">'''Capital
{{!}} '''Capital'''
{{!}} {{{capital}}}
{{!}} {{{capital}}}
|}}
|}}
|- style="vertical-align: top;background:#ffe3ff"
|- style="vertical-align: top;background:#ffe3ff"
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}} <span style="color:black">'''Ruler
{{!}} '''Ruler'
{{!}} {{{ruler}}}
{{!}} {{{ruler}}}
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}} <span style="color:black">'''Inhabitants
{{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
|}}
|}}
|- style="vertical-align: top;background:#ffe3ff"
|- style="vertical-align: top;background:#ffe3ff"
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|
{{!}} <span style="color:black">'''First appearance
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{latest_appearance|}}}|
{{#if:{{{latest_appearance|}}}|
{{!}} <span style="color:black">'''Latest appearance
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
|}}
|}}
|}<noinclude>{{br}}
|}<noinclude>{{br}}
==Usage instructions==
==Usage instructions==
Provides info about a location in any ''Mario'' game.
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.


All rows will disappear if respective variables are not defined. Width is for image only, default 256px.
All rows will disappear if respective variables are not defined. Width is for image only, default 256px.

Revision as of 10:17, September 16, 2021

Location infobox

Usage instructions

Provides info about a location in a game of the respective Mario, Yoshi, Wario, and Donkey Kong franchises.

All rows will disappear if respective variables are not defined. Width is for image only, default 256px.

{{location-infobox
|name=Changes the name in the infobox to remove title identifiers
|image=A file without "Image:" or "File:" preceding its name (e.g. write "Mario223.jpg")
|caption=A caption for the image
|width=Only use if 256px is an enlargement of the original image.
|greaterloc=The overall area where the location is found in (i.e. Shy Guy's Toybox → Toad Town)
|capital=The capital (rarely applicable)
|ruler=The current/latest ruler
|inhabitants=Meaning species. There can be multiple types of inhabitants.
|first_appearance=The game it first debuted in and the date in parentheses
|latest_appearance=The game it last was shown in and the date in parentheses
}}