I have a template for images, which checks if they exist, but it doesn't work for images retrived from commons via ForeignAPIRepo. The code:
{{ #ifexist:Image:Stylised Lithium Atom.svg | Yup | Nope }}
How can I achieve a correct result from the template also for foreign file repos?
Regards,
// Rolf Lampa
On Sat, Jan 10, 2009 at 19:00, Rolf Lampa rolf.lampa@rilnet.com wrote:
How can I achieve a correct result from the template also for foreign file repos?
If I remember correctly, {{#ifexist:Media:Stylised Lithium Atom.svg|...}} should work.
— Kalan
{{ #ifexist:Media:Stylised Lithium Atom.svg | Yup | Nope }}
should work
Yes, changing NS "Image" to NS "Media" did the trick, thank you Michael and Kalan!
// Rolf Lampa
Rolf Lampa wrote:
I have a template for images, which checks if they exist, but it doesn't work for images retrived from commons via ForeignAPIRepo. The code:
{{ #ifexist:Image:Stylised Lithium Atom.svg | Yup | Nope }}
How can I achieve a correct result from the template also for foreign file repos?
Regards,
// Rolf Lampa
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org