Include a PF image from a public WW
Status: Beta
Brought to you by:
worden
Is there a recommended way to do this? See http://lalashan.mcmaster.ca/theobio/math/index.php/Don%27t_accept_the_null_hypothesis!/clarity (public page) for a common kind of failed attempt.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Does that work with other image URLs? I don't know much about including
remote images in wikitext.
OTOH,
<project-file filename="vitamins.Rout-1.png" project="pe-ww:http://lalashan.mcmaster.ca/theobio/mmed:CI_diagrams"/>
seems to work, though it seems to have problems displaying it during
preview. I'll work on that bug.
I'd say either approach is recommended (though I don't know what syntax
to use in wikitext). I'd use the WW syntax if you want it to remake the
file on demand, and use wikitext image inclusion
(http://www.mediawiki.org/wiki/Help:Images,
http://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages) if you want
more control over the image size, placement, etc.
Last edit: Lee Worden 2014-07-15
though come to think of it, using that GetProjectFile URL also allows you to have it remake on demand
Fixed: see [#580].
Related
Bugs:
#580JD - whenever you get to this, please let me know if you need further response, or if we should close this ticket.
I responded to the ticket.
JD
On Tue, Jul 15, 2014 at 7:59 PM, Lee Worden worden@users.sf.net wrote:
--
McMaster University Department of Biology
http://lalashan.mcmaster.ca/theobio/DushoffLab/
https://twitter.com/jd_mathbio
http://jd-mathbio.blogspot.com/
Related
Bugs: #579
Yes, my syntax works perfectly with ordinary image URLs, and AFAIK is the only way to get decent control over an external image on a wiki. I have now made a page with links to two identical-looking figures, included with identical syntax, but only one works. I guess it's something about how WW "serves" the GPF call, but it could also be something security-minded in WW (about the "get" parameters).
http://lalashan.mcmaster.ca/theobio/math/index.php?title=Don%27t_accept_the_null_hypothesis!/image_syntax
Thank you for clarifying. I agree we want those to do the same thing.
I'll look into it.
I kind of thought it would be something like this too, but
Actually it looks like it's something like this. Given this wikitext:
the parser is producing this HTML:
That is, it appears to be suppressing the
src
attribute from the last 2. I'll look into whether it rejects Special: urls or something. The third test, which I added above, rules out GET parameters as the cause.From a couple other test previews, I think that it doesn't recognize image URLs containing the '=' character.
... yes, replacing all '=' characters with its encoding '%3D' does work, in the variant URL syntax that also avoids use of '?' and '&':
Updated http://lalashan.mcmaster.ca/theobio/math/index.php/Don%27t_accept_the_null_hypothesis!/image_syntax with this working example.
Hope that helps!
It's possible, though I haven't tried, that this situation might be improved by adding something to the image whitelist (http://www.mediawiki.org/wiki/Manual:$wgEnableImageWhitelist)