Module:GetShortDescription/sandbox: Difference between revisions

Content deleted Content added
will work on resolving redirects after lunch
new_title = new_title.redirectTarget or new_title
Line 51:
local function getExplicitDescription( name )
local new_title = mw.title.new( name )
--new_title mw.log(= new_title.redirectTarget )or new_title
local page_content = new_title:getContent()
if isEmpty( page_content ) then
Line 57 ⟶ 58:
return nil
end
-- mw.log( new_title.redirectTarget )
local contents_of_all_short_description_templates = {}