Template talk:Elementbox header

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Chemistry (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Chemistry, a collaborative effort to improve the coverage of chemistry on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.

font sizes[edit]

20 potassiumcalciumscandium


Name, Symbol, Number calcium, Ca, 20

Re: x-small is too small — size:medium appears exactly as big as size:large on my machine, is this the desired result? I guess I'm not the first one who found it confusing before that the navigational links had been given the same size as the element's name. So I think the navlinks can't be too small and the element's name can't be too big—within the range of legibility of course, but no idea how to achieve that. What is the preferred way of font size setting? The results from <font size=-1>, <font size=small>, or style="font-size:small" etc. are quite browser-dependent, I believe. Would a percentage-based solution like this work/look better for all people? Femto 30 June 2005 14:52 (UTC)

I don't know if percentages work for font sizes. I prefer the small sized links, ie the way it was before Darrien changed it.--metta, The Sunborn 30 June 2005 16:58 (UTC)
The example to the right uses percent font sizes, a full part of the specification according to [1]. (I see the Wikipedia:Manual of Style also suggests that "If you absolutely must specify a font size, use a relative size i.e. font-size: 80%", so if we go back to small links again the coding might be changed.) Giving those links a substantial size difference much improves comprehensibility in my opinion. Darrien, was your edit a matter of aesthetics, or of true illegibility, and how does the percentage example look? Femto 30 June 2005 19:46 (UTC)

Since this was a significant change to the appearance of the template (at least on some setups), I reverted for now, but changed to use font-size: properties throughout, with a rather conservative 95% and 120% size pair. Femto 1 July 2005 11:33 (UTC)

Bug report[edit]

How can we make sure that problems such as [2] do not force the table to expand to 100% width? There are infobox templates out there that wrap lines quite happily, such as {{Infobox OS}}. Can we replicate the same idea here? - Samsara (talk ·  contribs) 18:58, 29 October 2006 (UTC)

Haven't actually witnessed the rendering bug in action; I think the effect of the unclosed noinclude would be as if the isotope subtable was never opened, leaving the rest dangling. Not sure something like this can be avoided within the scope of the Elementbox, which is made of a varying number of different entry row templates. Also, IF there is a problem with the code, I'd prefer it to be glaringly obvious anyway. :)
By the way, this infobox is older than the parser functions, maybe it's finally time for a rewrite and a merge into a single box with parameters. Given that I only today coded my first parser function on this Wiki, more experienced volunteers welcome at Wikipedia:WikiProject Elements. Femto 19:29, 29 October 2006 (UTC)

Testing clickable elements[edit]

118 ununseptiumununoctiumununennium


Awaiting {{{1}}} imagemap fix, see discussion

Error: Must specify an image in the first line.

If a second image appears above this line we're in business.

Below using a static element symbol Uuo to demo.
Uuo-TableImage.png 1  H Hydrogen 2  He Helium 3  Li Lithium 4  Be Beryllium 5  B Boron 6  C Carbon 7  N Nitrogen 8  O Oxygen 9  F Fluorine 10 N Neon 11 Na Sodium 12 Mg Magnesium 13 Al Aluminium 14 Si Silicon 15 P Phosphorus 16 S Sulfur 17 Cl Chlorine 18 Ar Argon 19 K Potassium 20 Ca Calcium 21 Sc Scandium 22 Ti Titanium 23 V Vanadium 24 Cr Chromium 25 Mn Manganese 26 Fe Iron 27 Co Cobalt 28 Ni Nickel 29 Cu Copper 30 Zn Zinc 31 Ga Gallium 32 Ge Germanium 33 As Arsenic 34 Se Selenium 35 Br Bromine 36 Kr Krypton 37 Rb Rubidium 38 Sr Strontium 39 Y Yttrium 40 Zr Zirconium 41 Nb Niobium 42 Mo Molybdenum 43 Tc Technetium 44 Ru Ruthenium 45 Rh Rhodium 46 Pd Palladium 47 Ag Silver 48 Cd Cadmium 49 In Indium 50 Sn Tin 51 Sb Antimony 52 Te Tellurium 53 I Iodine 54 Xe Xenon 55 Cs Caesium 56 Ba Barium 57 La Lanthanum 58 Ce Cerium 59 Pr Praseodymium 60 Nd Neodymium 61 Pm Promethium 62 Sm Samarium 63 Eu Europium 64 Gd Gadolinium 65 Tb Terbium 66 Dy Dysprosium 67 Ho Holmium 68 Er Erbium 69 Tm Thulium 70 Yb Ytterbium 71 Lu Lutetium 72 Hf Hafnium 73 Ta Tantalum 74 W Tungsten 75 Re Rhenium 76 Os Osmium 77 Ir Iridium 78 Pt Platinum 79 Au Gold 80 Hg Mercury 81 Tl Thallium 82 Pb Lead 83 Bi Bismuth 84 Po Polonium 85 At Astatine 86 Rn Radon 87  Fr Francium 88  Ra Radium 89  Ac Actinium 90  Th Thorium 91  Pa Protactinium 92  U Uranium 93  Np Neptunium 94  Pu Plutonium 95  Am Americium 96  Cm Curium 97  Bk Berkelium 98  Cf Californium 99  Es Einsteinium 100 Fm Fermium 101 Md Mendelevium 102 No Nobelium 103 Lr Lawrencium 104 Rf Rutherfordium 105 Db Dubnium 106 Sg Seaborgium 107 Bh Bohrium 108 Hs Hassium 109 Mt Meitnerium 110 Ds Darmstadtium 111 Rg Roentgenium 112 Cn Copernicium 113 Uut Ununtrium 114 Fl Flerovium 115 Uup Ununpentium 116 Lv Livermorium 117 Uus Ununseptium 118 Uuo Ununoctium
Name, Symbol, Number ununoctium, Uuo, 118
Element category noble gases
Group, Period, Block 18, 7, p
Appearance unknown, probably colorless
Standard atomic weight predicted, (314)  g·mol−1
Electron configuration perhaps [Rn] 5f14 6d10 7s2 7p6
(guess based on radon)
Electrons per shell 2, 8, 18, 32, 32, 18, 8
Phase presumably a gas
CAS registry number 54144-19-3

I'm working on using the new imagemap template to make all the elements in each elements elementbox clickable. Using ununoctium as an example here on the discussion page. The change will eventually need to be made to this template if it turns out to work. I've created a temporary Template:Elementbox header-imagemap with which to test the changes. --D0li0 04:03, 23 January 2007 (UTC)

The {{{symbol}}} variable doesn't seem to be passed into the <imagemap> function. This bug seems to have already been reported here at mediawiki.org, will continue with a single static element name, on to the next task...

I also need to re-scale-up my list of element coordanents from 250px to 890px, need to scale by 3.56 and then round to whole numbers. Done. --D0li0 04:58, 23 January 2007 (UTC)

Styling tweaks[edit]

I've started a section on proposed changes to the elementbox styling here. If those changes go ahead, I'll be making them here as well. Chris Cunningham (not at work) - talk 10:24, 1 June 2009 (UTC)


Since the latest change in the template's layout, the top line with its three elements no longer fits into one line for meitnerium and above. This should be taken care of.

Also, I liked the old layout better. Why not leave it at the 25 January 2009 version? --Roentgenium111 (talk) 18:50, 10 June 2009 (UTC)

The whole of meitnerium's title fits on one line here. The width and font sizing was changed because the old version is abusively huge and almost unmanageable on lower resolution displays; furthermore, it didn't use the infobox CSS classes, which allow for programmatic hiding or changing of the display. Chris Cunningham (not at work) - talk 09:34, 11 June 2009 (UTC)
No, in my browser (Firefox) it doesn't fit in one line, though I have quite a large display. And I don't think a maybe 4-inch-wide infobox (the old infobox version had about this size for me) is "abusively huge", not even for notebook displays. --Roentgenium111 (talk) 16:54, 11 June 2009 (UTC)
Have you increased your default font size in your browser? I can't reproduce this at any resolution or zoom level. The old version takes up 50% of the content area in 1024x768. Chris Cunningham (not at work) - talk 09:53, 12 June 2009 (UTC)
"Have you increased your default font size in your browser?" Not that I am aware of. When zooming in or out of meitnerium, it switches back and forth between one-line and two-line. --Roentgenium111 (talk) 14:51, 3 July 2009 (UTC)
How does {{elementbox}} work for you? That's got an improved version of the codebase which I'm planning on migrating over here. Chris Cunningham (not at work) - talk 19:25, 3 July 2009 (UTC)
There all three elements fit in one line, but there is some misplaced code text in front of the periodic table image. --Roentgenium111 (talk) 21:41, 4 July 2009 (UTC)
That is to be expected; the text expects images to be passed to it; the file links are not added in the template page, but in transcluding pages. CB...(ö) 20:23, 28 August 2009 (UTC)