Wikia

Community Central

Admin Forum:How many columns can I have in an article?

18,683pages on
this wiki
Talk0

This Forum has been archived

Forums: Admin Central Index Technical Help How many columns can I have in an article?
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1288 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.



How many columns can I have in an article? Like these tags, </mainpage-leftcolumn-start/> and </mainpage-rightcolumn-start/>, can I have like 3 or 4 columns? Triarchie 20:51, February 11, 2012 (UTC)

You can make a table–based layout, which allows you to have theoretically infinite columns. TK999 21:00, February 11, 2012 (UTC)
How can I do that? I want a table made with no lines. If you know what I mean. Triarchie 21:05, February 11, 2012 (UTC)
{| width="100%"
| valign="top" width="25%" | 
foo
| valign="top" width="25%" | 
bar
| valign="top" width="25%" | 
baz
| valign="top" width="25%" | 
qux
|}

for example. 1358 (Talk) 21:54, February 11, 2012 (UTC)

Thank you very much Xd1358! Triarchie 21:59, February 11, 2012 (UTC)
To prevent this from showing up as invalid HTML, you can use the following:
{| id="mainpage-table"
| 
foo
| 
bar
|
baz
|
qux
|}

and add the following lines to MediaWiki:Common.css:

 #mainpage-table {
 width: 100%;
}
 
#mainpage-table td, #mainpage-table th {
 vertical-align: top;
 width: 25%;
}

 TK999 11:41, February 12, 2012 (UTC)

Around Wikia's network

Random Wiki