Content deleted Content added
m order matches |
undefined? |
||
Line 679:
return PARSERESULT_UNRECOGNIZED -- the combination of elements was not a recognized one
end
end▼
function hasMetadataTemplates(input)▼
-- This is a basic list of the template names for metadata emiting tempaltes, there are inr eality more templates and more redirects▼
if (string.match(input, '%{%{[Ss]tart[ %-]?date')) then return true end▼
if (string.match(input, '%{%{[Ee]nd[ %-]?date')) then return true end▼
if (string.match(input, '%{%{[Bb]irth[ %-]?date')) then return true end▼
if (string.match(input, '%{%{[Dd]eath[ %-]?date')) then return true end▼
if (string.match(input, '%{%{[Bb]irth[ %-]?year')) then return true end▼
if (string.match(input, '%{%{[Dd]eath[ %-]?year')) then return true end▼
if (string.match(input, '%{%{[Ff]ilm ?date')) then return true end▼
if (string.match(input, '%{%{[ISO[ %-]date')) then return true end▼
return false▼
end
Line 767 ⟶ 783:
return value -- if we didn't match anything, abort now
▲end
▲function hasMetadataTemplates(input)
▲ -- This is a basic list of the template names for metadata emiting tempaltes, there are inr eality more templates and more redirects
▲ if (string.match(input, '%{%{[Ss]tart[ %-]?date')) then return true end
▲ if (string.match(input, '%{%{[Ee]nd[ %-]?date')) then return true end
▲ if (string.match(input, '%{%{[Bb]irth[ %-]?date')) then return true end
▲ if (string.match(input, '%{%{[Dd]eath[ %-]?date')) then return true end
▲ if (string.match(input, '%{%{[Bb]irth[ %-]?year')) then return true end
▲ if (string.match(input, '%{%{[Dd]eath[ %-]?year')) then return true end
▲ if (string.match(input, '%{%{[Ff]ilm ?date')) then return true end
▲ if (string.match(input, '%{%{[ISO[ %-]date')) then return true end
▲ return false
end
|