Template:Location infobox: Difference between revisions

actualy goin to base it on Mariowiki colors
(trying a tiny bit brighter)
(actualy goin to base it on Mariowiki colors)
Line 1: Line 1:
{| class="infobox bordered" style="font-size: 90%; width:280px"
{| class="infobox bordered" style="font-size: 90%; width:280px"
|-  
|-  
! colspan="2" style="font-size:125%; background:#4169E1; color:#FFF"| {{{name|{{PAGENAME}}}}}
! colspan="2" style="font-size:125%; background:#C8C"| {{{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:{{{image|}}}|{{{image}}}|Have an image of this location?<br />You can help by '''[[Special:Upload|uploading]]''' it!}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
|-
|-
{{#if:{{{located|}}}{{{levels|}}}{{{capital|}}}{{{terrain|}}}{{{climate|}}}{{{inhabitants|}}}{{{ruler|}}}{{{owner|}}}{{{boss|}}}|
{{#if:{{{located|}}}{{{levels|}}}{{{capital|}}}{{{terrain|}}}{{{climate|}}}{{{inhabitants|}}}{{{ruler|}}}{{{owner|}}}{{{boss|}}}|
! colspan="2" style="background:#4169E1; color:#FFF; font-size: 105%" {{!}} '''General information'''
! colspan="2" style="background:#C8C; font-size: 105%" {{!}} '''General information'''
{{!}}-
{{!}}-
{{#if:{{{located|}}}|
{{#if:{{{located|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Located'''
{{!}} style="background:#ffbcff" {{!}} '''Located'''
{{!}} {{{located}}}
{{!}} {{{located}}}
}}  
}}  
Line 16: Line 16:
{{#if:{{{levels|}}}|
{{#if:{{{levels|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Levels'''
{{!}} style="background:#ffbcff" {{!}} '''Levels'''
{{!}} {{{levels}}}
{{!}} {{{levels}}}
}}
}}
Line 22: Line 22:
{{#if:{{{capital|}}}|
{{#if:{{{capital|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Capital'''
{{!}} style="background:#ffbcff" {{!}} '''Capital'''
{{!}} {{{capital}}}
{{!}} {{{capital}}}
}}
}}
Line 28: Line 28:
{{#if:{{{terrain|}}}|
{{#if:{{{terrain|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Terrain'''
{{!}} style="background:#ffbcff" {{!}} '''Terrain'''
{{!}} {{{terrain}}}
{{!}} {{{terrain}}}
}}
}}
Line 34: Line 34:
{{#if:{{{climate|}}}|
{{#if:{{{climate|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Climate'''
{{!}} style="background:#ffbcff" {{!}} '''Climate'''
{{!}} {{{climate}}}
{{!}} {{{climate}}}
}}
}}
Line 40: Line 40:
{{#if:{{{inhabitants|}}}|
{{#if:{{{inhabitants|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Inhabitants'''
{{!}} style="background:#ffbcff" {{!}} '''Inhabitants'''
{{!}} {{{inhabitants}}}
{{!}} {{{inhabitants}}}
}}
}}
Line 46: Line 46:
{{#if:{{{ruler|}}}|
{{#if:{{{ruler|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Ruler'''
{{!}} style="background:#ffbcff" {{!}} '''Ruler'''
{{!}} {{{ruler}}}
{{!}} {{{ruler}}}
}}
}}
Line 52: Line 52:
{{#if:{{{owner|}}}|
{{#if:{{{owner|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Owner'''
{{!}} style="background:#ffbcff" {{!}} '''Owner'''
{{!}} {{{owner}}}
{{!}} {{{owner}}}
}}
}}
Line 58: Line 58:
{{#if:{{{boss|}}}|
{{#if:{{{boss|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Boss'''
{{!}} style="background:#ffbcff" {{!}} '''Boss'''
{{!}} {{{boss}}}
{{!}} {{{boss}}}
}}
}}
Line 65: 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:#4169E1; color:#FFF; font-size: 105%" {{!}} '''Game appearances'''
! colspan="2" style="background:#C8C; font-size: 105%" {{!}} '''Game appearances'''
{{!}}-
{{!}}-
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''First appearance'''
{{!}} style="background:#ffbcff" {{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
}}
}}
Line 75: Line 75:
{{#if:{{{latest_appearance|}}}|
{{#if:{{{latest_appearance|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Latest appearance'''
{{!}} style="background:#ffbcff" {{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
}}
}}
Line 81: Line 81:
{{#if:{{{other_games|}}}|
{{#if:{{{other_games|}}}|
{{!}}-
{{!}}-
{{!}} style="background:#96acee" {{!}} '''Other games'''
{{!}} style="background:#ffbcff" {{!}} '''Other games'''
{{!}} {{{other_games}}}
{{!}} {{{other_games}}}
}}
}}
Line 88: Line 88:
==Usage==
==Usage==
{|class="table" style="width:70%;float:right;margin:0 0 1em 1em"
{|class="table" style="width:70%;float:right;margin:0 0 1em 1em"
!colspan=2 style="background:#4169E1;color:#FFF"|Syntax
!colspan=2 style="background:#C8C"|Syntax
|-
|-
|&#124;name=
|&#124;name=