Topic on Project:Support desk

Parameters when embedding Special:WhatLinksHere

2
84.156.149.242 (talkcontribs)
  • MediaWiki version: 1.13.5
  • PHP version: 5.2.14 (cgi-fcgi)
  • MySQL version: 5.0.51a-24+lenny4
  • URL: not available to the public

(should work also on

  • MediaWiki version: 1.15.4 (to be updated ...)
  • PHP version: 5.2.5
  • MySQL version: 5.0.51
  • URL: not available to the public)

Embedding special page Special:WhatLinksHere works when using the solution on m:Help:Embed_page#Embedded_Special_Pages (i.e. changing an array at includes/SpecialPage.php). So it can embedded using {{Special:WhatLinksHere/Pagename}}.

What I am looking for is if there is any possibility to add a parameter for a certain namespace (something like {{Special:WhatLinksHere/Pagename|namespace=X}}), maybe by using a programmed template or something else. I have got solutions which

  • change standard parameters in includes/specials/SpecialWhatlinkshere.php (this is site-wide; results in disability for giving links from ALL namespaces),
  • give just a pre-defined link instead of embedding (user has to click on the link),
  • embed an iframe with a pre-defined link (user gets a whole wiki page in the iframe including links, which results maybe in further reading and editing in the iframe),

but there is always something not being that convenient (as described above). Any ideas?

This, that and the other (talkcontribs)

I think you need to upgrade MediaWiki. The feature you are trying to use was added in 2011; MediaWiki 1.15 is from 2009.

Reply to "Parameters when embedding Special:WhatLinksHere"