Forum:Copied Template (minor?) problem

Hello Wikians, I tried copying this template, seen on this WikiSource page, but when I copy it, it looks incomplete. How can I fix it so that it looks exactly like the original? I hope I don't have to copy all the templates the original uses... --- Zantam03 ( Talk ) 12:32, May 5, 2011 (UTC)


 * You always have to copy all the templates the original uses. Otherwise, the template won't know where your code is. However, there aren't any templates in this one - all you need is the CSS for the template, which will probably be in that wiki's Common.css.


 * Thanks. I copied the corresponding part from their Common.css to my Wikia.css. It looks a lot better now, but still not the way it's supposed to look. For example the  and the absense of colours. --- Zantam03 ( Talk ) 13:02, May 5, 2011 (UTC)


 * This should add the background color

 table.headertemplate {border: 1px solid #ADA; background-color: #E4F2E4;}


 * But I don't see any problem with italics, Could you be more precise? Sovq 13:09, May 5, 2011 (UTC)
 * There's a ninja  tag on the page he linked. Not really sure why it's there.


 * I guess Wikia somehow parses the  tag differently? I made a workaround for it using normal wiki markup, should it break something let me know. Sovq 13:18, May 5, 2011 (UTC)


 * Works perfect now! Thanks guys --- Zantam03 ( Talk ) 14:26, May 5, 2011 (UTC)

Colours
I would like to change the colours so that they are exactly the same as the Wikia widgets on the right. But how can I make the colours go from white, to a bit grey-ish? --- Zantam03 ( Talk ) 11:21, May 8, 2011 (UTC)


 * Put  on the table, and it'll do it automatically.


 * The current class is headertemplate, if either replace that with module, or add module to it, the table becomes white. --- Zantam03 ( Talk ) 12:28, May 8, 2011 (UTC)


 * As far as I know, the  class works only when it's parent tag has the   class. So theoretically you could replace   with   and   with  . But the downside is that the template will inherit ALL the styles from   and   classes, and there's a lot of them..


 * You could also use the  class  (replace   with  ), as it has the same background as the rail modules, but just as above - it also has other styling defined.


 * If I were you, I would just manually define the background for the box with:

 style="background: -moz-linear-gradient(top, white 35%, #f2f2f2 65%);background: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(35%, white), color-stop(65%, #f2f2f2))"


 * Sovq 20:32, May 8, 2011 (UTC)