Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Isotopes/main/error-message/doc

From Wikipedia, the free encyclopedia

This template handles the "error-messages" for {{Infobox isotopes (meta)}} and derived pages like {{Isotopes/main/table}}, {{Isotopes/main/isotope}}. "Error-messages" is to be read as: issues, tracking, page categorising: all actions and notifications that do not belong in the Article content.

Two maintenance categories are populated:

Messaging and categorisation is by various page-properties.

  • "Error" issues, to be fixed: preview warning, categorise page(s)
  • Tracked issues: not preview warned in mainspace; only template page is categorised (the instance not the meta; not the article). Extra indicator permanmanently visible in any template subpage (like /testcases, /sandbox):cat:#A
  • checkFUP ('Check for unknown parameters', the classical method): preview warning, categorise mainspace article.

Unknown parameters

[edit]

Unknown parameters are checked by Module:Check for unknown parameters (WP:CFUP, checkfup) Mainspace pages are categorised in Category:Isotope template issues (6), under "U". That is, a single error will list twice (say, by articles polonium, Isotopes of polonium).

catsort

[edit]
Issue Unknown parameter (checkfup, Category:Isotope template issues § U) categorise: mainspace page [3×/error]
U checkfup Unknown parameter "foobar"
Issues (aka 'errors') (Category:Isotope template issues (6)) categorise: mainspace, root IB instance pages [3×/error]
P to fix Isotope data incomplete (mn, sym, na, hl=) {{Isotopes/main/isotope/iso-na-hl}}
P to fix Decay product missing; pn1, ps1 for "dm1=SF" {{Isotopes/main/isotope/decay}}
M to fix Decay mode is skipped, "dm1=..." {{Isotopes/main/isotope/decay}}
M to fix Unstable isotope, decay mode missing (dm1, pn1, ps1=...) {{Isotopes/main/isotope/cell-format}}
L to fix Unexpected code '_link' in output "100_link%" {{Isotopes/main/isotope/cell-format}}
Tracking (nothing to fix) (Category:Isotope template trackings (13)) categorise: root IB instance; show cat marking: /testcases
D add to data or fix typo or leave alone Decay mode not recognised, input shown unedited, dm1=δ+ {{Isotopes/main/isotope/decay}}
S remove input or fix half-life Stable isotope cannot have a decay mode (dm1=) {{Isotopes/main/isotope/cell-format}}
% msg Abundance percentage not recognised, na= "ca 100%" {{Isotopes/main/isotope/cell-format}}
% msg Decay mode percentage not recognised, perc1= "circa 55%" {{Isotopes/main/isotope/cell-format}}

Subtemplates

[edit]

pagetypes

[edit]
Pagetype detection
ns-main, ns-template, ns-other
rootpage, subpage
isotope-page has "isotope" in pagename?
meta, not-meta, is meta template?
msgclass-issue, msgclass-tracked, msg-type (from |catsort=)

Action is determined by AND-checking ppagetypes:

|11-action-preview-show-AND        =msgclass-issue
|12-action-preview-show-AND        =msgclass-tracked
|21-action-catlink-write-persistent-AND =ns-template, isotope-page, testcases
|31-action-categorise-write-AND    =ns-main, msgclass-issue
|32-action-categorise-write-AND    =ns-template, msgclass-issue, isotope-page, rootpage, not-meta
|36-action-categorise-write-AND    =ns-template, msgclass-tracked, isotope-page, rootpage, not-meta

This property-string (csv) is checked by {{str find word}} ("if page-types has 'ns-template, rootpage, not-meta' then categorise")

Parameters

[edit]
{{Isotopes/main/error-message
|catsort =
|sym =
|msg =
|value =
|help =
|sender =
}}
{{Isotopes/main/error-message/compose
|_CATNAME =
|_CATSORT =
|_MSG-STR =
|_PAGETYPES =
|_SENDER =
}}

See also

[edit]
{{Checks for unknown parameters}} CFUP
{{Isotopes}}
Category:Isotope template issues (6)
Category:Isotope template trackings (13)
{{Isotopes/main/error-message/testcases}}