Forum:Creating nice tables

Do we have anything like

 {| class="wikitable" 

in Wikipedia? Perselus 16:21, September 22, 2010 (UTC)


 * Yup,

—Manyman (talk) 21:41, September 22, 2010 (UTC)

Oh, I wrote the same! Please have a look at http://hu.sulipython.wikia.com/wiki/%C3%89retts%C3%A9gi_feladatok and at http://hu.sulipython.wikia.com/wiki/Szintaktikai_%C3%B6sszefoglal%C3%B3 Why don't they work for me? No lines, no background. :-( Perselus 07:37, September 23, 2010 (UTC)


 * You need to copy some CSS to  on your wiki before it works. Only sysops can do that. The code from community central is here:

/* Commonly used Wikipedia .wikitable and .prettytable */ table.wikitable, table.prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; } .wikitable th, .wikitable td, .prettytable th, .prettytable td { border: 1px #aaa solid; padding: 0.2em; } .wikitable th, .prettytable th { background: #f2f2f2; text-align: center; } .wikitable caption, .prettytable caption { margin-left: inherit; margin-right: inherit; font-weight: bold; }
 * -- Duskey talk 08:40, September 23, 2010 (UTC)

Great, it works perfectly! Thank you very much! Perselus 10:28, September 23, 2010 (UTC)