Template:Location infobox: Difference between revisions

combo of https://zelda-archive.fandom.com/wiki/Template:Infobox_Location and https://www.mariowiki.com/Template:Location_infobox
m (Text replacement - "{| class="toccolours" style="float:right; margin:0 0 0.5em 1em; width:300px;font-size:95%"" to "{| class="toccolours" style="float:right; margin:0 0 0.5em 1em; width:300px;font-size:92%"")
(combo of https://zelda-archive.fandom.com/wiki/Template:Infobox_Location and https://www.mariowiki.com/Template:Location_infobox)
Line 1: Line 1:
<div>
{| class="infobox bordered" style="font-size: 90%; width:280px"
{| class="toccolours" style="float:right; margin:0 0 0.5em 1em; width:300px;font-size:92%"
|-
! colspan="2" style="font-size:125%; background:#4169E1; color:#FFF"| {{{name|{{PAGENAME}}}}}
|-
|-
! colspan="2" style="background-color:{{{bgcolor|saddlebrown}}}; color:{{{txtcolor|white}}}; text-align: center; font-size: larger;padding:3px" | '''{{{name|{{PAGENAME}}}}}'''
|colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|{{{image}}}|Have an image of this location?<br />You can help by '''[[Special:Upload|uploading]]''' it!}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
|-
|-
| colspan="2" style="text-align: center" |
{{#if:{{{located|}}}{{{levels|}}}{{{capital|}}}{{{terrain|}}}{{{climate|}}}{{{inhabitants|}}}{{{ruler|}}}{{{owner|}}}{{{boss|}}}|
{{{image}}}<br>{{{caption}}}
! colspan="2" style="background:#4169E1; color:#FFF; font-size: 105%" {{!}} '''General information'''
|-
{{#if:{{{located|}}}{{{levels|}}}{{{inhabitants|}}}{{{boss|}}}|
! colspan="2" style="background-color:{{{bgcolor|saddlebrown}}}; color:{{{txtcolor|white}}}; text-align: center; font-size: larger;" {{!}} '''General information'''
{{!}}-
{{!}}-
{{#if:{{{located|}}}|
{{#if:{{{located|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Located:'''
{{!}} style="background:#7491e9" {{!}} '''Located'''
{{!}}style="padding-right: 1em;" {{!}} {{{located}}}
{{!}} {{{located}}}
}}  
}}  
{{!}}-
{{!}}-
{{#if:{{{levels|}}}|
{{#if:{{{levels|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Levels:'''
{{!}} style="background:#7491e9" {{!}} '''Levels'''
{{!}}style="padding-right: 1em;" {{!}} {{{levels}}}
{{!}} {{{levels}}}
}}  
}}
{{!}}-
{{#if:{{{capital|}}}|
{{!}}-
{{!}} style="background:#7491e9" {{!}} '''Capital'''
{{!}} {{{capital}}}
}}
{{!}}-
{{#if:{{{terrain|}}}|
{{!}}-
{{!}} style="background:#7491e9" {{!}} '''Terrain'''
{{!}} {{{terrain}}}
}}
{{!}}-
{{#if:{{{climate|}}}|
{{!}}-
{{!}} style="background:#7491e9" {{!}} '''Climate'''
{{!}} {{{climate}}}
}}
{{!}}-
{{!}}-
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Inhabitants:'''
{{!}} style="background:#7491e9" {{!}} '''Inhabitants'''
{{!}}style="padding-right: 1em;" {{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Ruler:'''
{{!}} style="background:#7491e9" {{!}} '''Ruler'''
{{!}}style="padding-right: 1em;" {{!}} {{{ruler}}}
{{!}} {{{ruler}}}
}}
{{!}}-
{{#if:{{{owner|}}}|
{{!}}-
{{!}} style="background:#7491e9" {{!}} '''Owner'''
{{!}} {{{owner}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{boss|}}}|
{{#if:{{{boss|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Boss:'''
{{!}} style="background:#7491e9" {{!}} '''Boss'''
{{!}}style="padding-right: 1em;" {{!}} {{{boss}}}
{{!}} {{{boss}}}
}}
}}
}}  
}}  
Line 43: Line 65:
{{#if:{{{first_appearance|}}}{{{latest_appearance|}}}{{{other_games|}}}|
{{#if:{{{first_appearance|}}}{{{latest_appearance|}}}{{{other_games|}}}|
{{!}}- style="vertical-align: top;"
{{!}}- style="vertical-align: top;"
! colspan="2" style="background-color:{{{bgcolor|saddlebrown}}}; color:{{{txtcolor|white}}}; text-align: center; font-size: larger;" {{!}} '''Game appearances'''
! colspan="2" style="background:#4169E1; color:#FFF; font-size: 105%" {{!}} '''Game appearances'''
{{!}}-
{{!}}-
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''First appearance:'''
{{!}} style="background:#7491e9" {{!}} '''First appearance'''
{{!}}style="padding-right: 1em;" {{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{latest_appearance|}}}|
{{#if:{{{latest_appearance|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Latest appearance:'''
{{!}} style="background:#7491e9" {{!}} '''Latest appearance'''
{{!}}style="padding-right: 1em;" {{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{other_games|}}}|
{{#if:{{{other_games|}}}|
{{!}}- style="vertical-align: top;"
{{!}}-
{{!}}'''Other Games:'''
{{!}} style="background:#7491e9" {{!}} '''Other games'''
{{!}}style="padding-right: 1em;" {{!}} {{{other_games}}}
{{!}} {{{other_games}}}
}}
}}
}}
}}
|}<noinclude>{{br}}
==Usage==
{|class="table" style="width:70%;float:right;margin:0 0 1em 1em"
!colspan=2 style="background:#4169E1;color:#FFF"|Syntax
|-
|&#124;name=
|By default, this is not necessary, as it automatically uses the article title. For special cases, it can be manually specified.
|-
|&#124;image=
|An image of the location
|-
|&#124;caption=
|A caption for the image
|-
|&#124;located=
|The overall area where the location is found in (e.g. [[Shy Guy's Toy Box]] → [[Toad Town]])
|-
|&#124;levels=
|The number of levels in the location
|-
|&#124;capital=
|The capital of the location
|-
|&#124;points_of_interest=
|Other points of interest found in the location, such as landmarks
|-
|&#124;terrain=
|The terrain of the location
|-
|&#124;climate=
|The climate, or usual weather pattern, of the location
|-
|&#124;inhabitants=
|This specifically applies to species. There can be multiple types of inhabitants.
|-
|&#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;boss=
|This parameter is for the boss fought in the location. It is not to be confused with "ruler," and in some cases both parameters may apply.
|-
|&#124;first_appearance=
|The debut appearance of the location and the date in parentheses
|-
|&#124;latest_appearance=
|The latest appearance of the location and the date in parentheses
|-
|&#124;other_games=
|Other games that the location appears in (link to a "List of appearances" section in the article if necessary)
|}
|}
</div>
<noinclude>
==Usage==
<pre>
<pre>
{{Location infobox
{{location infobox
|bgcolor=
|txtcolor=
|name=
|name=
|image=
|image=
Line 76: Line 145:
|located=
|located=
|levels=
|levels=
|capital=
|points_of_interest=
|terrain=
|climate=
|inhabitants=
|inhabitants=
|ruler=
|ruler=
|owner=
|boss=
|boss=
|first_appearance=
|first_appearance=
Line 84: Line 158:
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
 
</noinclude>
[[Category:Infobox templates]]</noinclude>