Module:UnitPlural/doc

Function main
The main function takes a number and unit name (quantity) and an optional language code (lang) 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.

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.
 * quant = plural(quant, langcode)

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.
 * unitnameplural = pl(unitname, langcode)