Module:UnitPlural/doc explained

Function main

The main function takes a number and unit name and an optional language code from the frame.

It returns the quantity with proper plural units in the given language, if it can.

It will find use when the quantity is returned from Wikidata, so that the numerical value is not yet known.

Examples

Function plural

Function plural is equivalent to function main(frame), but takes parameters for use in other modules. The langcode is optional and is "" by default on .

Function pl

Function pl returns the plural of the unit name, and takes parameters for use in other modules. The langcode is optional and is "" by default on .