Skantlyn:Infobox element/crystal structure
This template has testcases (edit) for editors to experiment.
Usage
[pennfenten]In {{Infobox element}}, internally. The value from |crystal structure=
is fed into this template, and returned is either a wikilink or an image name.
|crystal structure=diamond cubic
(as entered in an element infobox).- Then, in {Infobox element}:
{{Infobox element/crystal structure|{{{crystal structure|}}}}}
→ Skantlyn:Engvar- and
{{Infobox element/crystal structure|{{{crystal structure|}}}|return=image}}
→Diamond cubic crystal structure.svg
- Then used in
[[image:...]]
Parameter |crystal structure 2=
is used alike.
Any nowrap or NBSP is within this template (not in {Infobox element}).
Examples
[pennfenten]These are most of the recognized input options. Input is case-insensistive A=a, and hyphen and spaces can be used at will: face-centered=face centered). |engvar=
can be en-US (default), en-GB, en-OED; spelling of "centered/centred" is affected.
Unknown input
[pennfenten]Only use existing crystal structure names and inages. When it does not exist, do not add the parameter |crystal structure=
. (use |crystal structure prefix=
and |crystal structure comment=
in the element's infobox).
Infoboxes with unrecognised input are listed in Category:Element infobox templates that need attention under Δ.