Template:Convert/dimension code

The parameter  in the convert unit templates specifies dimension. Base dimensions are encoded with prime numbers. Other dimensions are the corresponding products of the base units and/or their inverses. The table below lists the codes used. One hundred and one distinguishes scalars from vectors. Eleven is used to distinguish other dimensionally equivalent units which are conceptually different (e.g. pressure vs energy density).