Module:Extract short description: Difference between revisions

Content deleted Content added
m Trappist the monk moved page Module:Sandbox/trappist the monk/tag2 to Module:Extract short description without leaving a redirect: get it out of the sandbox
don't be greedy;
Line 31:
end
 
text = frame:preprocess (text):match ('<div[^>]-class="shortdescription.->(.+-)</div>'); -- preprocess and extract shortdescription text
 
if not text then
return '<span style="font-size:100%;" class="error">error: no short description text in: ' .. template_name .. ' in '.. article_title .. '</span>';