From: Rich Morin rdm@cfcl.com
http://meta.wikimedia.org/wiki/ Help:Images_and_other_uploaded_files#Navigational_maps
describes a couple of ways to get the effect of image maps in MediaWiki. However, neither of these is going to be easy to use with images created by Graphviz, etc.
Graphviz already does image maps. Are you having a specific problem with Graphviz, or is this just an "in general" comment?
:::: If addiction is judged by how long a dumb animal will sit pressing a lever to get a "fix" of something, to its own detriment, then I would conclude that the Internet is far more addictive than cocaine. -- Rob Stampfli :::: Jan Steinman http://www.Bytesmiths.com/Item/98-4880-34
At 6:41 PM -0700 4/10/06, Jan Steinman wrote:
Graphviz already does image maps. Are you having a specific problem with Graphviz, or is this just an "in general" comment?
Yes, Graphviz already does image maps. I have used these to great effect on web sites. Now, how do I use them on MediaWiki?
-r
Moin,
On Tuesday 11 April 2006 05:07, Rich Morin wrote:
At 6:41 PM -0700 4/10/06, Jan Steinman wrote:
Graphviz already does image maps. Are you having a specific problem with Graphviz, or is this just an "in general" comment?
Yes, Graphviz already does image maps. I have used these to great effect on web sites. Now, how do I use them on MediaWiki?
Both the Graphviz and the Graph extension allow links on nodes, edge (not sure about Graph) etc. So you could be installing these extensions, and then you are able to write:
== My graph ==
<graph> node { autolink; }
[ Bonn ] --> [ Berlin ] </graph>
Or the equivalent with graphviz.
and it should work. Or are you creating the images manually with graphviz, then uploading them?
Best wishes,
Tels
Moin,
On Tuesday 11 April 2006 18:56, Tels wrote:
Moin,
On Tuesday 11 April 2006 05:07, Rich Morin wrote:
At 6:41 PM -0700 4/10/06, Jan Steinman wrote:
Graphviz already does image maps. Are you having a specific problem with Graphviz, or is this just an "in general" comment?
Yes, Graphviz already does image maps. I have used these to great effect on web sites. Now, how do I use them on MediaWiki?
Both the Graphviz and the Graph extension allow links on nodes, edge (not sure about Graph) etc. So you could be installing these extensions, and then you are able to write:
== My graph ==
<graph> node { autolink; }
[ Bonn ] --> [ Berlin ]
</graph>
Er that should be:
== My graph ==
<graph> node { autolink: name; }
[ Bonn ] --> [ Berlin ] </graph>
Sorry, didn't have coffee yet,
Tels
At 6:56 PM +0200 4/11/06, Tels wrote:
Or are you creating the images manually with graphviz, then uploading them?
My intention is to create the images (and image maps) in batch mode, then upload them.
-r
Moin,
On Tuesday 11 April 2006 21:57, Rich Morin wrote:
At 6:56 PM +0200 4/11/06, Tels wrote:
Or are you creating the images manually with graphviz, then uploading them?
My intention is to create the images (and image maps) in batch mode, then upload them.
I am afraid that wont work then:
* you need the image _and_ the imagemap, which is a bit of HTML * even if you upload both, the imagemap will not get included into the HTML
You could write some sort of template that links in the image, and includes the imagemap via another template. But that would be hairy.
But I think it would be much better to include the graph source code and use an extension to render the images (including imagemap), because that way you can even change the graps from the wiki.
best wishes,
tels
At 7:55 PM +0200 4/12/06, Tels wrote:
- you need the image _and_ the imagemap, which is a bit of HTML
- even if you upload both, the imagemap will not get included
into the HTML
You could write some sort of template that links in the image, and includes the imagemap via another template. But that would be hairy.
But I think it would be much better to include the graph source code and use an extension to render the images (including imagemap), because that way you can even change the graps from the wiki.
I'm going to be generating large numbers of graphs (hundreds of thousands, prospectively). In order to get good performance, I would like to generate and store them in advance.
It looks like the simplest approach, at this point, is to use Jan Steinman's HTML inclusion hack, possibly modified to restrict it in some manner for increased security.
-r
Moin,
On Wednesday 12 April 2006 21:12, Rich Morin wrote:
At 7:55 PM +0200 4/12/06, Tels wrote:
- you need the image _and_ the imagemap, which is a bit of HTML
- even if you upload both, the imagemap will not get included
into the HTML
You could write some sort of template that links in the image, and includes the imagemap via another template. But that would be hairy.
But I think it would be much better to include the graph source code and use an extension to render the images (including imagemap), because that way you can even change the graps from the wiki.
I'm going to be generating large numbers of graphs (hundreds of thousands, prospectively). In order to get good performance, I would like to generate and store them in advance.
It looks like the simplest approach, at this point, is to use Jan Steinman's HTML inclusion hack, possibly modified to restrict it in some manner for increased security.
You might also try to allow the ".map" extension for upload, upload the image map as "image" and then use it like so:
<img src="/path/to/image.png" usemap="/mapth/to/mapfile.map">
However, from a short googling I am not sure if that is actually supported by browsers now. In 1998 it seems it was not - the map had to be in line in the same source file as the <img> tag :-/
best wishes,
Tels
mediawiki-l@lists.wikimedia.org