Don't like the ads? Then create an account! Users with accounts have more options than anonymous users.

Difference between revisions of "Template:Location infobox"

From Triforce Wiki, a The Legend of Zelda wiki
Jump to navigationJump to search
(trying something lighter)
(Fixed this too)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=300px style="padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background:ghostwhite; border:1px solid #000;"
{| class="infobox" style="background:#FFF"
! colspan="2" style="background-color:#8AFA8A;font-size:125%"| {{{name|{{PAGENAME}}}}}
|-
|-
! colspan="2" bgcolor="#99FF33" style="font-size:13px"| {{{name|{{PAGENAME}}}}}
| style="text-align:center" colspan="2" | {{{image|}}}
|-
| align="center" colspan="2" | {{{image|}}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{first_appearance|}}}|{{!}}-style="background:#99FF99"
{{#if:{{{first_appearance|}}}|{{!}}-style="background:#beffbe"
{{!}} '''First appearance'''
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{latest_appearance|}}}|{{!}}-style="background:#99FF99"
{{#if:{{{latest_appearance|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Latest appearance'''
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
|}}
|}}
|- style="vertical-align: top;"
|- style="vertical-align: top;"
{{#if:{{{location|}}}|{{!}}-style="background:#99FF99"
{{#if:{{{location|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Greater location'''
{{!}} '''Greater location'''
{{!}} {{{location}}}
{{!}} {{{location}}}
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{inhabitants|}}}|{{!}}-style="background:#99FF99"
{{#if:{{{capital|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Capital'''
{{!}} {{{capital}}}
|}}
|- style="vertical-align: top"
{{#if:{{{ruler|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Ruler'''
{{!}} {{{ruler}}}
|}}
|- style="vertical-align: top"
{{#if:{{{owner|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Owner(s)'''
{{!}} {{{owner}}}
|}}
|- style="vertical-align: top"
{{#if:{{{inhabitants|}}}|{{!}}-style="background:#beffbe"
{{!}} '''Inhabitant(s)'''
{{!}} '''Inhabitant(s)'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
Line 26: Line 40:
|}<noinclude>
|}<noinclude>
==Usage==
==Usage==
<pre>
<pre>{{Location infobox
{{Location infobox
|name=Changes the name in the infobox to remove title identifiers
|name =
|image=An image of the location
|image =
|first_appearance=The game it first debuted in and the date in parentheses
|first_appearance =  
|latest_appearance=The game it last was shown in and the date in parentheses
|latest_appearance =
|location=The overall area where the location is found in
|location =  
|capital=The capital of the area (rarely applicable)
|inhabitants =  
|ruler=The current/latest ruler
}}
|owner=Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
</pre>
|inhabitants=Meaning species. There can be multiple types of inhabitants.
[[Category:Infobox templates]]</noinclude><includeonly>[[Category:Locations]]</includeonly>
}}</pre>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 22:40, February 5, 2022

Location infobox

Usage[edit]

{{Location infobox
|name=Changes the name in the infobox to remove title identifiers
|image=An image of the location
|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
|location=The overall area where the location is found in
|capital=The capital of the area (rarely applicable)
|ruler=The current/latest ruler
|owner=Alternative parameter for "ruler" used for houses, businesses, and other forms of property where the term "ruler" is unfitting
|inhabitants=Meaning species. There can be multiple types of inhabitants.
}}