Jump to content

Extension talk:ImageMap/Archive 2

About this board

Archives 

previous talk on this page


PHP notices when running runJobs.php

3
Kghbln (talkcontribs)

With MW 1.21 and MW 1.22 I am once in a while getting these PHP notices when running runJob.php Cannot tell for earlier versions since I did not sysadministrate the wiki earlier.

PHP Notice:  Undefined variable: title in /.../extensions/ImageMap/ImageMap_body.php on line 165

Is this just the result of erroneous usage on some wiki pages or an issue to be rectified in the code base? I am asking here prior to reporting a possibly invalid bug.

Ciencia Al Poder (talkcontribs)
Kghbln (talkcontribs)

Thank you for your comment on this which made me report bug 66361 and your suggesting to widen error reporting. :)

Angelicadia (talkcontribs)

Hi,

Is there a parameter to customize a different color at each poly ?

Thanks

Ciencia Al Poder (talkcontribs)

Polygons are invisible. Am I missing something?

Angelicadia (talkcontribs)

Everything is fine, the extension works good.

Just, I wanted to know if there was an option to color the polygons and that they are visible by transparency (not totally opaque or totally transparent)

Ciencia Al Poder (talkcontribs)
Angelicadia (talkcontribs)
Reply to "Color"
Lambtron (talkcontribs)

I created an imagemap (at en.wikipedia.org/wiki/Incremental_encoder, section Incremental_encoder_interface). The imagmap's default link doesn't correspond to an external article, so I'm trying to link it to the associated commons image -- which is where a click would normally take me in the case of any other image. The desired link shows up when I hover over a "default" imagemap region, but clicking has no effect. Is there any workaround for this issue?

Dinoguy1000 (talkcontribs)

I've fixed it to behave correctly for you. The only issue was that you'd forgotten the File: namespace. =)

Sarang (talkcontribs)

The small (20x20px) [[:File:Desc-20.png|PNG]] of 1171 bytes does not look good. There are better SVG, [[:File:Desc-i.png|3102]] and 972 bytes, shown in the PNG's file decrition. -- sarang사랑 12:33, 18 December 2021 (UTC)

Sarang (talkcontribs)

shit, i cannot edit the errors of that comment\

Ciencia Al Poder (talkcontribs)

Done

Valerio Bozzolan (talkcontribs)

Please read this:

To find out more about the image, click on the blue "i" icon

This is a quote from Extension:ImageMap but I was not able to find that info icon on the image itself. Can somebody else confirm this problem?

Mgkrupa (talkcontribs)

I don't see it. Maybe it's not a bug and the documentation is wrong or incomplete. ~~~~

Ciencia Al Poder (talkcontribs)

Where are the described icons associated to images ?

2
Summary by Ciencia Al Poder
Wladek92 (talkcontribs)

In section 1.1 Simple example without caption, text says

"To find out more about the image, click on the blue "i" icon "

but there is NO blue icon displayed with the image

In section 1.2 Complex example with caption, text says

"To find out more about the image, click on the double-rectangle icon "

but there is NO double-rectangle icon displayed with the image.

Can someone extend the examples such as these icons appear ? Thanks.

Christian 🇫🇷 FR (talk) 11:01, 10 February 2023 (UTC)

Ciencia Al Poder (talkcontribs)

The icons were there a year ago, but now definitively aren't. This looks like a bug in the extension, probably caused by phab:T51097

A good world map somewhere ?

4
Varlin (talkcontribs)
Bennylin (talkcontribs)
Varlin (talkcontribs)

These are raw images, I was talking of an "image map", I mean, with the clickable areas defined (the biggest part of the work :)

Bennylin (talkcontribs)

How big would that map be, for the users to be able to click all the small states in the world (Singapore, Monaco, Lesotho, etc.)? Probably a good place to request would be in en.wiki, either in https://en.wikipedia.org/wiki/Template_talk:World_image_map or Village pump, where expert template-masters might be able to help.

Reply to "A good world map somewhere ?"
Daintiiyt (talkcontribs)

Hello, I have recently tried to use ImageMap on my wiki and I believe I've followed all proper formatting but when I save the page, the ImageMap displays as raw text rather than the actual map. This is really frustrating, can someone help me?

The page is https://star-haven.net/wiki/Template:Interactive_Map and all the source code is there. I'd really appreciate any advice or anyone who can figure out what exactly I'm doing wrong. I've quadruple-checked it but I just seem to be missing something.

Ciencia Al Poder (talkcontribs)
Reply to "Help with my imagemap"

using Media: in the image map

7
Issiegainsley (talkcontribs)

I would like to use a link on the image to open media. This is the code I am using. The link takes us to the file:docname.docx.

rect 652 198 854 212 [[media:docname.docx|docname]]

Is there a way this can be done with the current version of the extension?

Ciencia Al Poder (talkcontribs)

If the media: link fails, you may try the Special:FilePath link that's leaking from your message

Issiegainsley (talkcontribs)

I'm not clear on your suggestion. If you could, please clarify.

Thanks, Issie

Ciencia Al Poder (talkcontribs)

rect 652 198 854 212 [[Special:FilePath/BF006 Preliminary SolutionDefinition.docx|docname]]

Issiegainsley (talkcontribs)

I understand now. Thank you!

Issiegainsley (talkcontribs)

That leaking during a copy is a deterrent to using mediawiki. That was really easy to do. :(

Banaticus (talkcontribs)

What is this "leaking"? :)

Reply to "using Media: in the image map"

Why is the icon so different from the thumb icon?

8
TMg (talkcontribs)

Why is the icon a blue "i"? This is sooo different from the default double-rectangle thumb icon. There is currently a discussion in the German Wikipedia and I remember several earlier discussions. All users consider the blue "i" confusing. Why can't it be more similar to the default icon? Or a magnifying glass icon with a white outline? This would be very helpful, especially if an SVG map is shown in a smaller size and the user wants to enlarge it.

Mitchelln (talkcontribs)

It would be great if this couple be disabled completely via the MW link= parameter. I guess this extension was written before this parameter was added to images :)

Thanks.

קיפודנחש (talkcontribs)

actually, the link to the original image can easily be suppressed (as documented in the extension page) by adding the parameter

| desc none

(other possible values are "bottom-right" which is the default, "bottom-left", "top-right" and "top-left"). note that image copyright and good citizenship requires that a link to the original image will exist somewhere. this hold in wikis that adhere to CC-BY-SA, but may not be required in other wikis.

peace.

TMg (talkcontribs)
Alternative icons

This doesn't answer my question. Can we please change the (in my opinion) confusing blue "i" with something that looks like the default thumbnail icon or a magnifying glass?

Krabina (talkcontribs)

I agree: I also thinkg the "i" should not be there, but the standard icon for thumbnails should be used.

TMg (talkcontribs)

@Volker E. (WMF), are you aware of plans to change this icon as part of the UI standardization process?

Volker E. (WMF) (talkcontribs)

@TMg Hi, we're currently in the process of gathering feedback on a general overhaul and alignment of our WikimediaUI icon set to the icon guidelines in our style guide at https://phabricator.wikimedia.org/M229.

When we are in agreement and addressed all feedback we will amend the icons in all of Wikimedia Foundation products step by step. This is currently estimated as several months process, rolling out to MediaWiki core, MobileFrontend or VisualEditor first.

In the long run the new icon set should also be applied to extensions like ImageMap. In order not to loose this out of focus, I'd suggest filing a task on Phabricator about it.

Krabina (talkcontribs)
Reply to "Why is the icon so different from the thumb icon?"