Module:Rolestyles

local p = {} -- rolestyles

function p.onlyimage(namevars, subvars, settings) local sortnumber = "" if settings.sorted == 'yes' then sortnumber = ' ' .. (namevars.sortnumber + subvars.sortnumber) .. ' '	end return sortnumber .. ' '.. subvars.div .. '' .. subvars.div2 .. subvars.s .. ' ' end

function p.sentencesingle(namevars, subvars, settings) return "the " .. namevars.sentence end

function p.sentencemultiple(namevars, subvars, settings) return namevars.article .. " " .. namevars.sentence end

function p.sortnumber(namevars, subvars, settings) return namevars.sortnumber + subvars.sortnumber end

function p.roleonly(namevars, subvars, settings) -- Ignores whether it's a sub or not local sortnumber = "" if settings.sorted == 'yes' then sortnumber = ' ' .. (namevars.sortnumber + subvars.sortnumber) .. ' '	end return sortnumber .. namevars.role end

function p.shortname(namevars, subvars, settings) -- Ignores whether it's a sub or not local sortnumber = "" if settings.sorted == 'yes' then sortnumber = ' ' .. (namevars.sortnumber + subvars.sortnumber) .. ' '	end return sortnumber .. namevars.short end

function p.default(namevars, subvars, settings) local sortnumber = "" if settings.sorted == 'yes' then sortnumber = ' ' .. (namevars.sortnumber + subvars.sortnumber) .. ' '	end return sortnumber .. subvars.text .. namevars[subvars.display] end

return p