On Sun, Jan 22, 2012 at 12:42 AM, Dana Chandler <[email protected]> wrote:
> So when I use it, it references
> the PAGENAME of that template, rather than the page that the template
> is being transcluded on. Is there a way so that the PAGENAME can refer
> to the final page it's being transcluded on rather than just the
> template?
I might still be fuzzy on precisely what you're doing. To be clear,
you're creating Template:Foo with {{filepath:{{PAGENAME}}}} in it and
then embedding it on File:Bar.pdf? That produces a working image link
on my wiki, with PAGENAME expanded to Bar.pdf, not Foo.
What version of MediaWiki are you running?
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l