Content deleted Content added
sync from main |
reduce surface of plainlist to support templatestyles, rewrite end of function |
||
Line 196:
for _, n in ipairs (enumerators_t) do -- loop through the sorted enumerators
table.insert (list_t, table.concat ({
_native_name ({ -- go render the native name
args_t['tag'..n],
Line 209 ⟶ 208:
['template'] = 'native name list', -- for error messaging
['index'] = n, -- for error messaging
args_t['postfix'..n] or '',
}));
end
if 0
if 1 < #list_t then▼
table.insert (list_t, '</ul></div>'); -- close the unordered list; close the div▼
return (yes_no (args_t.suppress_empty_list_error) and '') or -- return empty string
error_msg (messages_t.empty_list, 'native name list'); -- error message else
▲
else
return require('Module:List').unbulleted(list_t); -- use unbulleted list from module
end
end
|