Template:Isotopes/decay-mode/property/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
:{{para|property|qid}} → <code><nowiki>{{Q|qid}}</nowiki></code> |
:{{para|property|qid}} → <code><nowiki>{{Q|qid}}</nowiki></code> |
||
:{{para|property|en-link}} → <code><nowiki>{{#invoke:redirect and target|report|en-link}}</nowiki></code> |
:{{para|property|en-link}} → <code><nowiki>{{#invoke:redirect and target|report|en-link}}</nowiki></code> |
||
normal-code |
|||
raw-code |
|||
do-link y/n |
|||
property |
|||
type |
|||
==decay mode id-code and related data== |
==decay mode id-code and related data== |
Revision as of 10:18, 5 February 2023
This is a documentation subpage for Template:Isotopes/decay-mode/property. It may contain usage information, categories and other content that is not part of the original template page. |
dm property
|normal-code=
,|raw-code=
|property=dm-symbol, qid, en-link, en-name, nubase-name, example, AZ-changes
|property=verify-code, merge-synonyms, test-unchecked-code
: for internal use only (by {{decay modes/dm-to-normalised-code}})
|type=dm [default], hl, na
|do-link=Y/N
- todo:
|errormsg=
, categorise
- test:
|test-unchecked-code=yes
will skip code check: all codes are returned. This allows to check the normalisation result. function|peroperty=test-unchecked-code
will be done instead of|propserty=verify-code
).
Decay mode normalised codes are not visible in mainspace. Also, they have no meaning or use outside of {{Decay modes/dm-property}}.
- /testcases: {{decay modes/dm-normal/testcases}}
create link
|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}}
normal-code raw-code do-link y/n property type
decay mode id-code and related data
Normalised decay mode id
|code-in, type, errormsg=
- returns:
- (1) normalised code (alphanumeric only),
- (2) merge-synonym (b+b+ → 2b+),
- (3) <blank> when code is not recognised.
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 [[:Template:Decay modes/dm-to-normalised-code]]
In the example:
- b+ →
[[:Template:Decay modes/dm-to-normalised-code]]
Data retrieved for b+:
- symbol: Template:Decay modes/dm-property
- en-name: Template:Decay modes/dm-property
- AZ-changes: Template:Decay modes/dm-property
- Using basic keyboard characters
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>
- Letter epsilon is coded "epsi". Also, bare letter "e" stands for "ε". Latin letter "e" only occurns in "e+".
Resulting code is in (US) keyboard characters.
The very same code can be enterd by its keyboard letters:
|code-in=β-
|
normalises to [[:Template:Decay modes/dm-to-normalised-code]]
|
|code-in=β<sup>-</sup>
|
normalises to [[:Template:Decay modes/dm-to-normalised-code]]
|
|code-in=β <sup > – </ sup>
|
normalises to [[:Template:Decay modes/dm-to-normalised-code]]
|
|code-in=b-
|
normalises to [[:Template:Decay modes/dm-to-normalised-code]]
|
Also recognised: bare alpha, beta, gamma, epsilon
Alternative codes are normalised, and recognised
Note:
- Bare Latin letter "e" is not a code, so bare letter "e" code stands for "ε"
- Inversely, "e−" only exists with Latin "e", so "e-" is unambiguous.
- U+2013 – EN DASH (–)
- U+2212 − MINUS SIGN (−)
- U+002D - HYPHEN-MINUS
- U+00AD SOFT HYPHEN (­) (not handled)
- Used in: {{Decay modes}}, {{Infobox element isotopes}} [projected for Feb2023]
half-life (hl) and natural abundance (na)
Codes for hl and na are handled by code too:
- "stable", "observationally stable", "synthetic" and "trace".
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 (β → β) 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).
Codes known
58 normal codes (3 Feb 2023)
|
---|
|14C |24Ne |28Mg |2b+ |2b- |2n |2p |30Mg |32Si |C-14 |CD |EC |IS |IT |Mg-28 |Mg-30 |Ne-24 |SF |Si-32 |a |alpha |b |b+ |b+2p |b+3p |b+SF |b+a |b+b+ |b+p |b+pp |b+ppp |b- |b-2n |b-3n |b-SF |b-a |b-b- |b-d |b-n |b-nn |b-nnn |b-t |beta |ee |epsi |epsiepsi |epsilon |epsilonepsilon |g |gamma |n |nn |obsstable |p |pp |stable |syn |trace |
Tracking, messages, errors
{{Decay modes/error-message |do-cat= |catsort=A |cat-message= |do-preview=Y/N |preview-message= |value= |sender={{tl|Template:Decay modes/error-message/doc}} }}
See also
- {{decay modes/overview}} ({{../row}}) (technical, full overview)
- {{decay modes}} (live)
References