Difference between revisions of "Template talk:Sign"
From #openttdcoop wiki
(→Help Please!: helps) |
m |
||
Line 9: | Line 9: | ||
: Hi Thrax, I am not sure if div elements are the best idea. IMHO we should use span, because they are better to format text only. But I am also not sure if it'll fit your needs. I changed your user abilities, you should now be able to edit Common.css or [[MediaWiki:Monoforcoop2.css]] --[[User:Osai|Osai]] 13:39, 18 September 2008 (UTC) | : Hi Thrax, I am not sure if div elements are the best idea. IMHO we should use span, because they are better to format text only. But I am also not sure if it'll fit your needs. I changed your user abilities, you should now be able to edit Common.css or [[MediaWiki:Monoforcoop2.css]] --[[User:Osai|Osai]] 13:39, 18 September 2008 (UTC) | ||
Thanks -- [[User:Thraxian|Thraxian]] 01:46, 18 September 2008 (UTC) | Thanks -- [[User:Thraxian|Thraxian]] 01:46, 18 September 2008 (UTC) | ||
+ | |||
+ | :Designing templates is difficult, as the changes do not show up until you save the template. When I work with MediaWiki templates, I usually design them in a normal page so I can see how they look. Then when they look good, I copy them over into the template page. FWIW I do a lot of work on another MediaWiki site that makes extensive use of templates, so I've got a bit of experience working with them. Not necessarily 100% XHTML compliant, but I generally know how to make MediaWiki show what I want it to show. --[[User:Rob|Rob]] 15:30, 18 September 2008 (UTC) |
Revision as of 15:30, 18 September 2008
Help Please!
Apparently, styles in tables don't work in templates.
Additionally, I don't have access to edit the Common.css to place this style in a class and try using the class instead.
Could someone with access rights please take the included style tag from this template and create a class named "sign" or "coopsign" in the CSS. Hopefully, I can then use the tag to create openttd-style signs on the wiki page using this template.
FYI, I tried using a div, but the wiki is greedy and makes the div use 100% width. Instead, I'd like the sign to be as big as it needs to be to hold the text (just like in-game), and a table appears to work well for that. I opted to use the HTML format because then it can be placed in bulleted lists. Wiki tables require the open brace in the first column, which is impossible to do if you are using an asterisk in that column to include the sign in a bulleted list.
- Hi Thrax, I am not sure if div elements are the best idea. IMHO we should use span, because they are better to format text only. But I am also not sure if it'll fit your needs. I changed your user abilities, you should now be able to edit Common.css or MediaWiki:Monoforcoop2.css --Osai 13:39, 18 September 2008 (UTC)
Thanks -- Thraxian 01:46, 18 September 2008 (UTC)
- Designing templates is difficult, as the changes do not show up until you save the template. When I work with MediaWiki templates, I usually design them in a normal page so I can see how they look. Then when they look good, I copy them over into the template page. FWIW I do a lot of work on another MediaWiki site that makes extensive use of templates, so I've got a bit of experience working with them. Not necessarily 100% XHTML compliant, but I generally know how to make MediaWiki show what I want it to show. --Rob 15:30, 18 September 2008 (UTC)