Module:In lang: Difference between revisions

Content deleted Content added
Allow other forms of caps=yes.
Copyedit.
 
Line 82:
return cats
end
local capBoolean = yesno(args['cap']) or yesno(args['caps'])
local result = {'<span class="languageicon">('}; -- opening span and (
table.insert (result, capBoolean and 'In ' or 'in '); -- add capitalized or uncapitalized 'in'
table.insert (result, mw.text.listToText (list, ', ', (2 < #list) and ', and ' or ' and ' )); -- and concatenate the language list
table.insert (result, ')</span>'); -- add closing ) and closing span