Forum:Infobox Headers

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search

Forums: Index Community help

I've been creating an infobox. For some reason second header is messed up

{|
{| style="border: 1px solid #aaa; border-spacing: 0; float: right; margin: 0 0 .5em 1em; width: 300px;"
| style="background-color: {{{bgcolor|Beige}}}; text-align: center;" |
 <p style="font-size: larger;">'''{{{name|{{PAGENAME}}}}}'''</p>
 <div style="background-color: #fff; margin: 0 25px;">[[File:{{{image}}}|250px|link=]]</div>
 <p>{{{caption}}}</p>
|-
| style="text-align: center;" | <u>'''General information'''</u>
{| style="margin: 0 auto; text-align: left;"
{{#if:{{{reality}}}|
! style="text-align: right; width: 80px;" {{!}} Reality state:
{{!}} {{{reality}}} }}
{{#if:{{{government}}}|
{{!}}-
! style="text-align: right;" {{!}} Government:
{{!}} {{{government}}} }}
{{#if:{{{language|}}}|
{{!}}-
! style="text-align: right;" {{!}} Language:
{{!}} {{{language}}} }}
{{#if:{{{personality|}}}|
{{!}}-
! style="text-align: right;" {{!}} Personality:
{{!}} {{{personality}}} }}
{{#if:{{{capital|}}}|
{{!}}-
! style="text-align: right;" {{!}} Capital:
{{!}} {{{capital}}} }}
{{#if:{{{affiliation|}}}|
{{!}}-
! style="text-align: right;" {{!}} Affiliation:
{{!}} {{{affiliation}}} }}
{{#if:{{{religion|}}}|
{{!}}-
! style="text-align: right;" {{!}} Religion:
{{!}} {{{religion}}} }}
|
|-
{| style="margin: 0 auto; text-align: left;"
| style="text-align: center;" | <u>'''Other information'''</u>
{{#if:{{{can into space|}}}|
{{!}}-
! style="text-align: right;" {{!}} Can into space?:
{{!}} {{{can into space}}} }}
{{#if:{{{bork|}}}|
{{!}}-
! style="text-align: right;" {{!}} Börk:
{{!}} {{{bork}}} }}
|}
|}
|}

This is the code --Terrr (talk) 09:53, 1 April 2017 (UTC)

It's hard to know what "messed up" means, since I have to guess what you really want. However, your wiki-markup has errors. Where you have
|
|-
{| style="margin: 0 auto; text-align: left;"
something like
|-
| {| style="margin: 0 auto; text-align: left;"
is probably what you were trying to do. However, that's also probably not what you really want. It puts the "Other information" table (which has 2 columns) inside the first column of the "General information" table (which has 1 or 2 columns with the edit above, 1 or 3 without) inside an overall wrapper table. Assuming you want to stick with tables as your layout, I think you should terminate the "General information" table before you start the "Other information" table. --Saftzie (talk) 20:23, 1 April 2017 (UTC)
It still looks like this http://prntscr.com/erl5yz --Terrr (talk) 17:54, 2 April 2017 (UTC)
You should link to a page where you have difficulty. It's easier to help that way (unless it's a private wiki). --Saftzie (talk) 19:40, 2 April 2017 (UTC)
s:w:polenball:Polandball --Terrr (talk) 11:52, 3 April 2017 (UTC)
Done, I think. --Saftzie (talk) 17:47, 3 April 2017 (UTC)