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.
<nowiki>{{#invoke:UnitPlural |main |quantity=1 week}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3 week}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3.50 week}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=1 foot}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3 foot}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=1 mile per hour}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3 mile per hour}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=1 standard gravity}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3 standard gravity}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=1 foot}}</nowiki>
→<nowiki>{{#invoke:UnitPlural |main |quantity=3 solar mass}}</nowiki>
→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 returns the plural of the unit name, and takes parameters for use in other modules. The langcode is optional and is "" by default on .