Module:GetShortDescription and Module:GetShortDescription/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Fred Gandt (talk | contribs) m applied coding conventions now I have to look at it less often |
Fred Gandt (talk | contribs) detect redirects to an #id (section/anchor); suffering from fuzzy brain right now and have no idea what to do next |
||
Line 76: | Line 76: | ||
-- but on an appallingly formatted page, a short description template down by the categories would likely be missed. |
-- but on an appallingly formatted page, a short description template down by the categories would likely be missed. |
||
end |
end |
||
-- Better to lower/upper the case of the possibly very long page_content or this? |
|||
local redirect_to_id = mw.ustring.match(page_content, '^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*%[%[.-#.-%]%]') |
|||
if redirect_to_id then |
|||
mw.log(redirect_to_id) |
|||
-- pass this info along |
|||
end |
|||
return contents_of_all_short_description_templates |
return contents_of_all_short_description_templates |
||
end |
end |