Module:Pronouns: Difference between revisions

46 bytes removed ,  11 months ago
testing
(Created page with "local p = {} function p.pronoun(frame) local args = frame.args local pronouns = { he = "he", she = "she", they = "they" } local selectedPronouns = {} local categories = {} for i, arg in ipairs(args) do if pronouns[arg] then table.insert(selectedPronouns, pronouns[arg]) table.insert(categories, "[[Category:Players who are a " .. pronouns[arg] .. "]]") end end if #selectedP...")
 
(testing)
Line 21:
 
if #selectedPronouns == 0 then
return "No valid pronouns specified."
else
return table.concat(selectedPronouns, "/") .. table.concat(categories)