Difference between revisions of "Template talk:Sign"

From #openttdcoop wiki

Jump to: navigation, search
m
m (Thanks Rob)
 
Line 13: Line 13:
  
 
:Also, you were using three sets of brackets when calling the template. You invoke the template with only two sets of brackets. When designing the template, three sets of brackets determine where to put the user-supplied data. I took the liberty of fixing your template. I hope you don't mind. I removed the div stuff and put the style info right into the td tag. --[[User:Rob|Rob]] 15:34, 18 September 2008 (UTC)
 
:Also, you were using three sets of brackets when calling the template. You invoke the template with only two sets of brackets. When designing the template, three sets of brackets determine where to put the user-supplied data. I took the liberty of fixing your template. I hope you don't mind. I removed the div stuff and put the style info right into the td tag. --[[User:Rob|Rob]] 15:34, 18 September 2008 (UTC)
 +
 +
::Actually, I'm quite grateful that you fixed it.  I'm not experienced in making templates - I know when they're needed, and I know what I want them to look like - I just can't get the exact format correct.  I suppose it will come with time.  Thanks for fixing it up! -- [[User:Thraxian|Thraxian]] 16:39, 18 September 2008 (UTC)

Latest revision as of 16:39, 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)
Also, you were using three sets of brackets when calling the template. You invoke the template with only two sets of brackets. When designing the template, three sets of brackets determine where to put the user-supplied data. I took the liberty of fixing your template. I hope you don't mind. I removed the div stuff and put the style info right into the td tag. --Rob 15:34, 18 September 2008 (UTC)
Actually, I'm quite grateful that you fixed it. I'm not experienced in making templates - I know when they're needed, and I know what I want them to look like - I just can't get the exact format correct. I suppose it will come with time. Thanks for fixing it up! -- Thraxian 16:39, 18 September 2008 (UTC)
Powered by MediaWiki
  • This page was last modified on 18 September 2008, at 16:39.