Template talk:STDT

From Guild Wars Wiki
Jump to navigationJump to search

Internal borders[edit]

Could someone darken the internal borders? They're barely visible on an LCD monitor. -- Gordon Ecker 20:47, 25 February 2007 (EST)

I'm using LCD and I see them fine. What browser are you using? - BeXoR 03:57, 26 February 2007 (EST)
It's a problem in IE. I'll try get it to work the same as it does in Firefox and if I can't I'll revert it. All of the borders are solid for me, and the one colour, and I'm using Firefox. - BeXoR 04:02, 26 February 2007 (EST)
The borders technically show up in IE, but they're a really pale, barely visible shade of grey instead of showing up black like they do in Firefox. -- Gordon Ecker 04:10, 26 February 2007 (EST)
Yeah, I'm reading my css book to see if I can change that. :) - BeXoR 04:11, 26 February 2007 (EST)
It looks like just an incompatability problem. There is no css property to change cell border colours, unless you specify on each cell with html what the border colour should be. The border colour only shows up on the outside of the table in both browsers, until you use border-collapse, and then the border shows on all the cells for FF, but still only the outside again for IE. If you don't use border-collapse the border colors arent visible in ie (unless you specify in your style tag), and in FF the color is only visible on the top and left sides of the table.
Even with the pale gray lines, I think its visually an improvement. The old style reminded me of the way websites used to look in the 90s. The old STDT looked a lot better in IE than it did in FF. It was really dark and ugly in FF. I don't know how we're even expected to use the profession border colours when they don't work. :S If you really feel that the pale grey borders cause that much of a problem you can revert it, but I think it looks better in both browers now anyway, it just might take getting used to. - BeXoR 05:18, 26 February 2007 (EST)
I couldn't darken the internal borders for IE, but I changed it so that they show properly solid in Firefox and show in that 3d style in IE. A compromise at least. - BeXoR 17:09, 26 February 2007 (EST)

Differences between FF and IE[edit]

There appears to be a huge difference between how {{STDT}} displays in IE and FF.

  • {{STDT|green}} → no display difference for firefox, IE shows green rules inside and around the table.
  • {{STDT}} align="center" → FF does not center the table (relative to page or div), IE does
  • {{STDT}} → both ok

I can think of a couple of ways that we could adjust to the FF/IE discrepancy:

  1. Adjust the template to use class="wikitable"?
  2. Create a new parm for {{STDT}}, class, which would override the other settings.
  3. Create a new template, e.g. {{STWT}} (standard wikitable), that would apply the class. (Same as #4, but in template form.)
  4. Apply the css-class directly instead of using style="margin: 0.25em; border: 1px solid #000;" cellpadding="3" cellspacing="0" rules="all". (Same as #3, without a template.)

Assuming there's an appetite for 2, 3, or 4, we'd also have to decide whether (and when) to retrofit existing tables...or to leave them alone until someone (aware of the change) edits a page.

I can't find in GWW:FORM anything that suggests that we have a style guide for tables generally (the closest we get is in projects, that propose using a specific table format for articles covered by the project, e.g. for the armor images). Elsewhere, contributors seem to have reviewed tables in similar articles (or for similar types of data) and adopted that style.

So maybe the better question is: should we have a community discussion about standardizing format for tables? (Or, things are good-enough as-is, and editors can decide to use {{STDT}} or class="wikitable" as needed.) — Tennessee Ernie Ford (TEF) 00:07, 12 August 2011 (UTC)

Reference: class="wikitable"[edit]

For reference for the above discussion, the current css for the class appears to be:

/* wikitable class for skinning normal tables */
table.wikitable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption {
    font-weight: bold;
}

/* hide initially collapsed collapsable tables */
table.collapsed tr.collapsable {
	display: none;
}

Tennessee Ernie Ford (TEF) 00:08, 12 August 2011 (UTC)


Parameters listing[edit]

Parameters 
unnamed parameter 1 
Optional. Border color. Defaults to black. 
+ 
Optional. Adds the given styles to the style attribute

For the first unnamed, yeah, I know color names so I have no trouble. But for the second unnamed parameter...a templates noob like myself...doesn't know the variables of styles... Care listing them please? User Yoshida Keiji Signature.jpg Yoshida Keiji talk 12:34, 21 May 2012 (UTC)