|code-in =
|type =dm, na, hl [dm=dflt]
|test-unchecked-code =[Y/N]
{{../code/normalise}} [list T:Isotopes/decay-mode/code]
NORMAL-CODE ID lists (normalised ID, synonym ID)
| ||||
---|---|---|---|---|
This is only a _derived_ list. For the actual *defining* list see in-code list in /id-list
|
{{Isotopes/decay-mode/code/id-list
|normal-code =
|type =
|definition =
}}
{{Isotopes/decay-mode/overview}}
-- content list|do-link=yes
|property=dm-symbol
→ [[en-link|dm-symbol]]
|property=en-name
→ [[en-link|en-name]]
|property=qid
→ {{Q|qid}}
|property=en-link
→ {{#invoke:redirect and target|report|en-link}}
|is-first-link=yes
not tested{{Isotopes/decay-mode/code/symbol-self-check
|code-1 =
|code-2 =
|same-text =
|diff-text =
|blank2-text=
"report =y/n
}}
|code-in, type, test-unchecked-code=
|property={{yesno|{{{test-unchecked-code|no}}}|yes=test-unchecked-code|no=verify-code}}
|test-unchecked-code=yes
. Skips |property=verify-code
|definition=verify-code, test-unchecked-code
-- internal self-check
|normal-code=
with normalised/unchecked code)|property={{yesno|{{{test-unchecked-code|no}}}|yes=test-unchecked-code|no=verify-code}}
|definition=verify-code, test-unchecked-code
-- internal self-check|code-in, type=
|document-status=yes
:The template normalises a decay code like β+ into a basic, unambiguous code. That normal code is used to handle the decay mode formatting & properies.
For example, β+ → code b+
In the example:
b+
Data retrieved for b+:
The code is in basic keyboard characters. This allows the editor to enter a decay name by plain text characters.
a b e g p n + - 2 3 A-Z a-z 0-9
(SF CD IT Ne Mg Si, 24Ne, stable, syn, ...)dm code normalisation:
No case conversion uc/lc ("SF" nand "β" recognised, but "sf" and "Β" are not recognised)
Decode entitity names (β → β)
Remove '%slink$' ('_link' suffix)
Remove all whitespace
Remove <sup> tags (keep content, like '+', '-')
Replace – (ndash) − (minus) with - (keyboard hyphen)
Replace α with "a", β → "b", ε → "epsi", γ → "g"
The whole string is considered
The whole string is considered. So, not recognised is input:
[[alpha|α]]
,α (? not sure)
,<span style="background: yellow;">α</span>
Resulting code is in (US) keyboard characters.
The very same code can be enterd by its keyboard letters:
|code-in=β-
|
normalises to b-
|
|code-in=β<sup>-</sup>
|
normalises to b-
|
|code-in=β <sup > – </ sup>
|
normalises to b-
|
|code-in=b-
|
normalises to b-
|
Also recognised: bare alpha, beta, gamma, epsilon
Alternative codes are normalised, and recognised
Note:
Codes for hl and na are handled by code too:
Other values, such as number values like "{{val|1.23|e=7|ul=y}}
" (for 1.23×107 y), are not recognised. In Infobox uses, such values can be passed through and shown unedited.
|type=hl, na
Decode entitity names (&beta; → β)
Conversion uc to lc ("Stable" → "stable" code)
Remove '%slink$' ('_link' suffix)
Search for code words: "obs", "stable", "syn", "trace"
The rest of the input string is discarded (so: any of these texts in the input will fire as recognised code)
By using these |type=hl, na
options, it is prevented that some |dm=
input would find "stable" as recognised code (it is not, for dm).
<sup>...</sup>
, ..)