Template:Px/doc

Usage
This template is used to help normalize image size values by ensuring input doesn't have any "px" unit at the end. It takes one or two parameters: the required first parameter is the image size value, and the optional second parameter indicates that the unit "px" should be affixed to the normalized value.

For example, 180 and 180px both result in, and 180 and 180px both result in.

The template also correctly handles cases where the "px" unit has been doubled and cases where the "x" notation is used to indicate height in addition to or instead of width:
 * 180pxpx →
 * 180x180, 180x180px, 180x180pxpx →
 * x180, x180px, x180pxpx →