Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:PH indicator/doc

From Wikipedia, the free encyclopedia

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:PH indicator in articles based on its TemplateData.

TemplateData for PH indicator

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
indicator_nameindicator_name

no description

Unknownoptional
low_pHlow_pH

no description

Unknownoptional
high_pHhigh_pH

no description

Unknownoptional
low_pH_colorlow_pH_color

no description

Unknownoptional
low_pH_textlow_pH_text

no description

Unknownoptional
high_pH_colorhigh_pH_color

no description

Unknownoptional
high_pH_texthigh_pH_text

no description

Unknownoptional
middle_pH_colormiddle_pH_color

no description

Unknownoptional
middle_pH_textmiddle_pH_text

no description

Unknownoptional