Is it possible to use Mediawiki magic words like PAGENAME inside the src-parameter? We are having a problem that the magic words aren't processed before the include is processed, which means that our php-page gets parameter PAGENAME instead of the true page name.
Topic on Extension talk:Include/Archive 2
Yes, I was able to get magicwords to work. For example: <include src="//www.mediawiki.org/w/search/{{#replace:{{#replace:Qtiko7f5vhwhmad4|.pdf|.txt}}||%20}}"/>