Jump to content

Module:Template redirect regex and Module:Template redirect regex/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
 
m Minor comment changes to be included in the next live module revision
 
Line 5: Line 5:
function p.main( template )
function p.main( template )


--expand the following table as-needed, following the same format
--expand the following table as-needed, following the same regex and comment format
local tCanonical_templates = {
local tCanonical_templates = {
['Category redirect'] = {
['Category redirect'] = {
--the following 11 pages (6 condensed) redirect to [[Template:Category redirect]], as of 2022/9:
--the following 11 pages (6 condensed) redirect to {{Category redirect}}, as of 2022/9:
'{{%s*[Cc]ate?g?o?r?y?[ _]*[rR]edirect', --parent+505+312+243+1 transclusions
'{{ *[Cc]ate?g?o?r?y?[ _]*[rR]edirect', --parent+505+312+243+1 transclusions
'{{%s*[Cc]atr', --21
'{{ *[Cc]atr', --21
'{{%s*[Cc]at[ _]*[rR]edir', --5+3
'{{ *[Cc]at[ _]*[rR]edir', --5+3
'{{%s*[Cc]at[ _]*[rR]ed', --3+2
'{{ *[Cc]at[ _]*[rR]ed', --3+2
'{{%s*[Cc]at[ _]*[mM]ove', --1
'{{ *[Cc]at[ _]*[mM]ove', --1
'{{%s*[Cc]ategory[ _]*[mM]ove', --0
'{{ *[Cc]ategory[ _]*[mM]ove', --0
},
},
['Taxonbar'] = {
['Taxonbar'] = {
--the following 6 pages (3 condensed) redirect to [[Template:Taxonbar]], as of 2023/8:
--the following 6 pages (3 condensed) redirect to {{Taxonbar}}, as of 2023/8:
'{{%s*[Tt]axon?[ _-]?[bB]ar', --parent+50+11+2+2 transclusions
'{{ *[Tt]axon?[ _-]?[bB]ar', --parent+50+11+2+2 transclusions
'{{%s*[Tt]axon[Ii]ds', --45
'{{ *[Tt]axon[Ii]ds', --45
'{{%s*[Tt]axon[ _]*[iI]dentifiers', --1
'{{ *[Tt]axon[ _]*[iI]dentifiers', --1
--detect direct calls to [[Module:Taxonbar]]
'{{ *#invoke *: *[Tt]axonbar',
},
['Short description'] = {
--the following 4 pages (2 condensed) redirect to [[Template:Short description]], as of 2024/8:
'{{%s*[Ss]hort[ _]?[dD]escription', --parent+125+6 transclusions
'{{%s*[Ss]hort[ _]?[d]esc', --10+8
},
},
}
}