Page MenuHomePhabricator

Template to check if section exists cause "Pages transcluding nonexistent sections"
Open, Needs TriagePublicFeature


What the way you suggest now to check if a section is exists (like the parser function "#exists:")?

Untill now we used on the Hebrew Wikisource a template for this purpose, that contain the idea of


but now we have 53,000 pages and 16,000 categories on "category:Pages transcluding nonexistent sections". Is there any advice or a build-in solution, how to check it without the problem?

Event Timeline

Hi @Shalomori123. This does not sound like something is wrong in the code base (a so-called "software bug"), but instead like a support request (how to change settings, questions how to do something, etc.).
As Wikimedia Phabricator is for bug reports, enhancement requests, and planning work, please check and/or use for questions about Wikimedia wikis. Thanks for your understanding!

Pppery subscribed.

I'm reopening this as it seems like a valid feature request to me - there should be a way to check whether a section exists without populating a tracking category if it doesn't, and there isn't (other than hacks like this).

@Aklapper, you are right that it sounds like a how-to question, but it's only sounds (maybe I should rephrase it), since the code "improvement" created problems that didn't exist (T336628 is another example). When you add a feature you have to check that it doesn't break anything else, and that's why I attract your attention to it.

Aklapper changed the subtype of this task from "Task" to "Feature Request".May 29 2023, 10:30 AM

@Shalomori123: In that case, in the future, please use the feature request form (linked from the top of the task creation page) to create feature requests, and fill in the sections in the template. Thanks!

If you think that it's a bug report, then please change the subtype to bug report. In any case, please use templates to avoid misunderstandings - thanks!

Also, bug T337467 caused by this method of check.

thiemowmde renamed this task from Temp to check if the section exists cause "Pages transcluding nonexistent sections" to Template to check if section exists cause "Pages transcluding nonexistent sections".Nov 21 2023, 10:44 AM