Sjabloon:LinkForElement/doc

Uit informatiestandaarden
Ga naar: navigatie, zoeken

Template that returns the wikipedia page for an element given its name or the wikipedia page for an isotope given the element's name and its mass number.

Example usage

  • {{LinkForElement|Mercury}} will return "mercury (element)"
  • {{LinkForElement|Uranium|238}} will return "uranium-238"

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

  • {{LinkForElement|Aluminum}} will return "{{#invoke:Error|error|Aluminum is not a valid way to spell aluminium.|tag=}}"
  • {{LinkForElement|Sulphur}} will return "{{#invoke:Error|error|Sulphur is not a valid way to spell sulfur.|tag=}}"
  • {{LinkForElement|Cesium}} will return "{{#invoke:Error|error|Cesium is not a valid way to spell caesium.|tag=}}"

Because the output of this script is expected to get used in a link and any error message this script outputs will also contain links, the error message will look corrupt. It is recommended that you use {{CheckElement}} to check that no error message will be output before using this template. If {{CheckElement}} returns an error message, you should output that error message instead.

See also

Sjabloon:Periodic table templates
https://informatiestandaarden.nictiz.nl/wiki/Sjabloon:LinkForElement/doc
informatiestandaarden.nictiz.nl
crawl=CC-MAIN-2022-05
20328
application/http; msgtype=response
sha1:VZYHHS6MBLSVL4GZ4CSJHVDRYG7M4O4M
<urn:uuid:d5e68cab-72c8-4662-8596-2200efde925e>
2022-01-17T19:52:39Z
37.61.204.124
text/html
sha1:I5ETOFDHNSWF2OG6HRVKV36P3IXSTVZV
<urn:uuid:722e1d3b-c03a-4d6b-baab-ef355c39724a>
https://informatiestandaarden.nictiz.nl/wiki/Sjabloon:LinkForElement/doc
response
<urn:uuid:00653b18-4209-4dc1-8009-c23adc15b052>
isPartOf: CC-MAIN-2022-05
publisher: Common Crawl
description: Wide crawl of the web for January 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-174
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/