Difference between revisions of "Template:CheckElement"

From Linked Earth Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}} }} |x|element={{#ifeq:{{lc:{{{link|}}} }} |yes|{{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}}{{FormattingError|The generic element '{{{1}}}' does not have a page to link to.|nocategory={{{nocategory|}}} }}
+
<includeonly>{{#switch:{{lc:{{{1}}} }}
 +
  |x|element={{#ifeq:{{lc:{{{link|}}} }} |yes
 +
    |{{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}}{{FormattingError
 +
      |The generic element '{{{1}}}' does not have a page to link to.|nocategory={{{nocategory|}}} }}<!--
 +
  -->}}
 
   |aluminum
 
   |aluminum
 
   |sulphur
 
   |sulphur
   |cesium={{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}} {{FormattingError |{{{1}}} is not a [[Wikipedia:WikiProject Chemicals/Style guidelines#Element names|valid]] way to spell {{#switch:{{lc:{{{1}}} }} |aluminum=aluminium |sulphur=sulfur |cesium=caesium}}.
+
   |cesium={{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}}<!--
  |nocategory={{{nocategory|}}} }}
+
    -->{{FormattingError
 +
    |{{{1}}} is not a [[Wikipedia:WikiProject Chemicals/Style guidelines#Element names|valid]]<!--
 +
 
 +
    --> way to spell {{#switch:{{lc:{{{1}}} }}
 +
      |aluminum=aluminium
 +
      |sulphur=sulfur
 +
      |cesium=caesium
 +
    }}.|nocategory={{{nocategory|}}} }}
 
   |mu|muonium=
 
   |mu|muonium=
 
   |ps|positronium=
 
   |ps|positronium=
Line 136: Line 147:
 
   |ubh|unbihexium=
 
   |ubh|unbihexium=
 
   |ubs|unbiseptium=
 
   |ubs|unbiseptium=
   |#default={{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}} {{FormattingError |unknown element {{{1}}}.|nocategory={{{nocategory|}}} }} }}
+
   |#default={{#if:{{{nocategory|}}} | |[[Category:Pages with incorrect nuclide templates use]]}}<!--
</includeonly>
+
 
 +
    -->{{FormattingError
 +
    |unknown element {{{1}}}.|nocategory={{{nocategory|}}} }}<!--
 +
-->}}</includeonly>

Latest revision as of 06:36, 20 September 2016