Template:Nuclides/sandbox/doc

Source: Wikipedia, the free encyclopedia.

This version (Template:Nuclides/sandbox) calls Template:Nuclides/Row which calls #invoke:String|rep

This is a wikitable of the nuclides

The vertical axis is the number of protons.
The horizontal axis is the number of neutrons minus the number of protons.
(Eventually I want to add a parameter that switches the horizontal axis to just the number of neutrons)


Purge

Parameters

Parameters 1-7 determine the color (and contents) of cells corresponding to nuclides with given half-lifes.

1 is stable.
7 is least stable.
8 is unknown


Parameters A-D take on values yes or no.

If A is yes then every 4th row beginning with row 1 is displayed.
If B is yes then every 4th row beginning with row 2 is displayed.
If C is yes then every 4th row beginning with row 3 is displayed.
If D is yes then every 4th row beginning with row 4 is displayed. (Actually beginning with row 0)
(Eventually I want to add parameters W-Z that determine which vertical columns are displayed)


Parameter 'align' determines whether the whole table is aligned right, center, or left.

The default value is 'right'.


The parameter 'caption' is optional and determines the tables caption.

{{!}} is simply a "|" character. See Template:!
  is simply a space

Examples

{{Template:Nuclides/sandbox
| 1=style="background: #0000FF !important;" {{!}}  
| 2=style="background: #0000FF !important;" {{!}}  
| 3=style="background: #FF00FF !important;" {{!}}  
| 4=style="background: #FF0000 !important;" {{!}}  
| 5=style="background: #FF8000 !important;" {{!}}  
| 6=style="background: #FFFF00 !important;" {{!}}  
| 7=style="background: #FFFFFF !important;" {{!}}  
| 8=style="background: #FFFFFF !important;" {{!}}  
| A=yes
| B=yes
| C=yes
| D=yes
| align=left
| caption=all atomic numbers}}


all atomic numbers
- 0 1 2 3 4 5 6 7 8 9 1
0
1 2 3 4 5 6 7 8 9 2
0
1 2 3 4 5 6 7 8 9 3
0
1 2 3 4 5 6 7 8 9 4
0
1 2 3 4 5
{{{8}}} {{{8}}} {{{8}}} {{{8}}} 1 1 1 1