In this article we will explore Template:CheckElement in depth, a topic that has captured the attention of many in recent times. As we delve into this exciting topic, we will try to shed light on its importance and relevance in today's world. From its origins to its impact on society, Template:CheckElement has been the subject of debate and analysis, and in this article we will try to address all its facets in an objective and detailed manner. Through a multidisciplinary approach, we will examine the historical, cultural and contemporary aspects of Template:CheckElement, with the goal of providing our readers with a broader and deeper understanding of this fascinating topic.
Template that returns an error message if the first argument is not valid for use with other nuclide templates helper templates.
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).
}}
TemplateData for CheckElement
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| link | link | no description | Unknown | optional |
| nocategory | nocategory | no description | Unknown | optional |