Difference between revisions of "Template:Infobox chemical/related"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(don't need the div)
imported>Hike395
(apply word wrap on related compounds, also)
 
Line 8: 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;
 
| 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 }}
 
| 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 }}

Latest revision as of 00:10, 26 November 2018

Template documentation[view] [edit] [history] [purge]

This is the {{Infobox}} implementation of {{Chembox Related}}

Template:Parameter names example

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.

Template parameters

ParameterDescriptionTypeStatus
Related_refRelated_ref

A reference for the header of the related section

Example
<ref>{{cite web|...}}</ref>
Contentoptional
OtherAnionsOtherAnions

Additional Anions of the chemical

Example
[[Arsine]]
Contentoptional
OtherCationsOtherCations

additional Cations of the element

Example
[[Stibine]]
Contentoptional
OtherFunction_labelOtherFunction_label

Label for the other functions row, Required if OtherFunctions is used.

Example
nitrogen hydrides
Stringoptional
OtherFunctionOtherFunction

Data for the other function row

Example
[[Hydrazine]]<br/>[[Hydrazoic acid]]
Contentoptional
OtherCompoundsOtherCompounds

Other related compounds

Example
[[Ammonium hydroxide]]
Contentoptional

References