Community Wishlist Survey 2021/Miscellaneous/Check if a page exists without populating WhatLinksHere

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal ►

◄ Back to Miscellaneous  The survey has concluded. Here are the results!

  • Problem: Does a wiki page exist? You would expect that this would be a simple thing to check, and it partly is - you can use the #ifexist parser function. However, this has unexpected consequences: the wiki page that does this check will now appear in Special:WhatLinksHere. These false flags causes problems for editors that are working on resolving misplaced wikilinks, such as links to redirects or disambiguation pages. That in turn leads to them objecting to templates that check for the existence of a page to see if they should link to it.
  • Who would benefit: Template developers and editors resolving disambiguation links on all wikis
  • Proposed solution: Stop checks for the existence of a page from appearing at WhatLinksHere
  • More comments: This was included in the 2015, 2017, and 2019 community wishlists: while it only had 1 oppose vote, it did not get enough support votes to be addressed. It is tricky to resolve, but it should be fixed.
  • Phabricator tickets: phab:T14019 (started on 18 November 2007 - happy 13th birthday!), this is part of the larger task described at phab:T268526 ("Use a dedicated mechanism to track page dependencies")
  • Proposer: Mike Peel (talk) 22:14, 18 November 2020 (UTC)


I do not know how important this is, but I'll support since it keeps getting asked over and over again apparently. Hopefully, that gets implemented. MarioSuperstar77 (talk) 22:37, 18 November 2020 (UTC)

  • I created Template:Linkless exists to address this issue. It has disadvantages: please read its documentation before using! However, I'd still like to see a built-in and supported equivalent. Certes (talk) 01:09, 23 November 2020 (UTC)
    Thanks for that, Certes. I thought a simple work-around was possible; I actually opened a tab in my browser pointing to en:Template:If exist as a reminder while I waited the light bulb telling me how to do it turned on (there are probably multiple ways). But I hadn't considered using the PROTECTIONEXPIRY parser function as the trick to implement it. See User talk:Wbm1058##ifexist for links to another work-around implemented in 2016 which used alternative logic that avoided the need to explicitly check if a page exists. Wbm1058 (talk) 15:34, 23 November 2020 (UTC)
I've supported this fix every year. I hope the 13th is the lucky one ;-) --Andyrom75 (talk) 17:35, 23 November 2020 (UTC)