Template:PH indicator
| {{{indicator_name}}} (pH indicator) | ||
| below pH {{{low_pH}}} | above pH {{{high_pH}}} | |
| {{{low_pH}}} | ⇌ | {{{high_pH}}} |
Usage
[edit]{{pH indicator template
| float =
| indicator_name =
| low_pH =
| low_pH_color =
| low_pH_text =
| high_pH =
| high_pH_color =
| high_ph_text =
| middle_pH_color =
| middle_ph_text =
}}
The |float= parameter is optional. By default the template aligns to the right. If the right side of the article is already occupied by a sidebar or image, this may cause issues. In this case it may be useful to set |float=left. When doing so, it may also help to add {{clear|left}} immediately afterwards.
Example 1
[edit]This example illustrates the default behaviour of this template.
| Naphtholphthalein (pH indicator) | ||
| below pH 7.3 | above pH 8.7 | |
| 7.3 | ⇌ | 8.7 |
{{pH_indicator
|indicator_name=Naphtholphthalein
|low_pH=7.3
|low_pH_color=pink
|low_pH_text=black
|high_pH=8.7
|high_pH_color=orange
|high_pH_text=white
}}
Example 2
[edit]In this example |float=left is set to align the template left. As this would result in displacing the subsequent code block to the right, it's followed by {{clear}} with |1=left so that the code block instead follows beneath.
| Alizarine Yellow R (pH indicator) | ||
| below pH 10.1 | above pH 12.0 | |
| 10.1 | ⇌ | 12.0 |
{{pH indicator
|float=left
|indicator_name=Alizarine Yellow R
|low_pH=10.1
|high_pH=12.0
|low_pH_color=yellow
|high_pH_color=red
|high_pH_text=white
}}
{{clear|left}}
Example 3
[edit]This is how Example 2 appears if {{clear}} is not used, illustrating the problems that may arise when |float=left is applied in contexts where other elements on the page also aligned to the left.
| Alizarine Yellow R (pH indicator) | ||
| below pH 10.1 | above pH 12.0 | |
| 10.1 | ⇌ | 12.0 |
{{pH indicator
|float=left
|indicator_name=Alizarine Yellow R
|low_pH=10.1
|high_pH=12.0
|low_pH_color=yellow
|high_pH_color=red
|high_pH_text=white
}}
TemplateData
[edit]TemplateData for PH indicator
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| indicator_name | indicator_name | no description | Unknown | optional |
| low_pH | low_pH | no description | Unknown | optional |
| high_pH | high_pH | no description | Unknown | optional |
| low_pH_color | low_pH_color | no description | Unknown | optional |
| low_pH_text | low_pH_text | no description | Unknown | optional |
| high_pH_color | high_pH_color | no description | Unknown | optional |
| high_pH_text | high_pH_text | no description | Unknown | optional |
| middle_pH_color | middle_pH_color | no description | Unknown | optional |
| middle_pH_text | middle_pH_text | no description | Unknown | optional |