Difference between revisions of "Template:Chembox Related"
Jump to navigation
Jump to search
imported>DePiep (invoke TemplatePar to catch unknown parameters) |
imported>DePiep (Minor adjustments; improve formatting; use parameter check. See talk) |
||
| Line 1: | Line 1: | ||
{{#if:{{{OtherAnions|}}}{{{OtherCations|}}}{{{Function|}}}{{{OtherFunction_label|}}}{{{OtherFunctn|}}}{{{OtherFunction|}}}{{{OtherCpds|}}}{{{OtherCompounds|}}} | {{#if:{{{OtherAnions|}}}{{{OtherCations|}}}{{{Function|}}}{{{OtherFunction_label|}}}{{{OtherFunctn|}}}{{{OtherFunction|}}}{{{OtherCpds|}}}{{{OtherCompounds|}}} | ||
| − | | {{Chembox headerbar | + | |<!-- then: |
| − | |header=Related compounds | + | ----- HEADER ----- |
| − | + | -->{{Chembox headerbar | |
| − | --><!-- Do not categorize (02-03-2015) {{#if:{{{Function|}}}{{{OtherFunctn|}}}{{{OtherCpds|}}} | + | |header=Related compounds<!-- |
| − | |[[Category:Chemical infoboxes with misplaced or deprecated parameters|O*other]]}}--><!-- | + | ----- maintenance cats ----- |
| − | -->}} | + | -->|addcats=<!-- Do not categorize, cannot move subtemplates easily (02-03-2015) {{#if:{{{Function|}}}{{{OtherFunctn|}}}{{{OtherCpds|}}} |
| + | |[[Category:Chemical infoboxes with misplaced or deprecated parameters|O*other]]}} | ||
| + | ----- templatepar ----- | ||
| + | -->|templatepar={{#invoke:TemplatePar | ||
| + | |check | ||
| + | |template=Template:Chembox Related | ||
| + | |all= |opt= OtherAnions= OtherCations= OtherFunction= OtherFunction_label= OtherCompounds= OtherFunctn= Function= OtherCpds= | ||
| + | |cat=Chemical articles with unknown parameter in Chembox | ||
| + | |format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!-- | ||
| + | ----- END HEADERBAR -->}}<!-- | ||
| + | ----- START DATA ROWS ----- --> | ||
{{#if:{{{OtherAnions|}}} |{{Chembox OtherAnions |otherAnions={{{OtherAnions|}}} }}}} | {{#if:{{{OtherAnions|}}} |{{Chembox OtherAnions |otherAnions={{{OtherAnions|}}} }}}} | ||
{{#if:{{{OtherCations|}}} |{{Chembox OtherCations |otherCations={{{OtherCations|}}} }}}} | {{#if:{{{OtherCations|}}} |{{Chembox OtherCations |otherCations={{{OtherCations|}}} }}}} | ||
| Line 12: | Line 22: | ||
-->}}<!-- | -->}}<!-- | ||
| − | --> | + | --><noinclude>{{documentation}}</noinclude> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 12:12, 31 October 2015
| This template uses Lua: |
Usage
This box can be used as a module in the {{chembox}}. Copy the left column into an existing chembox, before the first section, and give the section a unique number 0–9 (the first line reads e.g. "| Section8 = {{Chembox Related").
This parameter list:All Related input creates a 'see also' list. It is good practice to use article links.
| Section8 = {{Chembox Related
| Related_ref =
| OtherAnions =
| OtherCations =
| OtherFunction =
| OtherFunction_label =
| OtherCompounds =
}}
|
Example
| Related compounds | |
|---|---|
Other anions
|
- |
Other cations
|
Phosphine Arsine Stibine |
Related nitrogen hydrides
|
Hydrazine Hydrazoic acid |
Related compounds
|
Ammonium hydroxide |
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa). | |
| Infobox references | |
{{Chembox
| Name = [[Ammonia]]
| Section8 = {{Chembox Related
| OtherAnions = -
| OtherCations = [[Phosphine]]<br/>[[Arsine]]<br/>[[Stibine]]
| OtherFunction = [[Hydrazine]]<br/>[[Hydrazoic acid]]
| OtherFunction_label = nitrogen hydrides
| OtherCompounds = [[Ammonium hydroxide]]
}}
}}
Of the parameters, only "Function" is written singular.
Subtemplates used
- {{Chembox OtherAnions}}
- {{Chembox OtherCations}}
- {{Chembox OtherFunctn}}
- {{Chembox OtherCpds}}
Tracking category
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Chembox Related Adds a subsection to {{Chembox}}. To be used: |Section9={{Chembox Related|...}}
| |||||||||||||||||||||||||||||||||||
See also
| The above documentation is transcluded from Template:Chembox Related/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |