Module:GetShortDescription/sandbox: Difference between revisions

Content deleted Content added
test page content while we have it for redirect syntax; to finish later
detect redirects to an #id (section/anchor); suffering from fuzzy brain right now and have no idea what to do next
 
Line 78:
-- Better to lower/upper the case of the possibly very long page_content or this?
local redirect_pageredirect_to_id = mw.ustring.match(page_content, '^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*%[%[.-#.-%]%]')
if redirect_pageredirect_to_id then
mw.log('redirect page'redirect_to_id)
-- pass this info along
end