Content deleted Content added
Fred Gandt (talk | contribs) cleanup |
if the shortdesc follows WP:SDNONE, treat it as a valid explicit description |
||
Line 89:
-- Because regular expressions haven't been invented yet...
-- ignore everything that isn't a declaration of 'noreplace'
if param == 'noreplace' or mw.ustring.match( param, '^2%s*=%s*noreplace$' ) then
-- Take note of 'noreplace'-ing for establishment of hierarchy later.
Line 103 ⟶ 102:
possible_short_descriptions[ template_content_index ].description = param
-- But we want to know the total quantity of descriptions being declared.
quantity_of_things.descriptions = quantity_of_things.descriptions + 1
else
-- If the short description is intentionally blank per [[WP:SDNONE]], treat it
-- as a valid explicit description and return an empty string rather than nil
possible_short_descriptions[ template_content_index ].description = ''
quantity_of_things.descriptions = quantity_of_things.descriptions + 1
end
|