Forum:Way to count page links

Hello,

I wondering if it is possible to count the number of links to a particular page, with no need to update it whenever a link is added.

For example, i know it is possible to write the page size using, for example  , so i was wondering if it is possible to do the same, but with counting the number of links to a page- which be helpful in some templates, to count the number of pages that use it. Penguin-Pal  (talk)  15:05, September 10, 2012 (UTC)
 * This isn't possible --  Random Time  15:16, September 10, 2012 (UTC)
 * This is possible, with DPL.

 linksto = Forum:Community Central Forum‏‎ mode=userformat resultsheader=There are %TOTALPAGES% links. 
 * Produces: '''

linksto = Forum:Community Central Forum‏‎ mode=userformat resultsheader=There are %TOTALPAGES% links. ''' - Verified using Special:MostLinkedPages. Close enough anyway, probably a caching error causing the count to be out a little. By the way, the DPL output will be cached, I believe it is updated once a day, but it is also updated any time the page is edited, or you can perform a null edit to update it. (A null edit is when you save a page without making a change.)
 * There is supposed to be a %PAGESEL% variable, but it isn't working for me.
 * See the DPL manual for more info about this. DPL isn't enabled by default, so you may have to request that it be enabled for your wiki. -452 19:32, September 10, 2012 (UTC)
 * Neat, didn't think about DPL - thought it would've had to be hard coded as a magic word --  Random Time  19:40, September 10, 2012 (UTC)


 * Thanks you two :) last question- is it also possible to count the number of pages that use a template?
 * Penguin-Pal  (talk)  11:25, September 12, 2012 (UTC)
 * Using pretty much the same input as the earlier query, just changing the first line:

 uses=Template:Forumheader mode=userformat resultsheader=There are %TOTALPAGES% links. 
 * Gives: '''

uses=Template:Forumheader mode=userformat resultsheader=There are %TOTALPAGES% links. '''
 * Check out the DPL Manual for other ways you can use this, like counting the uses of an image or the number of article titles that match a string. 12:12, September 12, 2012 (UTC)