Category talk:Nuclide templates

Latest comment: 13 years ago by SkyLined in topic Copying

Atomic number to element or symbol

edit

Why not templates in this direction? --JWB (talk) 00:31, 17 March 2008 (UTC)Reply

Why would you need that? It's easiest to remember and recognise an element by it's name than by it's number of protons. But should you want to create such a template, it would not be very hard to do. SkyLined (talk) 21:26, 17 March 2008 (UTC)Reply
We build the table of nuclides with templates. See Category:Isotope tables templates. --JWB (talk) 22:35, 17 March 2008 (UTC)Reply
How about this: Template:ElementForProtons and Template:SymbolForProtons ? SkyLined (talk) 23:26, 17 March 2008 (UTC)Reply
Thanks, here's an example of a nuclide table constructed using that template, take a look at the code. --JWB (talk) 09:01, 1 April 2008 (UTC)Reply
Nice!
-- SkyLined (talk) 10:41, 6 April 2008 (UTC)Reply

Naming overhaul

edit

I'd like to adjust the naming scheme to make it more compliant with other wiki pages and naming schemes. Here's what I'd like to suggest:

Current name New name suggestion
Category:Nuclide templates Template:Nuclide/doc (partial move)
User:SkyLined/List of nuclei Template:Nuclide/list
Template:Element Template:Nuclide/element
Template:SimpleNuclide Template:Nuclide/simple
Template:Nuclide Template:Nuclide
Template:ComplexNuclide Template:Nuclide/complex
Template:SymbolForElement Template:Nuclide/EtoS
Template:ProtonsForElement Template:Nuclide/EtoP
Template:NeutronsForElement Template:Nuclide/EToN
Template:LinkForElement Template:Nuclide/EtoL
Template:SymbolForProtons Template:Nuclide/PtoS
Template:ElementForProtons Template:Nuclide/PtoE


-- SkyLined (talk) 09:19, 9 April 2008 (UTC)Reply

Smaller font size for sub- and superscripts

edit

Sometimes I find it awkward to read particles when sub- and superscripts are the same size as the symbol, especially in running text or if several particles are mentioned closely together.

It should look like this: 99mTcO4
It should look like this: [99mTcO4]

Can we reduce the font size of sub- and superscripts in {{SimpleNuclide}}, {{Nuclide}}, {{ComplexNuclide}}, and {{PhysicsParticle}}, or have an option for smaller font size? --Eddi (Talk) 01:26, 1 July 2008 (UTC)Reply

Hi Eddi,
It is wikipedia policy to have a unified style across pages. This template tries to follow that styleguide with regard to size of super/sub script. If you want have the size changed, you'll need to try to get the styleguide changed first.
Also, what I see is {{PhysicsParticle}} using the correct sizes: the super script "99m" and sub script "4" are slightly smaller than the symbol. The example of what you're suggesting looks too small to me and is hard to read. Could you upload a screengrab somewhere, so we can all see exactly what you're seeing? Also, if you could let us know what version of which browser you're using and what you have your font size set to in that browser (small, medium, large, etc...) that would be helpful in reproducing any issues.
    — SkyLined {talkcontribs 22:35, 7 July 2008 (UTC)Reply
File:Supersubscript fontsize 1.png

See attached screenshot. I added some plain text for reference and I see that there's a difference, although very slight. The <sup> and <sub> tags reduce the font size a bit, and {{PhysicsParticle}} reduces it a bit more. I use Firefox 3.0 on Linux kernel 2.6.24.17. You may be right that my settings disturb things, because my screen has rather small pixels and I have set the browser's default font size to 20. But it's no big deal, I can read the particles all right. --Eddi (Talk) 13:07, 28 August 2008 (UTC)Reply

 
SkyLined's view of the font
I assume this means you're withdrawing your request? I can see how having the 'sub/sup' parts slightly smaller would make it easier to distinguish them from the 'normal' parts, but it would also make them harder to read.     — SkyLined {talkcontribs 15:20, 28 August 2008 (UTC)Reply
I've added what I see in IE7 on Windows with the default font size - which is what most people will see.     — SkyLined {talkcontribs 15:28, 28 August 2008 (UTC)Reply

I'm sorry for replying late, but I guess the world stands...

I didn't withdraw my request, if that would be an obstacle to improving things. I just meant I was able to read things, with some difficulty. In principle your screenshot is the same as mine. And the two of us using different browsers shouldn't be a factor. The problem isn't the size of pixels but the difference in size between normal text and special text. If the template doesn't distinguish more between normal text and special text, I think it should be changed. Eddi (Talk) 02:05, 3 April 2010 (UTC)Reply

Hydrogen 1

edit

I'm following (or at least I think I am) what's being done in the examples and I can't seem to get it right.

I want 1H, so I'm writing {{Nuclide|hydrogen|1}}, however that yieds 1
1
H
(1H). What am I doing wrong here?Headbomb {ταλκκοντριβς – WP Physics} 04:55, 23 February 2009 (UTC)Reply

You'll want to use {{SimpleNuclide|hydrogen}}: 1
H
. There are different templates for different layouts, but you use different arguments for different isotopes. If you want to improve the documentation to make this clear to others, please do.
    — SkyLined {talkcontribs 15:17, 25 February 2009 (UTC)Reply

Ambiguous nuclides

edit

I would like to write a nuclear equation with an ambiguous nuclide X. Does anyone know how this can be done? It doesn't look like it's one of the nuclides available. ScienceApologist (talk) 15:25, 23 June 2009 (UTC)Reply

  Done. I added the element "Element" with an associated symbol "X" to Template:SymbolForElement. ScienceApologist (talk) 15:31, 23 June 2009 (UTC)Reply

TODO

edit

I removed {{Template category |description=Templates for displaying nuclide and element symbols }} from the page because it gets included verbatim into the templates in this category and templates should not get added to the "

Wikipedia template categories" category. I more permanent solution is to create a "/doc" sub page with the documentation, put the "template category" stuff back in the category, and include the "/doc" page in the templates, rather than the cateogry page itself.     — SkyLined (talk) 10:41, 10 December 2009 (UTC)Reply

Copying

edit

I have been asked how to copy these templates to other language versions of Wikipedia. I'm not entirely sure, as I've never done this myself, but I can make a guess, which I'll write down below. Please reply if you have anything to add or comment.

  1. You'll need to learn the basics of coding templates if you have not already. Then you go to the template you want to copy and edit it. You will also see a list of "transcluded templates", which are templates used by that template. You will need to create a copy of those transcluded templates on your site too. Each transcluded template may itself have transcluded templates, etc... you will have to make a list of all of them and copy each one to the Danish Wikipedia for the templates to work. Some may already have been copied, in which case there should be a reference in the template to the other language version.
  2. Once you have a list of all the templates involved, you can copy each template by creating a new template in the other Wikipedia and copy+paste the contents from the English template. I'm assuming you'll want to change the names of the templates to Danish, so you'll need to edit the template code to change the names of transcluded templates in the Danish version.
  3. Additionally, there are a few test pages that you may want to copy, such as User:SkyLined/List_of_nuclei. These should all be referenced in the templates, so you will notice them while you're copying the code or checking the results. You'll probably want to copy these as well.
  4. Finally, you'll want to create cross-references between the other language and English versions and monitor the English version for changes and fixes that you may want to port. Also, if you see somebody improving the other language version of the template, please consider copying the improvement to the English version as well.
    SkyLined (talk) 21:19, 27 March 2011 (UTC)Reply