Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Module talk
:
InfoboxImage
(section)
Add topic
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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!
== Original size == Hello. How can I display a logo in an infobox with its original dimensions? For example this: [[:File:2027 FIBA Women's AmeriCup logo.webp]]<br>This is a quite small logo, so I don't want to upscale it to the default 250px. I tried something: {{para|size|x270px}} but that's completely wrong...<br>Thank you for your ideas. [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 21:42, 15 June 2026 (UTC) :{{replyto|Maiō T.}} It depends upon the specific infobox. Which article is it? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 22:35, 15 June 2026 (UTC) ::{{replyto|Redrose64}} It's [[2027 FIBA Women's AmeriCup]].<br> ::It would be great if a parameter like this could be used: {{para|size|auto}} or something similar... [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 09:30, 16 June 2026 (UTC) :::{{replyto|Maiō T.}} For {{tlx|Infobox international basketball competition}}, the {{para|size}} parameter (which is an alias for {{para|image_size}}) must be an integer; values containing units, such as {{para|size|x270px}}, are ignored. Since the native size of [[:File:2027 FIBA Women's AmeriCup logo.webp]] is 177 × 270 pixels, and you want it 270px high, simply set {{para|size|177}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 12:09, 16 June 2026 (UTC) --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 12:09, 16 June 2026 (UTC) ::::Okay. But that's a little inconvenient. It might be a good idea to add the following line to the module: <code>if nativesize<250 then infoboxsize=nativesize otherwise infoboxsize=250</code> or something (translated into module language). [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 17:35, 16 June 2026 (UTC) :::::How is {{para|size|177}} more inconvenient than {{para|size|x270px}}? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 21:33, 16 June 2026 (UTC) ::::::Sorry, I expressed myself a little imprecisely. 😉 {{para|size|177}} is inconvenient, because I have to find this exact non-round number on the page of that specific image. Actually, {{para|size|x270px}} was inconvenient too. My idea is to not write the size number at all. [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 22:10, 16 June 2026 (UTC) :::::::{{replyto|Redrose64}} Wow!!! I tried using a completely crazy parameter {{para|size|orig}}, and it works! The logo is displayed in its native size... Did you personally make any changes to the module? [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 19:12, 12 July 2026 (UTC) ::::::::No, I didn't because I don't accept that any change is necessary. By altering {{para|size|x270px}} to {{para|size|orig}}, all you have done is exchange one invalid value for another. As I noted above, this parameter is documented as accepting an ''integer'' and nothing else is valid. Why did you not simply set {{para|size|177}} as you were advised? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 19:19, 12 July 2026 (UTC) :::::::::{{replyto|Redrose64}} Sorry, but it's not a very good idea to write a different ugly non-round number in every infobox. Now it's almost perfect. I simply enter an invalid parameter value and the result will be a nice, unblurred logo in its original size. By the way, this wasn't possible a few days ago; when I entered an invalid value back then, the logo was displayed with the default width of 250px. Someone must have made some kind of change to the module... [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 08:32, 13 July 2026 (UTC) ::::::::::[[Module:InfoboxImage]] has not been altered in [https://en.wikipedia.org/w/index.php?title=Module:InfoboxImage&action=history the last nine months]. Of the various templates and modules used by [[Template:Infobox international basketball competition]], only ''two'' have been edited since you first opened this thread: ::::::::::*[[Module:Check for unknown parameters]] ([https://en.wikipedia.org/wiki/Module:Check_for_unknown_parameters?action=history history]) - {{diff|Module:Check for unknown parameters|1361588667|1317293842|changes for pushpin maps}} ::::::::::*[[Template:Infobox international basketball competition]] ([https://en.wikipedia.org/wiki/Template:Infobox_international_basketball_competition?action=history history]) - {{diff|Template:Infobox international basketball competition|prev|1361215563|display the word "City" as "Cities" when appropriate}} ::::::::::Neither of these changes can possibly have affected the display of the image. Please note, you should not depend upon undocumented behaviour of invalid parameter values, these might change at any time. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 17:25, 13 July 2026 (UTC) {{od|10}} Standard WP image syntax will not enlarge an image if it has a caption (see [[WP:PICSIZE]]). The code at {{tl|Infobox international basketball competition}} had some silly defaults that did nothing except break this feature. I fixed the Infobox code and added a caption at [[2027 FIBA Women's AmeriCup]], and behold: the image now displays at its original size. — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 01:32, 14 July 2026 (UTC) :Wow [[User:Hike395|Hike]], this is cool !!! I tried removing the "caption" parameter and it still works perfectly... Thank you very much. I think this topic could be closed. [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 11:22, 14 July 2026 (UTC) ::[[User:Hike395|Hike]], could you add the "upright" option to the following template as well? - [[:Template:Infobox tournament season]] - Thanks. [[User:Maiō T.|Maiō T.]] ([[User talk:Maiō T.|talk]]) 20:28, 14 July 2026 (UTC) :::{{Done}} — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 01:43, 15 July 2026 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Module talk
:
InfoboxImage
(section)
Add topic