Template:Infobox location: Difference between revisions

removing the error-causing max-width, changing align=
mNo edit summary
(removing the error-causing max-width, changing align=)
Line 1: Line 1:
{| align="right" style="background: #{{Locationcolor/dark|{{{type|road}}}}}; width: 30%; max-width: 30%; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 2px solid #{{Locationcolor/light|{{{type|road}}}}};"
{| style="float:right; background: #{{Locationcolor/dark|{{{type|road}}}}}; width: 30%; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 2px solid #{{Locationcolor/light|{{{type|road}}}}};"
|-
| colspan="2" style="text-align:center; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}} {{roundytop|10px}}" |
{| width="100%" style="margin:auto; text-align:center; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}}{{roundytop|10px}}"
|-
|-
| colspan="2" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}} {{roundytop|10px}}" align="center" |
{| align="center" width="100%" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}}{{roundytop|10px}}"
|- align="center"
| '''<big>{{{location_name|Mystery Zone}}}</big>'''{{#if: {{{other_info|}}}|<br><small>'''{{{other_info|}}}'''</small>}}
| '''<big>{{{location_name|Mystery Zone}}}</big>'''{{#if: {{{other_info|}}}|<br><small>'''{{{other_info|}}}'''</small>}}
|  
|  
| <small><span lang="ja">'''{{{japanese_name|Unknown}}}'''</span></small><br><small>''{{{translated_name|Unknown}}}''</small>
| <small><span lang="ja">'''{{{japanese_name|Unknown}}}'''</span></small><br><small>''{{{translated_name|Unknown}}}''</small>
|- align="center"
|-
| style="{{#if:{{{slogan|}}}||display: none;}}  line-height: 8pt;" | <small>''"{{{slogan|Wild Missingno. appeared!}}}"''</small>
| style="{{#if:{{{slogan|}}}||display: none;}}  line-height: 8pt;" | <small>''"{{{slogan|Wild Missingno. appeared!}}}"''</small>
|}
|}
|- style="{{#if:{{{image|}}}||display: none;}} background: #{{Locationcolor/light|{{{type|road}}}}};"
|- style="{{#if:{{{image|}}}||display: none;}} text-align:center; background: #{{Locationcolor/light|{{{type|road}}}}};"
| colspan="2" align="center" |
| colspan="2" |
{| align="center" style="background: #{{Locationcolor/light|{{{type|road}}}}};"
{| style="margin:auto; text-align:center; background: #{{Locationcolor/light|{{{type|road}}}}};"
| align="center" | [[File:{{{image|Mystery Zone.png}}}|{{{image_size|290x290}}}px]]
| [[File:{{{image|Mystery Zone.png}}}|{{{image_size|290x290}}}px]]
|}
|}
|- {{#if: {{{mapdesc|}}}||style="display:none;"}}
|- {{#if: {{{mapdesc|}}}||style="display:none;"}}
! align="right" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Map Description:
! style="text-align:right; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Map description:
| style="background: #fff" width="210px" | {{{mapdesc}}}
| style="background: #fff" width="210px" | {{{mapdesc}}}
|-
|-
! align="right" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Location:
! style="text-align:right; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Location:
| style="background: #fff" width="210px" | {{{location}}}
| style="background: #fff" width="210px" | {{{location}}}
|-
|-
! align="right" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Region:
! style="text-align:right; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF}}" | Region:
| style="background: #fff" width="210px" | [[{{{region}}}]]{{#if: {{{region3|}}}||{{#if: {{{region2|}}}|&nbsp;and [[{{{region2}}}]]}}}}{{#if: {{{region3|}}}|, [[{{{region2}}}]] and [[{{{region3}}}]]}}
| style="background: #fff" width="210px" | [[{{{region}}}]]{{#if: {{{region3|}}}||{{#if: {{{region2|}}}|&nbsp;and [[{{{region2}}}]]}}}}{{#if: {{{region3|}}}|, [[{{{region2}}}]] and [[{{{region3}}}]]}}
|-
|-
! align="right" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}}" | Generations:
! style="text-align:right; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}}" | Generations:
| style="background: #fff" width="210px" | {{{generation}}}
| style="background: #fff" width="210px" | {{{generation}}}
|- style="{{#switch:{{{mapdisplay|yes}}}|no=display: none;}}"
|- style="{{#switch:{{{mapdisplay|yes}}}|no=display: none;}}"
| align="center" colspan="2" style="background:#FFFFFF" | {{#switch:{{{mapdisplay|yes}}}|yes=[[File:{{{map|{{{region}}}{{{region2|}}} {{{location_name}}} Map.png}}}{{#if:{{{mapsize|}}}|{{!}}{{{mapsize}}}}}]]}}<br><small>Location of {{{location_name}}} in [[{{{mapname|{{{region}}}]]{{#if: {{{region2|}}}|&nbsp;and [[{{{region2}}}]]}}}}}{{#if: {{{mapname|}}}|]]}}.</small>
| colspan="2" style="text-align:center; background:#FFFFFF" | {{#switch:{{{mapdisplay|yes}}}|yes=[[File:{{{map|{{{region}}}{{{region2|}}} {{{location_name}}} Map.png}}}{{#if:{{{mapsize|}}}|{{!}}{{{mapsize}}}}}]]}}<br><small>Location of {{{location_name}}} in [[{{{mapname|{{{region}}}]]{{#if: {{{region2|}}}|&nbsp;and [[{{{region2}}}]]}}}}}{{#if: {{{mapname|}}}|]]}}.</small>
|-  
|-  
| colspan="2" align="center" style="background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}} {{roundybottom|10px}};" |'''[[List of locations by name|{{color|{{#ifeq: {{{type|road}}}|space|FFF|000}}|Pokémon World Locations}}]]'''
| colspan="2" style="text-align:center; background: #{{Locationcolor/light|{{{type|road}}}}}; {{#ifeq: {{{type|road}}}|space|color:#FFFFFF;}} {{roundybottom|10px}};" |'''[[List of locations by name|{{color|{{#ifeq: {{{type|road}}}|space|FFF|000}}|Pokémon world locations}}]]'''
|}<noinclude>[[Category:Infobox templates]]</noinclude>
|}<noinclude>[[Category:Infobox templates]]</noinclude>