Hello,
Is there a way to embed (or enable embedding) of something that in raw html would work as:
<a href="http://somesite.net/somepage.html%3E <img src=http://somesite.net/script?param> </a>
where script?param outputs an image?
Thank you, Sarunas
On 21/12/06, Sarunas Burdulis sarunas@math.dartmouth.edu wrote:
Hello,
Is there a way to embed (or enable embedding) of something that in raw html would work as:
<a href="http://somesite.net/somepage.html%3E
<img src=http://somesite.net/script?param> </a>
If $wgAllowExternalImages is set to "true" in LocalSettings.php, then it might be possible through [http://server/script?params].
If not, then there are a couple of options:
(Better) Write a parser hook extension that accepts the parameter values as attributes and generates the appropriate HTML.
(Worse) Enable raw HTML ($wgRawHtml) and include the above HTML snippet on a page with <html></html>tags.
I favour the parser hook, overall.
Rob Church
Rob Church wrote:
On 21/12/06, Sarunas Burdulis sarunas@math.dartmouth.edu wrote:
Hello,
Is there a way to embed (or enable embedding) of something that in raw html would work as:
<a href="http://somesite.net/somepage.html%3E
<img src=http://somesite.net/script?param> </a>
If $wgAllowExternalImages is set to "true" in LocalSettings.php, then it might be possible through [http://server/script?params].
Yes, I tried that, but it renders as [1] with the link underneath.
If not, then there are a couple of options:
(Better) Write a parser hook extension that accepts the parameter values as attributes and generates the appropriate HTML.
Hmm... guess I'll need a primer on "writing a parser hook for MediaWiki"?
(Worse) Enable raw HTML ($wgRawHtml) and include the above HTML snippet on a page with <html></html>tags.
This works just fine.
Thanks for your quick help!
Sarunas
Check out www.mediawiki.com/wiki/Manual:MediaWiki_hooks
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Sarunas Burdulis Sent: Thursday, December 21, 2006 1:31 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] External script-generated images
Rob Church wrote:
On 21/12/06, Sarunas Burdulis sarunas@math.dartmouth.edu wrote:
Hello,
Is there a way to embed (or enable embedding) of something that in raw html would work as:
<a href="http://somesite.net/somepage.html%3E
<img src=http://somesite.net/script?param> </a>
If $wgAllowExternalImages is set to "true" in LocalSettings.php, then it might be possible through [http://server/script?params].
Yes, I tried that, but it renders as [1] with the link underneath.
If not, then there are a couple of options:
(Better) Write a parser hook extension that accepts the parameter values as attributes and generates the appropriate HTML.
Hmm... guess I'll need a primer on "writing a parser hook for MediaWiki"?
(Worse) Enable raw HTML ($wgRawHtml) and include the above HTML snippet on a page with <html></html>tags.
This works just fine.
Thanks for your quick help!
Sarunas
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
In fact it is mediawiki.org, but .com possibly is a redirect.
On 12/21/06, Wayne Marsh wayne.marsh@aldatasoftware.com wrote:
Check out www.mediawiki.com/wiki/Manual:MediaWiki_hooks
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Sarunas Burdulis Sent: Thursday, December 21, 2006 1:31 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] External script-generated images
Rob Church wrote:
On 21/12/06, Sarunas Burdulis sarunas@math.dartmouth.edu wrote:
Hello,
Is there a way to embed (or enable embedding) of something that in raw html would work as:
<a href="http://somesite.net/somepage.html%3E
<img src=http://somesite.net/script?param> </a>
If $wgAllowExternalImages is set to "true" in LocalSettings.php, then it might be possible through [http://server/script?params].
Yes, I tried that, but it renders as [1] with the link underneath.
If not, then there are a couple of options:
(Better) Write a parser hook extension that accepts the parameter values as attributes and generates the appropriate HTML.
Hmm... guess I'll need a primer on "writing a parser hook for MediaWiki"?
(Worse) Enable raw HTML ($wgRawHtml) and include the above HTML snippet on a page with <html></html>tags.
This works just fine.
Thanks for your quick help!
Sarunas
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 21/12/06, Wayne Marsh wayne.marsh@aldatasoftware.com wrote:
Check out www.mediawiki.com/wiki/Manual:MediaWiki_hooks
A parser hook is a different kind of hook altogether.
Rob Church
mediawiki-l@lists.wikimedia.org