Ad placeholder

Module:ParseList: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 17: Line 17:
end
end


-- We don't need to cover most regular English words, as they're very unlikely
-- This is a TWO-WAY conversion table of singular words and their corresponding
-- to ever be used with this module. The kind of stuff you want to add here is
-- plural form, for those that wouldn't be handled correctly by the automatic
-- gameplay elements like classes, weapons, races, etc. that you may want to
-- rules implemented further down below.  Note that we don't need to cover most
-- pluralize in a listing.
-- regular English words, as they're unlikely to ever be used with this module.
-- The kind of stuff you want to add here is gameplay elements like classes,
-- weapons, races, and so on.
local specialPlurals = {
local specialPlurals = {
-- Weapons
-- Weapons
Line 145: Line 147:
end
end


-- These functions implement the different output types.  The elements will have
-- already gone through processElement() at this point, so they only need to be
-- glued together to produce the desired type of listing format.
local converters = {
local converters = {
sentence = function (elements)
sentence = function (elements)

Navigation menu