Difference between revisions of "Template:Infobox chemical/related"
Jump to navigation
Jump to search
Template:Parameter names example
imported>Zackmann08 (moving to the bottom) |
imported>Hike395 (apply word wrap on related compounds, also) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{OtherAnions|}}}{{{OtherCations|}}}{{{Function|}}}{{{OtherFunction_label|}}}{{{OtherFunctn|}}}{{{OtherFunction|}}}{{{OtherCpds|}}}{{{OtherCompounds|}}}|{{Infobox | <includeonly>{{#if:{{{OtherAnions|}}}{{{OtherCations|}}}{{{Function|}}}{{{OtherFunction_label|}}}{{{OtherFunctn|}}}{{{OtherFunction|}}}{{{OtherCpds|}}}{{{OtherCompounds|}}}|{{Infobox | ||
| child = yes | | child = yes | ||
| + | | bodyclass = bordered | ||
| + | | bodystyle = border-bottom:0; | ||
| labelstyle = {{Infobox chemical/labelstyle}} | | labelstyle = {{Infobox chemical/labelstyle}} | ||
| datastyle = {{Infobox chemical/datastyle}} | | datastyle = {{Infobox chemical/datastyle}} | ||
| Line 6: | Line 8: | ||
| header1 = Related compounds{{{Related_ref|}}} | | header1 = Related compounds{{{Related_ref|}}} | ||
| label2 = Other [[Ion|anion]]s | | label2 = Other [[Ion|anion]]s | ||
| − | | data2 = {{{OtherAnions|}}} | + | | data2 = {{#if:{{{OtherAnions|}}}|<div style="max-width:16em; word-wrap:break-word;">{{{OtherAnions}}}</div>}} |
| label3 = Other [[Ion|cation]]s | | label3 = Other [[Ion|cation]]s | ||
| − | | data3 = {{{OtherCations|}}} | + | | data3 = {{#if:{{{OtherCations|}}}|<div style="max-width:16em; word-wrap:break-word;">{{{OtherCations}}}</div>}} |
| label4 = Related {{{OtherFunction_label|}}} | | label4 = Related {{{OtherFunction_label|}}} | ||
| − | | data4 = {{{OtherFunction|}}} | + | | data4 = {{#if:{{{OtherFunction|}}}|<div style="max-width:16em; word-wrap:break-word;">{{{OtherFunction}}}</div>}} |
| label5 = Related compounds | | label5 = Related compounds | ||
| − | | data5 = {{{OtherCompounds|}}} | + | | data5 = {{#if:{{{OtherCompounds|}}}|<div style="max-width:16em; word-wrap:break-word;">{{{OtherCompounds}}}</div>}} |
| − | | | + | | belowstyle = padding:0;border:0; |
| − | | | + | | below = {{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox chemical/related with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox chemical/related]] with unknown parameter "_VALUE_"|ignoreblank=y| OtherAnions | OtherCations | OtherCompounds | OtherFunction | OtherFunction_label | Related_ref }} |
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 00:10, 26 November 2018
This is the {{Infobox}} implementation of {{Chembox Related}}
| This template uses Lua: |
Usage
{{Infobox chemical/related
| OtherAnions =
| OtherCations =
| OtherCompounds =
| OtherFunction =
| OtherFunction_label =
| Related_ref =
}}
See also
| Old {{chembox}} version | {{Infobox chemical}} equivalent | Testcases |
|---|---|---|
| {{Chembox Identifiers}} | {{Infobox chemical/identifiers}} | testcases |
| {{Chembox Properties}} | {{Infobox chemical/properties}} | testcases |
| {{Chembox Structure}} | {{Infobox chemical/structure}} | testcases |
| {{Chembox Thermochemistry}} | {{Infobox chemical/thermochemistry}} | testcases |
| {{Chembox Explosive}} | {{Infobox chemical/explosive}} | testcases |
| {{Chembox Pharmacology}} | {{Infobox chemical/pharmacology}} | testcases |
| {{Chembox Hazards}} | {{Infobox chemical/hazards}} | testcases |
| {{Chembox Related}} | {{Infobox chemical/related}} | testcases |
| {{Chembox Supplement}} | {{Infobox chemical/supplement}} | testcases |
- Additional templates
- {{Infobox chemical/image row}}
- {{Infobox chemical/labelstyle}}
- {{Infobox chemical/datastyle}}
- {{Infobox chemical/calc temps}}
Categories
Category:Pages using infobox chemical/related with unknown parameters (0)
Template Data
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Infobox chemical
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Related_ref | Related_ref | A reference for the header of the related section
| Content | optional |
| OtherAnions | OtherAnions | Additional Anions of the chemical
| Content | optional |
| OtherCations | OtherCations | additional Cations of the element
| Content | optional |
| OtherFunction_label | OtherFunction_label | Label for the other functions row, Required if OtherFunctions is used.
| String | optional |
| OtherFunction | OtherFunction | Data for the other function row
| Content | optional |
| OtherCompounds | OtherCompounds | Other related compounds
| Content | optional |
References
| The above documentation is transcluded from Template:Infobox chemical/related/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |