Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Tales from Chyria
Search
Editing
Module talk:InfoboxImage
(section)
From Tales from Chyria
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit source
New topic
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Help with improving default image sizes == A few editors had a contentious but thoughtful discussion about default image sizes in infoboxes that fizzled out due to lack of technical expertise; see [[Template_talk:Infobox_bridge/Archive_2#Image_and_map_widths|this discussion]] from July 2022. It looks like the next step was to post a request for help here. Basically, we thought that this module might be able to do a better job of providing images for infoboxes that followed editors' thumb size preferences so that we could move away from fixed pixel size specifications in infoboxes. If there is anyone here who is willing to look into how we might default to <code>frameless</code> (or whether the module already does this, and how to code infobox image calls properly), I would be grateful. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:03, 10 January 2023 (UTC) Ditto. On some other wikis you format the image inside the info box, and can just use 'upright' to size, but on WP-en it's too complicated for me to figure out. It would be nice if at e.g. the language infobox we could set the default to, say, upright=0.9, and editors could override with their own upright value if they chose. Is it possible to set the infobox width to match the user's default image size, or would that be a bad idea? [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 01:45, 10 January 2023 (UTC) :Perhaps I am misunderstanding the discussion or request. There is already a parameter {{para|upright}} to this Module, which is passed along to the <nowiki>[[Image:XXX]]</nowiki> wikitext. If you want an infobox image to default to 114% of the size of a user's preference, why not just set {{para|upright|1.14}} in the infobox code? What am I missing? β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 03:51, 10 January 2023 (UTC) ::In my case, that I don't know what I'm doing with this module! [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 03:53, 10 January 2023 (UTC) :::Is there a specific infobox we can try to improve? Maybe that will make things clearer (or maybe there will an unanticipated problem and we'll learn from the attempt). β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 03:55, 10 January 2023 (UTC) ::::Yes, thank you. {{tl|Infobox language}}, which I could then extend to Infobox language family. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 03:57, 10 January 2023 (UTC) :::::Is the idea to default to {{para|upright|0.9}} (~200/220) ? Let's try it in the sandbox. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 03:58, 10 January 2023 (UTC) ::::::Currently, 'image' is set to 90% and 'map' to 100%. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 03:59, 10 January 2023 (UTC) :::::::Looks like it worked, see [[Template:Infobox language/testcases]]. My default image size is 250px, and it clearly changed for me. It still allows fixed-size overriding, but the default will obey user preferences. Hopefully this will resolve the dispute that seemed to happen at [[Template talk:Infobox bridge/Archive 2]]? :::::::I'll leave it to other editors to get consensus on this change, but it seems to work technically. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 04:07, 10 January 2023 (UTC) ::::::::Thanks! ::::::::Would it be possible to set it so that if we enter, say, 'mapsize' or 'imagesize=1.25', it will set it as upright=1.25, so we don't have to use px? [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 04:18, 10 January 2023 (UTC) :::::::::I guess we could check to see if the mapsize is <4, use it as upright? I worry that this will be confusing to editors. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 05:56, 10 January 2023 (UTC) It looks like using {{para|upright}} will generally work, as shown at [[Template:Infobox bridge/testcases]] (set your thumbnail preference to 300px or higher to see the difference). Somewhere (I forget where, unfortunately), an editor chose to specify an infobox image size to match the pixel size of the mapframe map in the infobox. I don't see a way to apply {{para|upright}} to mapframe maps, so I posted a query [[Template_talk:Infobox_mapframe#How_can_we_scale_the_map_size_to_the_reader's_thumbnail_preference?|at the relevant talk page]]. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 05:04, 10 January 2023 (UTC) :Anything other than a number in mapsize gives the same output, ~ equivalent to entering 500. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 06:25, 10 January 2023 (UTC) :I've changed the infobox, checking articles. No problems so far. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 06:26, 10 January 2023 (UTC) :I don't see how |upright= has any effect on anything. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 06:29, 10 January 2023 (UTC) ::{{ping|Kwamikagami}} Have you tried changing your preference for thumbnail size away from 220px? β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 07:09, 10 January 2023 (UTC) :::No, but I would think that setting upright=2 would be visible regardless. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 07:11, 10 January 2023 (UTC) ::::Oh, I bet I know what this is. This is a limitation in MediaWiki. If you start with a tiny image, it won't blow it up larger than its actual size. What's the example of upright not working? β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 07:14, 10 January 2023 (UTC) :::::I see that at e.g. [[Malay language]], where the map is an SVG but the nominal size is only 257Γ190px. And indeed, the English map has a nominal size of 512Γ260px, which is probably what I was getting when I set the size to anything but a number. But the map at [[Arabic language]] is nominally 1200px, and 'upright' has no effect there either (neither map nor image). [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 07:20, 10 January 2023 (UTC) ::::::I'm a bit confused. [[:File:Arabic albayancalligraphy.svg]] (the example image in the infobox) is 343px, so it won't get bigger than that. [[:File:Arabic speaking world.svg]] is 1200px, but {{para|upright}} appears to work (see below). β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 07:30, 10 January 2023 (UTC) :::::::Yeah, looks fine here, but no effect in the infobox. I just saved a test edit on that page, in case the preview wasn't working: nothing. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 07:37, 10 January 2023 (UTC) {{#invoke:InfoboxImage|InfoboxImage|image=File:Arabic speaking world.svg|upright=0.7}} {{#invoke:InfoboxImage|InfoboxImage|image=File:Arabic speaking world.svg|upright=2}} ::::::::I think there was a misunderstanding. I didn't implement {{para|upright}} in {{tl|Infobox language}}: I just made the default have scalable thumbnails. In [[Template:Infobox language/sandbox]] I implemented {{para|imageupright}} and {{para|mapupright}} to work as you would think, see [[Template:Infobox language/testcases#Test upright]] for the results. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 09:43, 10 January 2023 (UTC) :Ah, thank you. Yes, that works beautifully. :I changed the labels to 'imagescale' and 'mapscale', as there's been some confusion that 'upright' is only used will tall images. [[User:Kwamikagami|β kwami]] ([[User talk:Kwamikagami|talk]]) 10:39, 10 January 2023 (UTC)
Summary:
Please note that all contributions to Tales from Chyria may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Chyria Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs