Module:Extract short description: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 11:
frame: frame object required to preprocess template_name
article_title: the name of the article to inspect - correct spelling and captialization is required
template_names_tbl: a single template name (a string) or a table of one or more template names withoutall without
namespace to be inspected - correct spelling and captialization is required
 
returns two values:
Line 144 ⟶ 145:
return extract_from_article (article_title);
end
end
 
 
 
-----test-----
-- temporary test function to be deleted
local function test (frame)
local tbl = {'Infobox television episode/sandbox', 'short description'};
local text, good = extract_from_template (frame, 'User:Trappist the monk/sandbox', tbl);
if good then
return text;
else
return 'extract_from_template() returned this: ' .. text
end
end
 
Line 168 ⟶ 155:
extract_from_template = extract_from_template,
extract_from_article = extract_from_article,
test = test, -- to be deleted
}