Template talk:Elem Infobox: Difference between revisions
imported>Robert W King |
John Leach (talk | contribs) m (Text replacement - "aluminum" to "aluminium") |
||
(43 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
== what does element color mean? == | == what does element color mean? == | ||
I don't see anywhere what the definition is for the elementColor variable. | I don't see anywhere what the definition is for the elementColor variable. | ||
Line 284: | Line 196: | ||
::Perhaps the best route for us here is to use only the naming conventions that will cause very little, or even preferrably _no_ dispute amongst those "in the know"...if there is such a solution?--[[User:David Yamakuchi|David Yamakuchi]] 12:17, 8 April 2008 (CDT) | ::Perhaps the best route for us here is to use only the naming conventions that will cause very little, or even preferrably _no_ dispute amongst those "in the know"...if there is such a solution?--[[User:David Yamakuchi|David Yamakuchi]] 12:17, 8 April 2008 (CDT) | ||
:::The | :::The aluminium group might be called post-transition element metals or pst-transition metals [[User:David E. Volk|David E. Volk]] 11:58, 8 April 2008 (CDT) | ||
::::post-transition metals is a fine name...do they include Zn, Cd, and Hg?--[[User:David Yamakuchi|David Yamakuchi]] 12:17, 8 April 2008 (CDT) | ::::post-transition metals is a fine name...do they include Zn, Cd, and Hg?--[[User:David Yamakuchi|David Yamakuchi]] 12:17, 8 April 2008 (CDT) | ||
Line 364: | Line 276: | ||
{| class="wikitable" | {| class="wikitable" | ||
|colspan= | |colspan=8 align=center|'''Different sizes of [[Scandium]] (units are kilobytes)''' | ||
|- | |- | ||
|rowspan=2| | |rowspan=2| | ||
|rowspan=2 align=center|'''no template''' | |width=15% rowspan=2 align=center|'''no template''' | ||
|colspan=2 align=center|'''old mediawiki version ''' | |width=15% colspan=2 align=center|'''old mediawiki version ''' | ||
|colspan=2 align=center|'''latest mediawiki version''' | |width=15% colspan=2 align=center|'''latest mediawiki version''' | ||
|width=15% colspan=2 align=center|'''transition metal version''' | |||
|- | |- | ||
| | |||
|align=center|'''<font color=red>diff</font>''' | |||
| | | | ||
|align=center|'''<font color=red>diff</font>''' | |align=center|'''<font color=red>diff</font>''' | ||
Line 382: | Line 297: | ||
|555 | |555 | ||
|<font color=red>174</font> | |<font color=red>174</font> | ||
|441 | |||
|<font color=red>60</font> | |||
|- | |- | ||
|Post-expand include size: | |Post-expand include size: | ||
Line 389: | Line 306: | ||
|208 | |208 | ||
|<font color=red>154</font> | |<font color=red>154</font> | ||
|183 | |||
|<font color=red>129</font> | |||
|- | |- | ||
|Template argument size: | |Template argument size: | ||
Line 396: | Line 315: | ||
|17 | |17 | ||
|<font color=red>7</font> | |<font color=red>7</font> | ||
|16 | |||
|<font color=red>6</font> | |||
|} | |} | ||
I just finished cleaning up. Colors for each element can be defined at {{tl|Elem_Infobox}}. The cell styles, including cell size, line thickness and color, as well as the opacity values, can be defined at {{tl|Ele it}} for the black cell that marks the specific element, at {{tl|Ele off}} for those cells in the background of unrelated elements to the black one and at {{tl|Ele on}} for cells that have related elements. [[User:Chris Day|Chris Day]] 11:29, 9 April 2008 (CDT) | I just finished cleaning up. Colors for each element can be defined at {{tl|Elem_Infobox}}. The cell styles, including cell size, line thickness and color, as well as the opacity values, can be defined at {{tl|Ele it}} for the black cell that marks the specific element, at {{tl|Ele off}} for those cells in the background of unrelated elements to the black one and at {{tl|Ele on}} for cells that have related elements. [[User:Chris Day|Chris Day]] 11:29, 9 April 2008 (CDT) | ||
==Colors== | ==Colors== | ||
[[Image:Pm example.jpg|thumb|481px|right|Old version using mediawiki (left). Using a jpg image (middle), new mediawiki version using more styles (right)]] | [[Image:Pm example.jpg|thumb|481px|right|Old version using mediawiki (left). Using a jpg image (middle), new mediawiki version using more styles (right)]] | ||
Line 413: | Line 335: | ||
<pre>{{!}}style="border-top:2px solid #bbb" width="100%" align="left" valign="top" | <pre>{{!}}style="border-top:2px solid #bbb" width="100%" align="left" valign="top" | ||
cellpadding="3" cellspacing="0" height="118" colspan="4" bgcolor=#f2f2f2 | cellpadding="3" cellspacing="0" height="118" colspan="4" bgcolor=#f2f2f2 | ||
{{!}}[[Periodic | {{!}}[[Periodic table of elements{{!}}{{Periodic|elSym={{{elSym}}}|elClass={{{elClass}}} | ||
|ele color=333 | |ele color=333 | ||
|nonmetal color=00ae00 | |nonmetal color=00ae00 | ||
Line 437: | Line 359: | ||
Why not have a link to each element? See what I just did for hydrogen. Then it would be easy to navigate all the elements since this collection of links would be at top right for every article. [[User:Chris Day|Chris Day]] 12:10, 10 April 2008 (CDT) | Why not have a link to each element? See what I just did for hydrogen. Then it would be easy to navigate all the elements since this collection of links would be at top right for every article. [[User:Chris Day|Chris Day]] 12:10, 10 April 2008 (CDT) | ||
:Doesn't work. Now there's a big <code><nowiki>[[hydrogen]]</nowiki></code> in the middle of the table. --[[User:Robert W King|Robert W King]] 12:14, 10 April 2008 (CDT) | :Doesn't work. Now there's a big <code><nowiki>[[hydrogen]]</nowiki></code> in the middle of the table. --[[User:Robert W King|Robert W King]] 12:14, 10 April 2008 (CDT) | ||
::Is there still the <code><nowiki>[[hydrogen]]</nowiki></code> text in the table? It looks no different on my screen, except now there is a link and I can mouse over to see hydrogen pop up. [[User:Chris Day|Chris Day]] 12:48, 10 April 2008 (CDT) | |||
:::Yeah it's still there, disrupting the table. --[[User:Robert W King|Robert W King]] 13:07, 10 April 2008 (CDT) | |||
::::Still there. I'd just get rid of it; it self links to the page that it's on, which makes no sense anyway. --[[User:Robert W King|Robert W King]] 13:19, 10 April 2008 (CDT) | |||
:::::Three questions: | |||
:::::*Where exactly are you seeing the <code><nowiki>[[hydrogen]]</nowiki></code> text, only on the hydrogen page or on the other elements too? | |||
:::::*Why is it a problem that it self links, it just won't work in that case? | |||
:::::*How can a cell be coded to link in a way that it works in IE? [[User:Chris Day|Chris Day]] 13:51, 10 April 2008 (CDT) | |||
::::::*I'm not seeing it now, but it's also still not linking. | |||
::::::*It's not a problem, but it just seems pointless. | |||
::::::*You can't use any text because the font size has to be zero in order for the table to be as small as it is in IE. You *could* create a transparent gif/jpeg and use imagemap in each little cell, but that would probably up the size of the template a lot. --[[User:Robert W King|Robert W King]] 14:01, 10 April 2008 (CDT) | |||
:::::::*I fixed it. | |||
:::::::*Only 1% of the time will it be pointless, its not worth coding to avoid it as it's harmless, I think? | |||
:::::::*So the problem is IE only works with content? See that sandbox i was working with and see if a colored cell is clickable. Thanks. [[User:Chris Day|Chris Day]] 14:34, 10 April 2008 (CDT) | |||
== Article Text Clearance == | |||
Hey what gives? The article text is all shoved up against the infobox again. #$#%^ | |||
All: The width=164 outside box was supposed to be a keepout for article text. The article text in the current version now has a zero clearance around the infobox and it looks particularly bad on browsers that do full justification of the page text (like IE for instance). If we're just going to throw out the keepout functionality, we might as well remove the extra table too, it's useless otherwise...I just think it's a mistake. Is there no margin settings built into the wiki tables that we can use here?--[[User:David Yamakuchi|David Yamakuchi]] 02:58, 11 April 2008 (CDT) | |||
:It was not done intentionally. I have no idea which edit caused the problem. Possibly an increase in the cell width in the periodic table forcing it beyond the set width and into the keepout. Try increasing the width of the outer table a bit more? Or is that a problem since the info box will be too big? [[User:Chris Day|Chris Day]] 03:05, 11 April 2008 (CDT) | |||
::I suspect if the box get too big, we'll hear about it :-)--[[User:David Yamakuchi|David Yamakuchi]] 03:17, 11 April 2008 (CDT) | |||
:::I think the cell size increase in the periodic table caused it to force itself into the keep out space to the tune of about 18px, so I increased the outer table to 180. Is that enough keepout, as well as is it a small enough infobox. Now that each cell on the periodic table is mousable we don't want them to be miniscule. [[User:Chris Day|Chris Day]] 03:20, 11 April 2008 (CDT) | |||
::::Agreed...looks good. Good work BTW. You really made some huge improvements. I think folks will really find this thing handy...--[[User:David Yamakuchi|David Yamakuchi]] 03:27, 11 April 2008 (CDT) | |||
:::::Thanks but I just made minor changes to what Robert and yourself had already built. [[User:Chris Day|Chris Day]] 03:40, 11 April 2008 (CDT) | |||
== Hazard Box == | |||
Something seems wrong with the Hazard section...see [[Lead]]...--[[User:David Yamakuchi|David Yamakuchi]] 03:21, 11 April 2008 (CDT) | |||
:Looks fine on my browser. What do you see? [[User:Chris Day|Chris Day]] 03:23, 11 April 2008 (CDT) | |||
[[Image:Eleinfoscreenshot.JPG|left|350px]]Looks like a black box for any element that has a Hazard section.--[[User:David Yamakuchi|David Yamakuchi]] 03:33, 11 April 2008 (CDT) | |||
::I think that got it--[[User:David Yamakuchi|David Yamakuchi]] 03:37, 11 April 2008 (CDT) | |||
::It looks like the "bgcolor=" (holdover from html?) cannot use "fff" but needs "ffffff". Mind you, it looked OK on my browser. Thanks for pointing it out. [[User:Chris Day|Chris Day]] 03:40, 11 April 2008 (CDT) | |||
:::I think you can only use #XXX in style sheet notation; otherwise you have to use "plain-english" values or #XXXXXX hex format. --[[User:Robert W King|Robert W King]] 08:31, 11 April 2008 (CDT) | |||
==Group,Period,Block== | |||
I blatantly ripped WP's hover-over template and commandeered it for our use. I added it to the group, period, and block variables so now if you hover them it'll just say what it's for. --[[User:Robert W King|Robert W King]] 14:38, 12 April 2008 (CDT) | |||
==3/1 vs 2/2== | |||
Chris, I don't want to jack up the electron configuration, and the text for the periodness is only 1 cell wide anyway. --[[User:Robert W King|Robert W King]] 15:53, 12 April 2008 (CDT) | |||
:Electron configuration does not get changed, it can push up to the other text (period value) in 2:2 or 3:1 configuration. The element symbol, however, is pushed left due to the extra white space that is forced in place due to the lower right box always being wider than the oxidation value box. I acknowledge that both are only one cell wide but the oxidation values are also ''only'' one number wide. In a 3:1 configuration the Period, block etc. numbers can push under the symbol box without compromising the electron config. [[User:Chris Day|Chris Day]] 19:26, 12 April 2008 (CDT) | |||
::I know what you're thinking, but I haven't seen it happen in any of the articles that use the infobox yet. --[[User:Robert W King|Robert W King]] 19:34, 12 April 2008 (CDT) | |||
: So move the electron configuration to the subpage. It's really not as important as the other info in the box, is it? Chemists use the oxidation states (aka valence) anyway, right? Who uses electron configurations, and for what? [[User:J. Noel Chiappa|J. Noel Chiappa]] 00:04, 13 April 2008 (CDT) | |||
::You'll have to ask who ever added it to the box. It has always been there since I have seen it. Since I am not a chemist I have never really questioned the content. Certainly I would not use it. Electronegativity might be a more useful one to have there. [[User:Chris Day|Chris Day]] 00:09, 13 April 2008 (CDT) | |||
:::I added it originally to the box because it was something that I found on most versions of the periodic table. --[[User:Robert W King|Robert W King]] 06:35, 13 April 2008 (CDT) | |||
===Longest width=== | |||
Look in a chemistry book ;). I don't know. --[[User:Robert W King|Robert W King]] 22:57, 12 April 2008 (CDT) | |||
:I think [[polonium]] might be close to the longest and it seems fine. However the electronic configuration is squashed and I assume it will get worse as the atomic number increases. So I have tried to maximise the space available for that instead. If the largest electronic configuration cannot fit in we can always increase the width of the whole infobox a bit more. [[User:Chris Day|Chris Day]] 23:36, 12 April 2008 (CDT) | |||
:: I wouldn't want to do that; it woull cramp the text to the left too much on smaller screens/windows. [[User:J. Noel Chiappa|J. Noel Chiappa]] 10:25, 13 April 2008 (CDT) | |||
:::What would you regard as optimal width? It's at 180 pixels right now (including margin buffer for the text outside). [[User:Chris Day|Chris Day]] 12:43, 13 April 2008 (CDT) | |||
== Physical Properties Templates == | |||
I pointed the mass, atomic number, and element symbol to the Physical Properties template for each element '''"#if:"''' it exists or '''"else"''' just use the data passed in by the author. That way when these data are populated in their respective PP templates, we can use them elsewhere as well! I think that eventually, perhaps when all of the PP templates for the elements exist, we may want to switch this clause around and say '''if''' the author has specified a value '''then''' use it instead. --[[User:David Yamakuchi|David Yamakuchi]] 14:35, 27 April 2008 (CDT) | |||
== Copied from Template talk:Elem Infobox test1 == | |||
<blockquote> | |||
===Complexity=== | |||
Part of the reason why I created the original infobox was that wikipedia infoboxes are too damn complicated, and I feel this one is too. The goal should be to create narrative functional articles without simply disgarding much of the information to meaningless numbers in a chart. I don't feel that there should be this much information. See the chemical infobox I made for David Volk; there is only the bare minimum amount of information in it and chances are it won't go beyond it's existing scope. | |||
There are major disagreements over whether or not we should be even using infoboxes on this wiki, but I contend that if we do, they should be as simple as possible, yet have just the right amount of information to make it meaningful. --[[User:Robert W King|Robert W King]] 09:04, 31 March 2008 (CDT) | |||
: Well, I will have to say I agree that the passing of HTML tables to get the thing to look right is _way_ too cumbersome. Those need to be inside the template, and we might have something usable. I was going for a more conditional type of inclusion of information. The rationale is that there will likely be different parameters that will be important depending on the element. | |||
: That said, my questions to you then become: Where in an article on an element shall I expect to look for information such as melting point, Electronegativity, ionization energies, etc? Do we need to discuss each pertinent characteristic individually and send the reader through paragraphs of information to find a number for an STP characteristic? | |||
: Now, I do agree that the infobox needs to be as simple as possible to use for the author, and should not rely on passing in tags for the cosmetic niceties, but I do contend that for some particular elements (Iron comes to mind as a for instance) we might want to include an awful lot of this type of information to be considered an authoritative source. If not in an info box then where?--[[User:David Yamakuchi|David Yamakuchi]] 11:01, 31 March 2008 (CDT) | |||
:: I think you both have good points. Maybe we could keep the detailed, extensive physical/etc constants (which I agree we ought to have) on a subpage, and on the main page have a small infobox with just the most important ones (e.g. atomic number), and a link to the subpage (labelled e.g. "more constants here"). [[User:J. Noel Chiappa|J. Noel Chiappa]] 12:14, 31 March 2008 (CDT) | |||
:::Maybe the page could be a "Full Elemental Breakdown" page or something. I don't know what it should be called (Addendum?) We should get [[User:David_E._Volk|David]] involved and get the chemistry workgroup to weigh in. <small>...said</small> [[User:Robert W King|Robert W King]] ([[User_talk:Robert W King|talk]]) {{#if:12:28, 31 March 2008|12:28, 31 March 2008|}} | |||
---- | |||
''Copied from [[Talk:Lead]]'' | |||
Some of us discussed the elem & chem infobox earlier, and seemed to agree, that the last thing we ever wanted was a really long elem infobox or chem infobox. In other words, only the key things should be in, with the idea that other physical attributes could be put in the article or under a separate subpage. A really long infobox leads to a bad layout for articles. Note all of the white space in this article at the top. I think you will find fair resistance to changing the chem and elem infobox to be this inclusive. An alternative might be to have a physical properties infobox later in the article in a physical properties section where things like boiling pts and crystal structure forms, UV-vis, NMR, refraction, etc could be placed [[User:David E. Volk|David E. Volk]] 16:32, 31 March 2008 (CDT) | |||
---- | |||
As noted above, many feel we shouldn't use chem infoboxes at all, only narrative. However, some things, like hazards, uses and molecular weight, are something people can use often. I think a '''Physical Constants''' subpage is the place for most of the other information. Such a page could be all tables, for things like IR bands, NMR shifts and J-coupling, heat capacities, excited electronic state configuration and many other things. For the main article, I prefer to know: | |||
* Will it explode? | |||
* Is is radioactive? | |||
* Is is toxic | |||
* What is it mostly used for? | |||
* What does it treat( for drugs)? | |||
The other items are of no relevance to the typical reader, but 1 in 1000 may want to know the melting point, to make slugs of quarters perhaps (do kids still try that I wonder?), or the IR or NMR spectrum. Once we have more chemists involved in the discussion, we can add this topic to the [[Chemistry style guide]] for implementation [[User:David E. Volk|David E. Volk]] 16:32, 31 March 2008 (CDT) | |||
: I think ''small'' infoboxes are perfectly fine (and desirable); it's the huge ones that are intrusive and screw up the layout. I like '''Physical Constants''' as the name for the subpage (we all seem to agree a subpage is, structurally, the right thing, yes?), but... with the limited real-estate in the subpages tab, it's a bit long (character-count-wise). Maybe just '''Constants'''? (Some are chemical, no, such as [[valence]]?) On the other hand, we're unlikely to have many other subpages for a page on an element, so maybe it's OK. [[User:J. Noel Chiappa|J. Noel Chiappa]] 20:29, 31 March 2008 (CDT) | |||
:: If pressed for space, we could call the subpage '''Data''', although it is less desirable. [[User:David E. Volk|David E. Volk]] 09:09, 1 April 2008 (CDT) | |||
=== "Key" Information and Simplicity === | |||
OK, first I wanted to thank everyone who has chimed in on the "new" infobox. The feedback is really welcome (even the stuff I don't necessarily agree with :-) and your efforts are appreciated. Now, wrt the info that the boxes contain, if we could, let's please take a closer look at the "only the key things should be in" idea presented above, with which we all _do_ seem to basically agree. That said, I also contend we might find that what the "key" things are depends not only on who we are talking to, but what element we are discussing. Here are a couple of examples: | |||
* Consider the [[melting point]] as a for instance. I originally included it in the infobox for [[lead]] because I tend to solder quite a bit. It is an important data point for me. [[Hydrogen]]'s melting point...dont care. [[Iron]]'s MP might be important to someone who does welding, or works in a foundry, [[Flourine]]'s MP...academic only. [[Tungsten]]'s MP might be of interest because it's highest, etc. | |||
I do understand that from a medical perspective, which seems to be a reasonably popular perspective here at CZ, Lead's toxic properties will be of great interest as well. But there are entire industries built around manufacturing with solder (although they have pretty much moved to China now), so I think it's possible lead's MP might also be important to others besides myself. Also, keeping the elements (at least somewhat) consistent and readable seems like one of the main goals of our discussions here. Our current list of "key" data for an element includes: Number, Mass, Symbol, Ionization states, Properties, Compounds, Uses, and Hazards. It seems like maybe the only unquestioned inclusions are Number, Mass, and Symbol. Any of the others might require such in-depth explanation that a subpage or even a completely different article might be more appropriate. | |||
* Let's briefly consider the entries for Carbon. "organic compounds", although technically accurate, seems like a rather weak entry in the infobox, and not very informative. Perhaps it could be as simple as using a link like [[Organic Compounds|Compounds]] as the only infobox "compounds" item. As I've said, I believe we need a format that will let us include the "key" items only, and not waste space with empty place holders for say, [[Carbon]]'s Hazards or Properties (both of which are currently not specified but still appear in the article's infobox). | |||
I also suppose the "Physical Properties" subpage (or should this really be more of a "catalog"?) might be a great idea for a place to dump the phone book full of physical data that will inevitably be included for many elements (or compounds for that matter). It would also give a better format to specify conditions under which things were determined (also a reason I would tend to try and stay away from calling things "constants" as, for example, Boiling Point might not be the same at different pressures, btw) and which would be difficult to make clear in an infobox. | |||
--[[User:David Yamakuchi|David Yamakuchi]] 13:06, 1 April 2008 (CDT) | |||
P.S.Sorry about the long-winded post just my 2 cents :-) | |||
: David, this whole subject is still up for discussion, so say as much as you like, anytime. I too have soldered many a time, but I never needed the MP do to so. The very fact that the is variable with respect to pressure in an argument not to include it in the box, unless we put another disclaimer at the bottom stating all values are at STP unless otherwise stated. I would like to see an actual paragraph for each element decribing its chemical/physical properties, and this is especially true for elements that have allotropes, which will melt at differing temperatures even at STP. [[User:David E. Volk|David E. Volk]] 13:53, 1 April 2008 (CDT) | |||
::I've used many soldering irons that most certainly _do_ have a temperature adjustment marked in degrees farenheit (and celcius too...sometimes see [http://www.cooperhandtools.com/brands/weller/index.cfm?model_list=1&att_id=WEL011&att1=Accessories&att2=Industrial%20Soldering%20Stations] for details). Some guys solder more than others I guess. I mean, ok, it's tin/lead anyway but maybe we're getting to the root of things here, because you just echoed one of my concerns. What I'm saying is that I want not only the "physical constant" number at least ''accessible'' from near the top of the article (subpage works great for this btw), but I want that MP (or whatever) number (wherever it is) to then link to a '''whole article''' on what is meant by a MP number and goes into transition between different crystalline structures, Curie Temp, etc, and basically tells you way more than you never wanted to know about the exact details and the method of arriving at (and nuances of) the number you see. | |||
::Of course, in the case of allotropes, there are naturally more than one "melting point" number we might want to spec, there is always room for that. But what we don't want is some student at the University of Denver to decide to bet his experiment on some [[Boiling Point|Boiling Point]] number based on data from the University of Miami say, without pointing out some important dependencies that might exist...eh?--[[User:David Yamakuchi|David Yamakuchi]] 16:01, 1 April 2008 (CDT) | |||
===Empty fields=== | |||
The empty fields are bothersome, so perhaps these need to be a ifExist variable type in the future, as is done with the taxobox currently. [[User:David E. Volk|David E. Volk]] 13:53, 1 April 2008 (CDT) | |||
:I do like the conditional approach to including the info...as you can see :-) Problem is in passing in pipes. It seems it can confuse the #if statements :-( --[[User:David Yamakuchi|David Yamakuchi]] 16:01, 1 April 2008 (CDT) | |||
:: We have a certain amount of expertise in templatology on hand. If you can formulate a question about how to achieve some particular goal, [[User:Chris Day|Chris Day]] or I can probably answer it (as in 'yes you can/no you can/you can't do that, but this works', etc). [[User:J. Noel Chiappa|J. Noel Chiappa]] 16:11, 1 April 2008 (CDT) | |||
:: The taxonomy box template is full of those types of variables. You might use that as an example. See [[West Nile virus]] for the exact name of the taxonomy template. As for complicated stuff you are talking about, transitions and so forth, that is a future endeavor perhaps. At this point, the number of reasonably good articles need to be a priority, more so than exhaustively complete articles. [[User:David E. Volk|David E. Volk]] 16:18, 1 April 2008 (CDT) | |||
:::Thanks for the pointer. It seems like I was trying to reinvent the wheel to some extent. Sorry if I went in kinda deep there for an infobox discussion, I realized afterword that we don't even _have_ an article on melting point yet...Maybe I should start there...:-) <small>...said</small> [[User:David Yamakuchi|David Yamakuchi]] ([[User_talk:David Yamakuchi|talk]]) {{#if:17:41, 1 April 2008|17:41, 1 April 2008|}} (<small>''Please sign your talk page posts by simply adding four tildes, ''</small><nowiki>~~~~</nowiki>.) | |||
</blockquote> |
Latest revision as of 07:34, 6 March 2024
what does element color mean?
I don't see anywhere what the definition is for the elementColor variable. Is there a set of colors which indicate something about the element or is it up to each element author to choose any color they like? I just kept a red color for my Boron page. Is this correct? Does it matter? David E. Volk 09:33, 6 December 2007 (CST)
Fix
There's a white margin on the left side that needs to be fixed. Also, I think some elements are better left justified, while some look better centered (I don't think they should all be centered). Thirdly, I think the picture being there is somewhat worthless. Instead we should be giving the period in which it resides so people can look it up in a much better formatted table, if they wish. --Robert W King 09:19, 4 April 2008 (CDT)
- What do you mean by centered? Could be another browser issue. Chris Day 10:59, 4 April 2008 (CDT)
- The white margin is still there. And I mean center-justified text in some of the tables. --Robert W King 11:06, 4 April 2008 (CDT)
- The white margin on the side is a "keepout" for the article text. Look at all the other structures in CZ...they've got 'em. The page looks crowded otherwise.
- Left-right-center whatever...
- The PT thumbnail is there so the person has a clue where to start looking on the table once they get one with any resolution.
- --David Yamakuchi 12:02, 4 April 2008 (CDT)
- No, this is the only structure that has it. No other templates have this visible margin. Please, I do not wish to get into a debate over this. --Robert W King 12:04, 4 April 2008 (CDT)
- The white margin is still there. And I mean center-justified text in some of the tables. --Robert W King 11:06, 4 April 2008 (CDT)
Screenshot
Robert, here is a screen shot from my browser, is this what you are seeing?
In this example, the one up as I post, I have included a simplfied periodic table. The text (6 and IVA) ned to be bigger in the picture. Also the box lines need to be thicker and the atomic numbers axed too. I did not have time to get it perfect, but you get the idea.
I prefer the one on the right with extra padding so the dividing lines don't go all the way across. I think more work on the background colours is needed. However, if mine looks completely different to yours there are more fundamental issues to solve. I did delete out a lot of code that was not necessary, for my browswer at least. It might be required for IE? Chris Day 12:06, 4 April 2008 (CDT)
- I'm not worried about the padding, it looks fine either way. And I agree with the current picture of the table, it looks better. Less is definately more. But this is what I'm talking about . Also notice, my text is not left-justified. --Robert W King 12:11, 4 April 2008 (CDT)
- It never ceases to amaze me how different the wikimarkup functions on different browsers. The justification is easy to fix, for some reason i.e. default is center compared to Safari's left.
- The margin I'm not sure about. In mine that margin has the background colour therefore cannot be seen. For some reason your the background colour is not being added in yours and its defaulting to ffffff. That is not an extra colomn but an extra surrounding the whole infobox, the table inside is then aligned right within. I can probably just get rid of that table, I'm not sure how important it is. Chris Day 12:19, 4 April 2008 (CDT)
- It solves the problem, but it confuses mediawiki on word-wrapping. Can we just make it the same size as the template? MW has built in code to solve spacing around tables and pictures. --Robert W King 12:42, 4 April 2008 (CDT)
- I can add the 'no word wrapping' back, what is the exact problem? I don't see any difference? Chris Day 12:43, 4 April 2008 (CDT)
- It solves the problem, but it confuses mediawiki on word-wrapping. Can we just make it the same size as the template? MW has built in code to solve spacing around tables and pictures. --Robert W King 12:42, 4 April 2008 (CDT)
Periodicity within the template
Instead of including a miniature picture, why not just code it into the template so you can put the "IVA" on the top and "6" on the left? I'm not thrilled by the prospect of having to create jpeg pictographs for every single element.
- The most important thing in the picture is the black square. That means you have to have a different picture for each element. So you may as well add the text to the picture. As long as the picture names are predictable they can be called up automatically according to the element name. In that way we can just discard the image field altogether. Making a bunch of pictures, one for each element, would not take that long. I'll be happy to do it, but I want to wait and see if there is interest. I could code David's example info box so you can see how the pcitures would get called up in the background. Chris Day 12:23, 4 April 2008 (CDT)
- Just so you know it's about 90 pictures. I hope you're okay with that. It'll be like half-a-day's work. I'm thinking it can probably be done in CSS dynamically, but I have yet to try it out. --Robert W King 12:29, 4 April 2008 (CDT)
- I think it could be done dynamically BUT would it work in all browsers, sigh. I think making the pictures is easiest. Once the template is made it will be very fast to cutomise each one. Chris Day 12:35, 4 April 2008 (CDT)
- I am going to attempt to make a template. --Robert W King 12:43, 4 April 2008 (CDT)
- OK I'l wait and see how that turns out first. Chris Day 12:44, 4 April 2008 (CDT)
- I am going to attempt to make a template. --Robert W King 12:43, 4 April 2008 (CDT)
- I'd be somewhat dubious about including much text in the images for a couple of reason. One, there's a resolution issue: on screens with very small pixels, people with poor eyesight might have a hard time reading small characters (size issues are presumably part of the reason to include them in the image, so I'd assuming, perhaps incorrectly, that you'd be making them small). More important, for the visually impaired, who use reading software, that software can't read a picture. J. Noel Chiappa 19:28, 4 April 2008 (CDT)
New infobox
I kind of like the new elem infobox with the links for oxidation state and so on. :) David E. Volk 13:58, 4 April 2008 (CDT)
- Does anybody know a way besides photoshop to make somethng like this happen (see right, 15% opacity)?--David Yamakuchi 02:16, 5 April 2008 (CDT)
Template
I'm about to start up work on the template version of the small table. --Robert W King 11:31, 5 April 2008 (CDT)
Another option
Working with David's opacity theme here is another possible style that migth be even more informative. Since the other elements in the group become more obvious. Chris Day 11:33, 5 April 2008 (CDT)
- What are the dimensions of each of those little boxes in pixels? --Robert W King 11:36, 5 April 2008 (CDT)
- If we stick with 140px, it should fit in the Infobox wthout stretching the table.--David Yamakuchi 11:55, 5 April 2008 (CDT)
- See Template:Periodic so far. --Robert W King 11:56, 5 April 2008 (CDT)
- If we stick with 140px, it should fit in the Infobox wthout stretching the table.--David Yamakuchi 11:55, 5 April 2008 (CDT)
- needs tweaking of course, but this is the basic idea. Should look the same under both firefox and IE.--Robert W King 12:22, 5 April 2008 (CDT)
- Ok, so opacity works now, just need to find out how to get it put behind the main stuff. --Robert W King 16:37, 5 April 2008 (CDT)
- I got it! almost... --Robert W King 19:18, 5 April 2008 (CDT)
- Maybe a little closer?...--David Yamakuchi 00:09, 8 April 2008 (CDT)
- I got it! almost... --Robert W King 19:18, 5 April 2008 (CDT)
- Ok, so opacity works now, just need to find out how to get it put behind the main stuff. --Robert W King 16:37, 5 April 2008 (CDT)
Use of {{periodic}}
Don't use periodic on this template. Use it on the according element page. --Robert W King 20:08, 5 April 2008 (CDT)
- I jacked up the implementation. There has to be some kind of logic on {{periodic}} that indicates which little box should be highlighted. --Robert W King 20:13, 5 April 2008 (CDT)
Well, we've got something...I'm just not sure how to use it without hosing the links in the infobox...Anyone????
|
--David Yamakuchi 20:28, 7 April 2008 (CDT)
I'm a bit dubious of this format. I'm not sure what you see on your browser but its not aligned correctly in mine (see screen capture to right). Second I think there is too much information mixed up there and I'm not sure we are in such short supply of space to justify it. Third, what happens when the darker element happens to be obscured by the text? Won't that be a problem?
The more I see this develop the more I favor having the table in the section below. What do you think? Chris Day 21:03, 7 April 2008 (CDT)
- The documentation claims that the "absolute" positioning can be used to line things up however we like for each element. That's not my concern. I still haven't bothered to figure it out but I wanted to get some quick guidance. The thing that is a deal killer for me is that the Infobox links break when the template goes under them. Check out the Mass number at the upper left. Am I just not using the div stuff correctly maybe?(My last real HTML coding was probably written in 1.0, so some of these crazy newfangled tags still escape me:-)--David Yamakuchi 21:15, 7 April 2008 (CDT)
|
Maybe {{
--David Yamakuchi 01:33, 8 April 2008 (CDT)
Keepout
Hey what gives? The lines for the article section headlines don't obey the keepout area like the text does...see Gold, Magnesium, etc.--David Yamakuchi 6 April 2008
- What? Are you using the new skin or monobook? --Robert W King 15:45, 6 April 2008 (CDT)
- Also I've made the infobox a div on purpose; because I'll need to use absolute positioning when I put the periodic table behind the data in the upper part of the box. --Robert W King 15:51, 6 April 2008 (CDT)
- Have a look at the Phosphorus page...--David Yamakuchi 15:55, 6 April 2008 (CDT)
- Phosphorus is the only page like that because it's approved (locked) and doesn't have an "align" specification. A constable needs to go in there and fix it. I had to add a new variable "align". It's fixed on the draft and all other pages that use this template. --Robert W King 15:56, 6 April 2008 (CDT)
- Have a look at the Phosphorus page...--David Yamakuchi 15:55, 6 April 2008 (CDT)
- Also I've made the infobox a div on purpose; because I'll need to use absolute positioning when I put the periodic table behind the data in the upper part of the box. --Robert W King 15:51, 6 April 2008 (CDT)
New box comments
Hi, this is looking good. A couple of comments: first, the electron configuration is a little obscure - maybe move that to the data subpage? I'd strongly suggest instead a link to which group of the PT it's in - using names, for the benefit of all the non-chemists in the world, who haven't memorized which numerical group the halogens, noble gasses, etc are :-) That will immediately give a lot of clues to its properties. Second (and I'm less sure about this one), I wonder about the "compounds" and "uses" sections - it seems to me that one can only give a brief gloss on the subject in such a small space, so are those really useful? On the fence a bit about that latter one, I must admit. J. Noel Chiappa 09:02, 6 April 2008 (CDT)
I repeat my comment about moving the electron configuration to the detailed data subpage, and replacing it with the textual name (and link to) the group it's in (which the average reader will find far more informative). If y'all don't like it, can someone please explain what the issue is? Also, the colours in the period table are pretty bright (i.e. garish) - I liked some of the earlier toned-down ones a bit better. J. Noel Chiappa 08:18, 8 April 2008 (CDT)
- Speaking of colours, I see no reason to have a different background colour for each element. Some of the examples I have seen are not only garish but the contrast is so bad that the text is unreadable. I think the light gray for all would be preferable with respect to legibility. Chris Day 10:55, 8 April 2008 (CDT)
the word Group and electron config too
In discussions regarding the periodic table, please be careful to use the word Group appropriately. A Group is a verticle column, like Group VIA (Oxygen and under Oxygen), whereas I think it is sometimes being used to refer to a chemical class, like non-metals.
As to the electronic configuration, showing the number of valence electrons is the main point, so for Sodium for example we could use [Ne]3s1. Showing just the relevent valence electrons. That being said, I don't care a whole lot if it stays or goes, but I kind of like it there. David E. Volk 08:35, 8 April 2008 (CDT)
- I did mean group in the sense you have it (sharing a particular electron configuration), because that's what says the most about an element's chemical properties. As for valence electrons, I thought that information was basically already given in the upper right-hand corner? J. Noel Chiappa 08:55, 8 April 2008 (CDT)
- I was thinking of Chris Day and someone else (King maybe?), in their discussion of the large hi-lighted sections of many boxes in the period table, in the opacity discussion. I know that you were using it correctly in your comments, and am just trying to keep clear on things. David E. Volk 09:01, 8 April 2008 (CDT)
- I may have used group in the descriptive sense, I didn't mean in a chemical sense. Sorry for the sloppyness. What are the definitive classes anyway? I have seen a few variations but don't have a chemistry text book handy. I'm pretty sure the color coded example that I grabbed off google is incorrect but that was the scheme David and Robert used to color code the different classes. Chris Day 10:27, 8 April 2008 (CDT)
- I used the one you made above on the right; I don't know what the actual groupings are. Ask David what he used for a reference. Also, I'd like to note that this is looking really stellar! --Robert W King 10:32, 8 April 2008 (CDT)
- I may have used group in the descriptive sense, I didn't mean in a chemical sense. Sorry for the sloppyness. What are the definitive classes anyway? I have seen a few variations but don't have a chemistry text book handy. I'm pretty sure the color coded example that I grabbed off google is incorrect but that was the scheme David and Robert used to color code the different classes. Chris Day 10:27, 8 April 2008 (CDT)
- I think that one is wrong, I used it for illustrative purposes but now I look into it in more detail I suspect they are wrong. I think this might be more correct, but a real chemist should confirm. Chris Day 10:52, 8 April 2008 (CDT)
- I was going off of the IUPAC's document:[1]
- IR-3.6.2 Collective names of groups of like elements
- The following collective names for groups of atoms are IUPAC-approved: alkali metals(Li, Na, K, Rb, Cs, Fr), alkaline earth metals (Be, Mg, Ca, Sr, Ba, Ra), pnictogens (N, P, As, Sb, Bi), chalcogens (O, S, Se, Te, Po), halogens (F, Cl, Br, I, At),
- No objection here to renaming the variable if that would make things more understandable. Perhaps elClass? As for Electron Config...dont care.--David Yamakuchi 11:01, 8 April 2008 (CDT)
- Chris' example above highlights an issue I've been struggling with here. In this particular example, Zn is called out as a transition metal, but the IUPAC document I mention above specifically stops at Cu in their list of which metals are considered "transition". We need to look to a real authority on the nomenclature, or we are spinning our wheels IMHO. Group/class...transition/"poor" metals...IDK, but in my Chemistry classes the Professor repeatedly referred to IUPAC for nomenclature guidance. Perhaps we should too?--David Yamakuchi 11:13, 8 April 2008 (CDT)
Here are examples of elements I had made from the web site I mentioned above. This can be a starting point and we can refine the classes from here. A quick look at your cite from IUPAC above indicates they have a different classification system. Chris Day 11:22, 8 April 2008 (CDT)
Elemental "Classes"
Chris, I wish we could get the wikitable to look like your pics :-) A couple of things tho...
- The rest of "Group 3" should be in Rare Earth if we would like to include that class. It incluudes Y and Sc.
- There is an ongoing discussion at Template talk:Periodic regarding including Hydrogen in Alkali Metals, or Non-Metals, or not.
- IUPAC has some other Group names, specifically; pnictogens (N, P, As, Sb, Bi), and chalcogens (O, S, Se, Te, Po). Do we include these as well? The question would then become which class to highlight in the template.
--David Yamakuchi 11:41, 8 April 2008 (CDT)
- I agree, I am not szaying those groups are definitive, I realise there are others out there. I just don't know which is the best system. I'll point out now that many IUPAC conventions are not used by scientists. Maybe in the future, but not right now. I can't speak for chemistry though. Chris Day 11:43, 8 April 2008 (CDT)
Chemists routinely ignore IUPAC names and stick with old conventions, kind of like the metric conversion the American public just can't stand. The term chalcogens is widely used but I have never used the term pnictogens before. David E. Volk 11:53, 8 April 2008 (CDT)
- Perhaps the best route for us here is to use only the naming conventions that will cause very little, or even preferrably _no_ dispute amongst those "in the know"...if there is such a solution?--David Yamakuchi 12:17, 8 April 2008 (CDT)
- The aluminium group might be called post-transition element metals or pst-transition metals David E. Volk 11:58, 8 April 2008 (CDT)
- post-transition metals is a fine name...do they include Zn, Cd, and Hg?--David Yamakuchi 12:17, 8 April 2008 (CDT)
Images version
I'm moving this discussion here from my talk page. Everything betweent he double lines was originally posted on my talk page. Chris Day 16:53, 8 April 2008 (CDT)
I think the table version eliminates a lot of needless work compared to an image-based solution. --Robert W King 14:21, 8 April 2008 (CDT)
- What worries me is the complexity as browsers upgrade etc. The work is trivial as the number of elements is limited. i wonder whether the aesthetics are improved too as the coded table is much harder to manipulate. I'm very aware of all the coding that has occurred but is it really necessary? Certianly it makes it more versatile to change colours in the future or the elements in each class. I wonder, however, will there be a need to change this in the future? Chris Day 14:27, 8 April 2008 (CDT)
- Since we're operating at the mediawiki level I suspect nothing will change much. --Robert W King 14:41, 8 April 2008 (CDT)
- Well, if we don't use the thing, at least it was a learning experience. Lets face it, the jpgs look alot better.--David Yamakuchi 14:52, 8 April 2008 (CDT)
- Right now :-)--David Yamakuchi 14:53, 8 April 2008 (CDT)
- This isn't a fair comparison. We can always add the class of element to the table, and the colors can always be adjusted. The code version is dyanmic and superior, in my professional opinion. Not to mention it's less work, and takes up less space. Plus with style sheets we can make it look any way it has to. This is very web 1.0 vs web 2.0 thinking. --Robert W King 14:54, 8 April 2008 (CDT)
- I do like the fact it is dynamic, big advantage, i just question if in this case we need it to be dynamic. If the style sheets can improve the aesthetics then great that will be one of my worries gone right there. If you consider all the images stored it might take up less space but if you consider what is seen on a single page it does not take up less space. See pre expand numbers below. Chris Day 15:02, 8 April 2008 (CDT)
- This isn't a fair comparison. We can always add the class of element to the table, and the colors can always be adjusted. The code version is dyanmic and superior, in my professional opinion. Not to mention it's less work, and takes up less space. Plus with style sheets we can make it look any way it has to. This is very web 1.0 vs web 2.0 thinking. --Robert W King 14:54, 8 April 2008 (CDT)
- Right now :-)--David Yamakuchi 14:53, 8 April 2008 (CDT)
Have you considered the size of the code? Using only mediawiki the this version of {{Elem_Infobox}} has a pre-expand size of 1,900 kilobytes compared to using an image, as in this version that has a pre-expand size of 10 kilobytes. I'm not sure if this will be really detrimental to performance or not but wikipedia has its max set at 2,000 kilobytes for a single page. Chris Day 14:58, 8 April 2008 (CDT)
- But that doesn't take into account the subpages system either. WP doesn't use clusters. I'm suggesting that we are extremely limiting our capability if we choose to go with static representations. --Robert W King 15:01, 8 April 2008 (CDT)
- I know, we are set up at 4,000 kilobytes. As soon as the limit is hit then citation templates stop working, for one. The subpages template is much smaller than it used to be and one goal was to bring the pre-expand limit back down. I don't remember the exact size of the subpages temlate, I'll check. Chris Day 15:05, 8 April 2008 (CDT)
- Well also take into account that this is for roughly 100 articles, and the "extreme version" of the data is on a subpage anyway. Do you really want to take the time to change the color on 100 little colored boxes and upload all of the files? It's a question of time and effort. --Robert W King 15:06, 8 April 2008 (CDT)
- I don't change any colours, i just move the black box to a new location. Everything else is in layers. Upload is the time consuming part, but that could be staggered, we don't have this template on many pages yet. Chris Day 15:11, 8 April 2008 (CDT)
- Well also take into account that this is for roughly 100 articles, and the "extreme version" of the data is on a subpage anyway. Do you really want to take the time to change the color on 100 little colored boxes and upload all of the files? It's a question of time and effort. --Robert W King 15:06, 8 April 2008 (CDT)
- I know, we are set up at 4,000 kilobytes. As soon as the limit is hit then citation templates stop working, for one. The subpages template is much smaller than it used to be and one goal was to bring the pre-expand limit back down. I don't remember the exact size of the subpages temlate, I'll check. Chris Day 15:05, 8 April 2008 (CDT)
From an aesthetic perspective here is the comparison from the two examples on the {{Elem_Infobox}} main page. I'd say it's up to you guys, there are definitely some advantages to having a dynamic version, but to the authors not to the readers. Chris Day 15:13, 8 April 2008 (CDT)
- I have a feeling that the concern is just only over "the way it looks"; its a relatively moot point since it can be adjusted at any given time. Is that correct? --Robert W King 15:15, 8 April 2008 (CDT)
- It can be adjusted. But obviously not as easily, as the mediawiki code. The real issue is how often do we anticipate adjustments in the future? If alot then I'd go with media wiki. If few I'd go with jpg, especially as it is smaller too. Chris Day 15:18, 8 April 2008 (CDT)
- If we're going to overflow somebody's buffers then it's not just a question of asthetics, thats a functional problem. If ele were smaller would it be a more streamlined design pre-expand-wise?--David Yamakuchi 15:24, 8 April 2008 (CDT)
- The smaller the better. Chris Day 15:28, 8 April 2008 (CDT)
- If we're going to overflow somebody's buffers then it's not just a question of asthetics, thats a functional problem. If ele were smaller would it be a more streamlined design pre-expand-wise?--David Yamakuchi 15:24, 8 April 2008 (CDT)
- How's the size now...BTW, how do I find out that number for myself?--David Yamakuchi 15:42, 8 April 2008 (CDT)
- I didn't see much change (see table below). By the way these values are more accurate than ones I quoted above since in that example the template was called on twice. The numbers in the diff col. below relate to the template values alone without the subpages template included. In summary the mediawiki version is 42 times larger for pre-expand and 32 times larger for post expand size. Where is all that extra stuff coming from?
- How's the size now...BTW, how do I find out that number for myself?--David Yamakuchi 15:42, 8 April 2008 (CDT)
Different sizes of Scandium (units are kilobytes) | ||||||
no template | mediawiki version | jpg version | latest mediawiki version | |||
diff | diff | |||||
Pre-expand include size: | 381 | 1058 | 677 | 397 | 16 | 1058 |
Post-expand include size: | 54 | 382 | 328 | 64 | 10 | 382 |
Template argument size: | 10 | 44 | 34 | 15 | 5 | 43 |
- You can see the numbers yourself by going to any page and using the view source option in the view menu (on safari). in the html code you will find the values, just search for "expand". Chris Day 15:54, 8 April 2008 (CDT)
OK, we're down under 800k now, simply by removing all the "example code" and fluffy bits to the talk page. How 'bout that. And we even kept in the resizability!.--David Yamakuchi 17:33, 8 April 2008 (CDT)
- Now that the periodic template has been cleaned up and the calls on the ele template (or equivalent) have been reduced these are the new figures for the Scandium page. That looks much better, although still larger than the jpg equivalent. Chris Day 10:10, 9 April 2008 (CDT)
Different sizes of Scandium (units are kilobytes) | |||||||
no template | old mediawiki version | latest mediawiki version | transition metal version | ||||
diff | diff | diff | |||||
Pre-expand include size: | 381 | 1058 | 677 | 555 | 174 | 441 | 60 |
Post-expand include size: | 54 | 382 | 328 | 208 | 154 | 183 | 129 |
Template argument size: | 10 | 44 | 34 | 17 | 7 | 16 | 6 |
I just finished cleaning up. Colors for each element can be defined at {{Elem_Infobox}}. The cell styles, including cell size, line thickness and color, as well as the opacity values, can be defined at {{Ele it}} for the black cell that marks the specific element, at {{Ele off}} for those cells in the background of unrelated elements to the black one and at {{Ele on}} for cells that have related elements. Chris Day 11:29, 9 April 2008 (CDT)
Colors
Here is an image comparing the progress to date. The middle was is still vastly smaller on a given page but the size of the current mediawiki is now reasonable (~150 kbytes), almost ten times smaller than before. Chris Day 11:53, 9 April 2008 (CDT)
- The table colors need changing, badly. --Robert W King 11:55, 9 April 2008 (CDT)
- David's been working with the sets or classes of elements, its still not clear how they should be grouped, I don't think colours have even been discussed much. What colours here do you have a problem with? Chris Day 11:59, 9 April 2008 (CDT)
- All of them. They're still on the original "test" colors I picked which were never meant to be live! They're neons, and they need to be more like shades. --Robert W King 12:02, 9 April 2008 (CDT)
- Go ahead and play with them, I never bothered since there was so much up in the air, still is. But if you can find a compatible set of
eightten, that will be useful. Remember there is an opacity factor that defines "on" and "off". Chris Day 12:05, 9 April 2008 (CDT)
- Go ahead and play with them, I never bothered since there was so much up in the air, still is. But if you can find a compatible set of
- All of them. They're still on the original "test" colors I picked which were never meant to be live! They're neons, and they need to be more like shades. --Robert W King 12:02, 9 April 2008 (CDT)
- David's been working with the sets or classes of elements, its still not clear how they should be grouped, I don't think colours have even been discussed much. What colours here do you have a problem with? Chris Day 11:59, 9 April 2008 (CDT)
Periodic Table Link
The link to the periodic table works fine from Mozilla, but not from IE. What gives? the syntax looks ok to me, but I'm certainly no expert...
{{!}}style="border-top:2px solid #bbb" width="100%" align="left" valign="top" cellpadding="3" cellspacing="0" height="118" colspan="4" bgcolor=#f2f2f2 {{!}}[[Periodic table of elements{{!}}{{Periodic|elSym={{{elSym}}}|elClass={{{elClass}}} |ele color=333 |nonmetal color=00ae00 |noble color=ff3a93 |alkali metal color=e2e200 |aem color=ff5500 |metalloid color=858585 |halogen color=ffae00 |ptm color=0000FF |transition color=ff00ff |lanthanide color=00ae00 |actinide color=0000ff}}]]
Ideas anyone?--David Yamakuchi 01:41, 10 April 2008 (CDT)
- I think it's because the IE interpretation of the mediawiki code doesn't process the wikilink properly with all the pipes. It probably thinks they're variables. --Robert W King 10:09, 10 April 2008 (CDT)
- Nope, that version is not clickable. --Robert W King 11:26, 10 April 2008 (CDT)
- Is it maybe just a question of letting the browser developers catch up with the wiki folks? It seems like every day there is some kind of update "available" for my OS. I've found MS usually does have a pretty good feature set, I'm just sceptical of their implementation in terms of compliance with other people's standards. The browsers all seem to know it's a link, and it does something when it's clicked, it's just not what we want yet. I'll have a chance to look at it some more this weekend. In the meantime, if anyone has any ideas of things to try...I'm all ears.--David Yamakuchi 11:41, 10 April 2008 (CDT)
- I think something has definately overflowed. What happens is that when you mouse over it, the status bar at the bottom of IE registers it as a link; when you *click* on it, however, the cursor point turns into the clickable "finger" but does not yield a navigational result. It could be several things; maybe it's self-linking? maybe it's an invalid url? maybe it's a malformed click? Is it a problem within mediawiki? Is it an IE problem? We need to think of ways of diagnosing it, and has this been discovered before? Maybe we're onto some obscure bug that hasn't been found. --Robert W King 11:46, 10 April 2008 (CDT)
- Is it maybe just a question of letting the browser developers catch up with the wiki folks? It seems like every day there is some kind of update "available" for my OS. I've found MS usually does have a pretty good feature set, I'm just sceptical of their implementation in terms of compliance with other people's standards. The browsers all seem to know it's a link, and it does something when it's clicked, it's just not what we want yet. I'll have a chance to look at it some more this weekend. In the meantime, if anyone has any ideas of things to try...I'm all ears.--David Yamakuchi 11:41, 10 April 2008 (CDT)
Why not have a link to each element? See what I just did for hydrogen. Then it would be easy to navigate all the elements since this collection of links would be at top right for every article. Chris Day 12:10, 10 April 2008 (CDT)
- Doesn't work. Now there's a big
[[hydrogen]]
in the middle of the table. --Robert W King 12:14, 10 April 2008 (CDT)- Is there still the
[[hydrogen]]
text in the table? It looks no different on my screen, except now there is a link and I can mouse over to see hydrogen pop up. Chris Day 12:48, 10 April 2008 (CDT)- Yeah it's still there, disrupting the table. --Robert W King 13:07, 10 April 2008 (CDT)
- Still there. I'd just get rid of it; it self links to the page that it's on, which makes no sense anyway. --Robert W King 13:19, 10 April 2008 (CDT)
- Three questions:
- Where exactly are you seeing the
[[hydrogen]]
text, only on the hydrogen page or on the other elements too? - Why is it a problem that it self links, it just won't work in that case?
- How can a cell be coded to link in a way that it works in IE? Chris Day 13:51, 10 April 2008 (CDT)
- I'm not seeing it now, but it's also still not linking.
- It's not a problem, but it just seems pointless.
- You can't use any text because the font size has to be zero in order for the table to be as small as it is in IE. You *could* create a transparent gif/jpeg and use imagemap in each little cell, but that would probably up the size of the template a lot. --Robert W King 14:01, 10 April 2008 (CDT)
- I fixed it.
- Only 1% of the time will it be pointless, its not worth coding to avoid it as it's harmless, I think?
- So the problem is IE only works with content? See that sandbox i was working with and see if a colored cell is clickable. Thanks. Chris Day 14:34, 10 April 2008 (CDT)
- Where exactly are you seeing the
- Three questions:
- Still there. I'd just get rid of it; it self links to the page that it's on, which makes no sense anyway. --Robert W King 13:19, 10 April 2008 (CDT)
- Yeah it's still there, disrupting the table. --Robert W King 13:07, 10 April 2008 (CDT)
- Is there still the
Article Text Clearance
Hey what gives? The article text is all shoved up against the infobox again. #$#%^
All: The width=164 outside box was supposed to be a keepout for article text. The article text in the current version now has a zero clearance around the infobox and it looks particularly bad on browsers that do full justification of the page text (like IE for instance). If we're just going to throw out the keepout functionality, we might as well remove the extra table too, it's useless otherwise...I just think it's a mistake. Is there no margin settings built into the wiki tables that we can use here?--David Yamakuchi 02:58, 11 April 2008 (CDT)
- It was not done intentionally. I have no idea which edit caused the problem. Possibly an increase in the cell width in the periodic table forcing it beyond the set width and into the keepout. Try increasing the width of the outer table a bit more? Or is that a problem since the info box will be too big? Chris Day 03:05, 11 April 2008 (CDT)
- I suspect if the box get too big, we'll hear about it :-)--David Yamakuchi 03:17, 11 April 2008 (CDT)
- I think the cell size increase in the periodic table caused it to force itself into the keep out space to the tune of about 18px, so I increased the outer table to 180. Is that enough keepout, as well as is it a small enough infobox. Now that each cell on the periodic table is mousable we don't want them to be miniscule. Chris Day 03:20, 11 April 2008 (CDT)
- Agreed...looks good. Good work BTW. You really made some huge improvements. I think folks will really find this thing handy...--David Yamakuchi 03:27, 11 April 2008 (CDT)
- Thanks but I just made minor changes to what Robert and yourself had already built. Chris Day 03:40, 11 April 2008 (CDT)
- Agreed...looks good. Good work BTW. You really made some huge improvements. I think folks will really find this thing handy...--David Yamakuchi 03:27, 11 April 2008 (CDT)
Hazard Box
Something seems wrong with the Hazard section...see Lead...--David Yamakuchi 03:21, 11 April 2008 (CDT)
- Looks fine on my browser. What do you see? Chris Day 03:23, 11 April 2008 (CDT)
Looks like a black box for any element that has a Hazard section.--David Yamakuchi 03:33, 11 April 2008 (CDT)
- I think that got it--David Yamakuchi 03:37, 11 April 2008 (CDT)
- It looks like the "bgcolor=" (holdover from html?) cannot use "fff" but needs "ffffff". Mind you, it looked OK on my browser. Thanks for pointing it out. Chris Day 03:40, 11 April 2008 (CDT)
- I think you can only use #XXX in style sheet notation; otherwise you have to use "plain-english" values or #XXXXXX hex format. --Robert W King 08:31, 11 April 2008 (CDT)
- It looks like the "bgcolor=" (holdover from html?) cannot use "fff" but needs "ffffff". Mind you, it looked OK on my browser. Thanks for pointing it out. Chris Day 03:40, 11 April 2008 (CDT)
Group,Period,Block
I blatantly ripped WP's hover-over template and commandeered it for our use. I added it to the group, period, and block variables so now if you hover them it'll just say what it's for. --Robert W King 14:38, 12 April 2008 (CDT)
3/1 vs 2/2
Chris, I don't want to jack up the electron configuration, and the text for the periodness is only 1 cell wide anyway. --Robert W King 15:53, 12 April 2008 (CDT)
- Electron configuration does not get changed, it can push up to the other text (period value) in 2:2 or 3:1 configuration. The element symbol, however, is pushed left due to the extra white space that is forced in place due to the lower right box always being wider than the oxidation value box. I acknowledge that both are only one cell wide but the oxidation values are also only one number wide. In a 3:1 configuration the Period, block etc. numbers can push under the symbol box without compromising the electron config. Chris Day 19:26, 12 April 2008 (CDT)
- I know what you're thinking, but I haven't seen it happen in any of the articles that use the infobox yet. --Robert W King 19:34, 12 April 2008 (CDT)
- So move the electron configuration to the subpage. It's really not as important as the other info in the box, is it? Chemists use the oxidation states (aka valence) anyway, right? Who uses electron configurations, and for what? J. Noel Chiappa 00:04, 13 April 2008 (CDT)
- You'll have to ask who ever added it to the box. It has always been there since I have seen it. Since I am not a chemist I have never really questioned the content. Certainly I would not use it. Electronegativity might be a more useful one to have there. Chris Day 00:09, 13 April 2008 (CDT)
- I added it originally to the box because it was something that I found on most versions of the periodic table. --Robert W King 06:35, 13 April 2008 (CDT)
- You'll have to ask who ever added it to the box. It has always been there since I have seen it. Since I am not a chemist I have never really questioned the content. Certainly I would not use it. Electronegativity might be a more useful one to have there. Chris Day 00:09, 13 April 2008 (CDT)
Longest width
Look in a chemistry book ;). I don't know. --Robert W King 22:57, 12 April 2008 (CDT)
- I think polonium might be close to the longest and it seems fine. However the electronic configuration is squashed and I assume it will get worse as the atomic number increases. So I have tried to maximise the space available for that instead. If the largest electronic configuration cannot fit in we can always increase the width of the whole infobox a bit more. Chris Day 23:36, 12 April 2008 (CDT)
- I wouldn't want to do that; it woull cramp the text to the left too much on smaller screens/windows. J. Noel Chiappa 10:25, 13 April 2008 (CDT)
- What would you regard as optimal width? It's at 180 pixels right now (including margin buffer for the text outside). Chris Day 12:43, 13 April 2008 (CDT)
Physical Properties Templates
I pointed the mass, atomic number, and element symbol to the Physical Properties template for each element "#if:" it exists or "else" just use the data passed in by the author. That way when these data are populated in their respective PP templates, we can use them elsewhere as well! I think that eventually, perhaps when all of the PP templates for the elements exist, we may want to switch this clause around and say if the author has specified a value then use it instead. --David Yamakuchi 14:35, 27 April 2008 (CDT)
Copied from Template talk:Elem Infobox test1
Complexity
Part of the reason why I created the original infobox was that wikipedia infoboxes are too damn complicated, and I feel this one is too. The goal should be to create narrative functional articles without simply disgarding much of the information to meaningless numbers in a chart. I don't feel that there should be this much information. See the chemical infobox I made for David Volk; there is only the bare minimum amount of information in it and chances are it won't go beyond it's existing scope.
There are major disagreements over whether or not we should be even using infoboxes on this wiki, but I contend that if we do, they should be as simple as possible, yet have just the right amount of information to make it meaningful. --Robert W King 09:04, 31 March 2008 (CDT)
- Well, I will have to say I agree that the passing of HTML tables to get the thing to look right is _way_ too cumbersome. Those need to be inside the template, and we might have something usable. I was going for a more conditional type of inclusion of information. The rationale is that there will likely be different parameters that will be important depending on the element.
- That said, my questions to you then become: Where in an article on an element shall I expect to look for information such as melting point, Electronegativity, ionization energies, etc? Do we need to discuss each pertinent characteristic individually and send the reader through paragraphs of information to find a number for an STP characteristic?
- Now, I do agree that the infobox needs to be as simple as possible to use for the author, and should not rely on passing in tags for the cosmetic niceties, but I do contend that for some particular elements (Iron comes to mind as a for instance) we might want to include an awful lot of this type of information to be considered an authoritative source. If not in an info box then where?--David Yamakuchi 11:01, 31 March 2008 (CDT)
- I think you both have good points. Maybe we could keep the detailed, extensive physical/etc constants (which I agree we ought to have) on a subpage, and on the main page have a small infobox with just the most important ones (e.g. atomic number), and a link to the subpage (labelled e.g. "more constants here"). J. Noel Chiappa 12:14, 31 March 2008 (CDT)
- Maybe the page could be a "Full Elemental Breakdown" page or something. I don't know what it should be called (Addendum?) We should get David involved and get the chemistry workgroup to weigh in. ...said Robert W King (talk) 12:28, 31 March 2008
Copied from Talk:Lead
Some of us discussed the elem & chem infobox earlier, and seemed to agree, that the last thing we ever wanted was a really long elem infobox or chem infobox. In other words, only the key things should be in, with the idea that other physical attributes could be put in the article or under a separate subpage. A really long infobox leads to a bad layout for articles. Note all of the white space in this article at the top. I think you will find fair resistance to changing the chem and elem infobox to be this inclusive. An alternative might be to have a physical properties infobox later in the article in a physical properties section where things like boiling pts and crystal structure forms, UV-vis, NMR, refraction, etc could be placed David E. Volk 16:32, 31 March 2008 (CDT)
As noted above, many feel we shouldn't use chem infoboxes at all, only narrative. However, some things, like hazards, uses and molecular weight, are something people can use often. I think a Physical Constants subpage is the place for most of the other information. Such a page could be all tables, for things like IR bands, NMR shifts and J-coupling, heat capacities, excited electronic state configuration and many other things. For the main article, I prefer to know:
- Will it explode?
- Is is radioactive?
- Is is toxic
- What is it mostly used for?
- What does it treat( for drugs)?
The other items are of no relevance to the typical reader, but 1 in 1000 may want to know the melting point, to make slugs of quarters perhaps (do kids still try that I wonder?), or the IR or NMR spectrum. Once we have more chemists involved in the discussion, we can add this topic to the Chemistry style guide for implementation David E. Volk 16:32, 31 March 2008 (CDT)
- I think small infoboxes are perfectly fine (and desirable); it's the huge ones that are intrusive and screw up the layout. I like Physical Constants as the name for the subpage (we all seem to agree a subpage is, structurally, the right thing, yes?), but... with the limited real-estate in the subpages tab, it's a bit long (character-count-wise). Maybe just Constants? (Some are chemical, no, such as valence?) On the other hand, we're unlikely to have many other subpages for a page on an element, so maybe it's OK. J. Noel Chiappa 20:29, 31 March 2008 (CDT)
- If pressed for space, we could call the subpage Data, although it is less desirable. David E. Volk 09:09, 1 April 2008 (CDT)
"Key" Information and Simplicity
OK, first I wanted to thank everyone who has chimed in on the "new" infobox. The feedback is really welcome (even the stuff I don't necessarily agree with :-) and your efforts are appreciated. Now, wrt the info that the boxes contain, if we could, let's please take a closer look at the "only the key things should be in" idea presented above, with which we all _do_ seem to basically agree. That said, I also contend we might find that what the "key" things are depends not only on who we are talking to, but what element we are discussing. Here are a couple of examples:
- Consider the melting point as a for instance. I originally included it in the infobox for lead because I tend to solder quite a bit. It is an important data point for me. Hydrogen's melting point...dont care. Iron's MP might be important to someone who does welding, or works in a foundry, Flourine's MP...academic only. Tungsten's MP might be of interest because it's highest, etc.
I do understand that from a medical perspective, which seems to be a reasonably popular perspective here at CZ, Lead's toxic properties will be of great interest as well. But there are entire industries built around manufacturing with solder (although they have pretty much moved to China now), so I think it's possible lead's MP might also be important to others besides myself. Also, keeping the elements (at least somewhat) consistent and readable seems like one of the main goals of our discussions here. Our current list of "key" data for an element includes: Number, Mass, Symbol, Ionization states, Properties, Compounds, Uses, and Hazards. It seems like maybe the only unquestioned inclusions are Number, Mass, and Symbol. Any of the others might require such in-depth explanation that a subpage or even a completely different article might be more appropriate.
- Let's briefly consider the entries for Carbon. "organic compounds", although technically accurate, seems like a rather weak entry in the infobox, and not very informative. Perhaps it could be as simple as using a link like Compounds as the only infobox "compounds" item. As I've said, I believe we need a format that will let us include the "key" items only, and not waste space with empty place holders for say, Carbon's Hazards or Properties (both of which are currently not specified but still appear in the article's infobox).
I also suppose the "Physical Properties" subpage (or should this really be more of a "catalog"?) might be a great idea for a place to dump the phone book full of physical data that will inevitably be included for many elements (or compounds for that matter). It would also give a better format to specify conditions under which things were determined (also a reason I would tend to try and stay away from calling things "constants" as, for example, Boiling Point might not be the same at different pressures, btw) and which would be difficult to make clear in an infobox. --David Yamakuchi 13:06, 1 April 2008 (CDT) P.S.Sorry about the long-winded post just my 2 cents :-)
- David, this whole subject is still up for discussion, so say as much as you like, anytime. I too have soldered many a time, but I never needed the MP do to so. The very fact that the is variable with respect to pressure in an argument not to include it in the box, unless we put another disclaimer at the bottom stating all values are at STP unless otherwise stated. I would like to see an actual paragraph for each element decribing its chemical/physical properties, and this is especially true for elements that have allotropes, which will melt at differing temperatures even at STP. David E. Volk 13:53, 1 April 2008 (CDT)
- I've used many soldering irons that most certainly _do_ have a temperature adjustment marked in degrees farenheit (and celcius too...sometimes see [1] for details). Some guys solder more than others I guess. I mean, ok, it's tin/lead anyway but maybe we're getting to the root of things here, because you just echoed one of my concerns. What I'm saying is that I want not only the "physical constant" number at least accessible from near the top of the article (subpage works great for this btw), but I want that MP (or whatever) number (wherever it is) to then link to a whole article on what is meant by a MP number and goes into transition between different crystalline structures, Curie Temp, etc, and basically tells you way more than you never wanted to know about the exact details and the method of arriving at (and nuances of) the number you see.
- Of course, in the case of allotropes, there are naturally more than one "melting point" number we might want to spec, there is always room for that. But what we don't want is some student at the University of Denver to decide to bet his experiment on some Boiling Point number based on data from the University of Miami say, without pointing out some important dependencies that might exist...eh?--David Yamakuchi 16:01, 1 April 2008 (CDT)
Empty fields
The empty fields are bothersome, so perhaps these need to be a ifExist variable type in the future, as is done with the taxobox currently. David E. Volk 13:53, 1 April 2008 (CDT)
- I do like the conditional approach to including the info...as you can see :-) Problem is in passing in pipes. It seems it can confuse the #if statements :-( --David Yamakuchi 16:01, 1 April 2008 (CDT)
- We have a certain amount of expertise in templatology on hand. If you can formulate a question about how to achieve some particular goal, Chris Day or I can probably answer it (as in 'yes you can/no you can/you can't do that, but this works', etc). J. Noel Chiappa 16:11, 1 April 2008 (CDT)
- The taxonomy box template is full of those types of variables. You might use that as an example. See West Nile virus for the exact name of the taxonomy template. As for complicated stuff you are talking about, transitions and so forth, that is a future endeavor perhaps. At this point, the number of reasonably good articles need to be a priority, more so than exhaustively complete articles. David E. Volk 16:18, 1 April 2008 (CDT)
- Thanks for the pointer. It seems like I was trying to reinvent the wheel to some extent. Sorry if I went in kinda deep there for an infobox discussion, I realized afterword that we don't even _have_ an article on melting point yet...Maybe I should start there...:-) ...said David Yamakuchi (talk) 17:41, 1 April 2008 (Please sign your talk page posts by simply adding four tildes, ~~~~.)