Template talk:Physics particle
Appearance
Forced bold?
I applaud the idea of having standardized templates for all subatomic particles, but it looks like the current version of {{PhysicsParticle}} always displays the particle's symbol in a bold font, which is distracting in most contexts. In particular, since this template is used in {{SubatomicParticle}}, we get particle names like e−
(electron) or γ (photon), which is rather uncommon in my experience. Perhaps the default should be non-bold, but with an optional parameter for requesting bold/italic symbols? Hqb (talk) 13:29, 20 March 2008 (UTC)
- Done. I originally made them bold because the page I based the first version off was using bold. These templates are there to facilitate making all physics pages have the same look and feel and the Category:Nuclide templates aren't bold either, so neither should this one.
- There should be no need for make it available as an argument, as it is simpler to use single quotes like so: ''{{SubatomicParticle|electron}}'' -> e−
and '''{{SubatomicParticle|electron}}''' -> e−
. - My TODO list includes rewriting the various Category:Nuclide templates to use this template as well, making it possible to change the look and feel of everything in one place. That should save vandals a lot of work :)
- - SkyLined (talk) 20:02, 20 March 2008 (UTC)
- Great, thanks! Hqb (talk) 20:16, 20 March 2008 (UTC)
Alignment issues
The alignment isn't perfect. This may be fixed by using an expression and JavaScript to get it right. Here's an example of what's wrong: Input:
X{{PhysicsParticle|Y|TL=1|BL=wwwww|BLc=5|TR=1|BR=wwww|BRc=5}}Z
Output:
- X1
wwwwwY1
wwwwZ
- There should be more spacing between the X, Y and Z.
- The bottom left and right wwwww should not run through the X and Z.
- The 1 at the top left should be more to the right to right-align with the wwwww.
--SkyLined
(talk) 12:00, 7 April 2008 (UTC)