• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:CheckElement

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Template that returns an error message if the first argument is not valid for use with other nuclide templates helper templates.

Usage

When using a string that is not a valid element name or symbol or "x" or "element", an error message is returned, like so:

  • {{CheckElement|C}} will return ""
  • {{CheckElement|Carbon}} will return ""
  • {{CheckElement|Blablabla}} will return "The element Blablabla does not exist."

The "link=yes" argument is also supported; if the element name or symbol has no associated link, an error message is returned, like so:

  • {{CheckElement|link=yes|C}} will return ""
  • {{CheckElement|link=yes|Carbon}} will return ""
  • {{CheckElement|link=yes|X}} will return "The generic element 'X' does not have a page to link to."

When using a common name for an element that goes against the Wikipedia style guide for element names, a warning message will be returned. There are currently three such names:

  • {{CheckElement|Aluminum}} will return "Aluminum is not a valid way to spell aluminium."
  • {{CheckElement|Sulphur}} will return "Sulphur is not a valid way to spell sulfur."
  • {{CheckElement|Cesium}} will return "Cesium is not a valid way to spell caesium."

This template can be used in other templates to check for error before calling other templates that require a valid element or symbol like so:

{{#if:{{CheckElement|{{{element argument}}}|link={{{link|}}} }}
 | Error message (shown when the element is invalid).
 | Normal message (shown when the element is valid).
}}

Template Data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:CheckElement in articles based on its TemplateData.

TemplateData for CheckElement

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
linklink

no description

Unknownoptional
nocategorynocategory

no description

Unknownoptional

See also

  • v
  • t
  • e
Periodic table templates and files
  • {{Navbox periodic table}} {{Sidebar periodic table}}
Column counts are columns only that contain elements. "Compact cells" denote cells with element symbol only, have navbox style and the table fits basic wiki page width (1024×768). "Detailed cells" have more data, and may cause page width excess (scroll bar added). "Extended" periodic tables are about theoretical periods 8 and higher (element 119 and higher).
Table forms
Standard
  • 18 columns: {{Basic}}
  • {{Micro cells (bare)}}
  • image:Periodic table
  • 32 columns: {{Micro cells (box)}}
    • {{bare}}
  • {{Compact}}
Extended
  • Standard
  • {{Extended, 32 columns, navbox}}
  • by Aufbau
  • {{50 columns, compact}}
Alternative
structure
  • Left step by Janet: {{Left step (with shell filling sequence)}}
Element
properties
Data
  • {{Element data pages}}
  • Category:Infobox element data sets (46)
    • {{overview}}
  • {{Boiling point}}
  • {{Melting point}}
Variants
  • {{Transuranium element}}
Electron
configuration
  • {{Electron configuration}}
  • {{Electronegativity by Allen scale}}
  • {{Electronegativity by Pauling scale}}
Groups
  • {{Group names}}
  • {{Alkali metals}}
  • {{Alkaline earth metals}}
  • {{Group 3 elements}}
  • {{Group 4 elements}}
  • {{Group 5 elements}}
  • {{Group 6 elements}}
  • {{Group 7 elements}}
  • {{Group 8 elements}}
  • {{Group 9 elements}}
  • {{Group 10 elements}}
  • {{Group 11 elements}}
  • {{Group 12 elements}}
  • {{Boron group elements}}
  • {{Carbon group elements}}
  • {{Pnictogens}}
  • {{Chalcogens}}
  • {{Halogens}}
  • {{Noble gases}}
Blocks
  • g-block
  • image:blocks (32 columns)
Metal–metalloid–nonmetal
  • {{lanthanides}}
  • {{metalloids}}
Themes
  • {{By nutritional elements}}
  • {{By Goldschmidt classification}}
  • {{By bonding}}
  • {{Chinese name}}
 
Chemical compounds
  • {{Acetates}}
  • {{Antimonides}}
  • {{Arsenates}}
  • {{Arsenides}}
  • {{Azides}}
  • {{Bismuthides}}
  • {{Borates}}
  • {{Borides}}
  • {{Bromates}}
  • {{Bromides}}
  • {{Carbides}}
  • {{Carbonates}}
  • {{Chlorates}}
  • {{Chlorides}}
  • {{Chlorites}}
  • {{Cyanates}}
  • {{Cyanides}}
  • {{Fluorides}}
  • {{Hydroxides}}
  • {{Hypochlorites}}
  • {{Iodates}}
  • {{Iodides}}
  • {{Nitrates}}
  • {{Nitrides}}
  • {{Nitrites}}
  • {{Oxalates}}
  • {{Ozonides}}
  • {{Perbromates}}
  • {{Perchlorates}}
  • {{Periodates}}
  • {{Permanganates}}
  • {{Peroxides}}
  • {{Perrhenates}}
  • {{Persulfates}}
  • {{Phosphates}}
  • {{Phosphides}}
  • {{Selenates}}
  • {{Selenides}}
  • {{Selenites}}
  • {{Silicides}}
  • {{Sulfates}}
  • {{Sulfides}}
  • {{Sulfites}}
  • {{Tellurides}}
  • {{Tellurites}}
  • {{Titanates}}
  • {{Tungstates}}
    • Category:Chemical compound templates (10)
Legends
  • {{periodic table legend}} (multiple themes)
  • {{element color}} (hardcoded)
Formatting
  • {{cell}}
  • {{cell/navbox}}
  • {{cell-named}}
  • {{with image (picture)}}
  • {{cell-PyMOL}}
  • {{cell property}} (value option)
  • {{article quality}}
Navigation
  • Mainspace:{{Navbox periodic table}} (text)
  • {{Periodic table (navbox)}} (PT)
  • {{Sidebar navbox}}
  • {{PT index to isotopes articles}}
  • {{Navbox element data}}
  • Not for mainspace: {{PT index to element pages}}
  • {{Isotopes-of pages inline}}
WikiProject and maintenance
  • {{article quality}}
    • png image
  • {{article importance}}
  • {{Recent changes in WP:Elements}}
Not normalised
{{Periodic table (Reihen and periods)}}
Images (commons)
commons:Category:Periodic tables using the enwiki classifications
Infoboxes
  • {{Infobox element}} (basic)
  • {{Index to chemical element pages}}
  • Category:Infobox element templates
  • {{Periodic table (32 columns, micro)}}
    • {{extension 119+}}
    • {{element cell}}
Nuclide templates
  • {{CheckElement}}
  • {{LinkForElement}}
  • {{NeutronsForElement}}
  • {{ProtonsForElement}}
  • {{SymbolForElement}}
Files and images
  • PT overview, 18 col
  • PT overview, 32 col
  • {{PT with pictures}}
  • article value
  • page views
  • Monoisotopes
  • Synthetic elements
  • Superheavy elements in PT
Isotopes
  • {{index}} (by periodic table)
  • {{Isotope sequence}}
  • {{stub}}
  • {{colour chart}}
  • {{Infobox isotope}}
  • PT half-life
  • Category:Isotope table templates
    • Detail
  • Category:Periodic table templates (52)
  • {{Index to chemical element pages}}
  • WikiProject Elements
    • talk
The above documentation is transcluded from Template:CheckElement/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:CheckElement&oldid=1261029562"
Last edited on 3 December 2024, at 21:59

Languages

    • Afrikaans
    • Basa Bali
    • বাংলা
    • भोजपुरी
    • Bosanski
    • Català
    • Dansk
    • Ελληνικά
    • Español
    • فارسی
    • Galego
    • 한국어
    • Հայերեն
    • Bahasa Indonesia
    • Italiano
    • Македонски
    • മലയാളം
    • Bahasa Melayu
    • Монгол
    • 日本語
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • ပအိုဝ်ႏဘာႏသာႏ
    • Português
    • Русский
    • Scots
    • Simple English
    • Slovenščina
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Svenska
    • தமிழ்
    • తెలుగు
    • ไทย
    • Українська
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 3 December 2024, at 21:59 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Legal & safety contacts
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop