I'm trying to execute the following function on every page that exists
for an uploaded file: {{filepath:{{PAGENAME}}.pdf}}

So, if I uploaded a file called "File.pdf", on the wiki page for
File.pdf, I'd expect {{PAGENAME}} to return "File". I'd expect the
entire function to return something like:
http://mywiki.com/mediawiki/images/4/4d/File.pdf

Instead, nothing at all is returned when PAGENAME is embedded within
filepath. If I type the expression without {{PAGENAME}}, i.e.
{{filepath:File.pdf}}, it works fine and returns:
http://mywiki.com/mediawiki/images/4/4d/File.pdf

Is it just not possible to embed magic words in string functions, or
am I missing some escape character or something?

Thanks in advance,
-Dana

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to