§ dm-doc • {{ib-doc}}{{Isotopes}} • {{Isotopes/decay-mode/testcases}} • {{Isotopes/main/isotope}}

Isotopes/decay-mode/property

തിരുത്തുക
{{Isotopes/decay-mode/property/
|normal-code =
|raw-code    =
|type        =dm [dflt], hl, na
|property    =
|do-link     =yes/no
}}
{{Isotopes/decay-mode/property
|property =normal-code [dflt]
|property =AZ-changes
|property =action-text
|property =code-type-explicit
|property =code-type
|property =dm-symbol-alt
|property =document-status
|property =en-link
|property =en-name
|property =example
|property =in-nubase2020
|property =multi-meaning
|property =nubase-name
|property =qid
|property =dm-symbol

|property =is-first-link [tested 22Feb2023]
more
{{Isotopes/decay-mode/property}} [list T:.decay-mode/property]
{{Isotopes/decay-mode/property/property-list}}
{{Isotopes/decay-mode/property/create-link}}
{{Isotopes/decay-mode/property/format-percent}}
{{Isotopes/decay-mode/property/format-percent/format-number}}

{{../code/normalise}} {{../code/id-list}}

{{Isotopes/decay-mode/code/has-linkrequest}}
{{Isotopes/decay-mode/code/cleanup}}
code testing
|property={{yesno|{{{test-unchecked-code|no}}}|yes=test-unchecked-code|no=verify-code}}
|property=dm-symbol, dnm-symbol-alt, qid, en-link, en-name, AZ-changes, example, nubase-name
|property=verify-code, test-unchecked-code -- internal self-check
TODO research for /prop For ../code/id-list as a parameter: |test-unchecked-code=yes/no
|code-in, type, test-unchecked-code=
{{Isotopes/decay-mode/property
 |normal-code =
 |raw-code    =
 |property    =
 |type        =hl, na
 |do-link     =yes/no
}}
|property =normal-code<!-- return, use through dm-property; checked? -->
|property =dm-symbol
|property =dm-symbol-alt
|property =en-link
|property =en-name
|property =nubase-name
|property =AZ-changes
|property =action-text
|property =qid
|property =example
|.. incomplete
create-link
{{Isotopes/decay-mode/property/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}}
{{Isotopes/decay-mode/property
 |normal-code =
 |raw-code    =
 |property    =
 |type        =hl, na
 |do-link     =yes/no
}}
  • |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 {{Isotopes/decay-mode/code/normalise}})
  • |type=dm [default], hl, na
  • |do-link=Y/N
  • todo: |errormsg=, categorise

Decay mode normalised codes are not visible in mainspace. Also, they have no meaning or use outside of {{Isotopes/decay-mode/property}}.

|document-status=
{{Isotopes/decay-mode/property/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}}
തിരുത്തുക

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.
test unk code
synonym replacement: always (59 → 39 id's)
|document-status=yes:
{{Isotopes/decay-mode/code/normalise}}
to return code as normalised but unchecked (=return bad codes too):
Normalise without post-check (=return bad/unk codes too):
|test-unchecked-code=yes. Skips |property=verify-code
not
Does not work in mainspace (then: always verfy-code).
not
by using {{Isotopes/decay-mode/property}} (instead: feed |normal-code= with normalised/unchecked code)
errormsg
errormsg=|errormsg=

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+b+

Data retrieved for b+:

symbol: β+
en-name: β+ decay
AZ-changes: (A, Z − 1)
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 (&beta; → β)
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|α]] Red XN,
α (? not sure) Red XN,
<span style="background: yellow;">α</span> Red XN
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 b-
|code-in=&beta;<sup>-</sup> normalises to b-
|code-in=&beta; <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:

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 (&ndash;)
U+2212 MINUS SIGN (&minus;)
U+002D - HYPHEN-MINUS
U+00AD SOFT HYPHEN (&shy;) (not handled)

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 (&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).

58 normal codes (3 Feb 2023)
As of 21:32, 3 February 2023 (UTC)
List as used by |property=verify-code.
|property= lists to be checked against this list (completeness). Normalise does check against this list, returns <blank> when not present ("not a code"). |errormsg=false by default.
|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

തിരുത്തുക
{{Isotopes/main/error-message}}
{{Isotopes/decay-mode/overview}} ({{../row}}) (technical, full overview)
{{decay modes}} (live)
Category:Pages using infobox element with unknown parameters (28)

References

  1. Kondev, F. G.; Wang, M.; Huang, W. J.; Naimi, S.; Audi, G. (2021). "The NUBASE2020 evaluation of nuclear properties" (PDF). Chinese Physics C. 45 (3): 030001. doi:10.1088/1674-1137/abddae.
"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Isotopes/decay-mode/property/doc&oldid=4285874" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്