Lists the most commonly used tags with empty/missing/short tag wikis (wiki or excerpt). Can also identify tag wikis that are over a specified length. Enter -1 for all parameters to match all tags. Tags that have been synonymized are excluded.
Q&A about the site for enthusiasts and scholars of mythology and folklore
-- MaxBodyLength: Max body length "Set to -1 to disable" DECLARE @max_body_length INT = ##MaxBodyLength:INT?50##; -- MaxExcerptLength: Max excerpt length "Set to -1 to disable" DECLARE @max_excerpt_length INT = ##MaxExcerptLength:INT?50##; SELECT Count, t.TagName, LEN(pe.Body) AS [Excerpt length], LEN(pw.Body) AS [Wiki length], ExcerptPostId AS [Post Link] FROM Tags t LEFT JOIN Posts pe ON pe.Id = t.ExcerptPostId LEFT JOIN Posts pw ON pw.Id = t.WikiPostId WHERE ExcerptPostId IS NULL -- no excerpt post OR LEN(pe.Body) < nullif(@max_excerpt_length,-1) -- excerpt very short OR WikiPostId IS NULL -- no wiki OR LEN(pw.Body) < nullif(@max_body_length,-1) -- wiki very short ORDER BY Count DESC, len(pw.Body) desc, len(pe.body) desc, t.TagName