Module:Hero

From Heroes 3 wiki
Revision as of 00:34, 6 August 2024 by Imahero (talk | contribs) (Created page with "local p = {}; function p.plural(frame) local num_heroes = tonumber(frame.args.count) local conj_heroes = num_heroes == 1 and 'hero' or 'heroes' return conj_heroes end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1 hero. 2 heroes.


local p = {};

function p.plural(frame)
	local num_heroes = tonumber(frame.args.count)
	local conj_heroes = num_heroes == 1 and 'hero' or 'heroes'
    return conj_heroes
end

return p