Jump to content

Module talk:InfoboxImage: Difference between revisions

From Fifth Empire Wiki
m Archiving 2 discussion(s) to Module talk:InfoboxImage/Archive 1) (bot
Line 10: Line 10:
}}
}}
{{archives|search=yes}}
{{archives|search=yes}}
== Multiple images listed on Wikidata ==
Hello. For Wikidata items which has more than one image listed, it generates an error when rendered locally. For example:
* Run <code><nowiki>{{Infobox power station/sandbox}}</nowiki></code> in edit preview of [[Kajaki Dam]]. Note the "300px" instead of an image.
Is there a way to fetch a maximum of only one value (i.e. one image), like the <code>maxvals</code> parameter of [[Module:WikidataIB]]? [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 07:05, 30 March 2019 (UTC)
:Fixed it with [https://en.wikipedia.org/w/index.php?title=Template:Infobox_power_station/sandbox&diff=prev&oldid=890125420 this edit].  The maxvals param was in the wrong location. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:56, 30 March 2019 (UTC)talk-esünkre
::Oops, thanks for fixing my silly error, [[User:WOSlinker|WOSlinker]]. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 13:06, 30 March 2019 (UTC)
== Dealing with tall images ==
Seems like the easiest way would be to add a height constraint by changing:<pre>size = size .. "px";</pre> to <pre>size = size.."x"..size.."px";</pre>Then the actual size shown would be the largest that fits inside a <code>size * size</code> square (or [https://phabricator.wikimedia.org/T26763 at least, roughly so]). ―[[special:contributions/cobaltcigs|cobaltcigs]] 11:44, 8 November 2019 (UTC)


== Category:Pages using deprecated image syntax nominated for deletion ==
== Category:Pages using deprecated image syntax nominated for deletion ==

Revision as of 06:25, 30 August 2021

Template:Talk header User:MiszaBot/config Template:Archives

Category:Pages using deprecated image syntax nominated for deletion

Please see this CfD discussion about Template:Cl. – Jonesey95 (talk) 01:38, 7 October 2020 (UTC)

Broken title parameter in frameless mode if it includes CSS

If the title parameter includes CSS (e.g., via the {{legend}} template), then it displays the plain-text CSS rules into the map tooltip and the image description in the image popup (i.e., the Lightbox-style image mode that pops up after clicking on the image). This is strange considering invoking the image using the [[File:]] syntax directly (in the default mode) doesn't seem to have this issue, but using it in the frameless mode does:

[[File:Individual Taxation Systems.svg|left|thumb|300px|Systems of taxation on personal income {{legend|#00FF00|No income tax on individuals}} {{legend|#0080FF|Territorial}} {{legend|#000080|Residence-based}} {{legend|#FF00FF|Citizenship-based}}]]:

File:Individual Taxation Systems.svg
Systems of taxation on personal income Template:Legend Template:Legend Template:Legend Template:Legend

[[File:Individual Taxation Systems.svg|left|frameless|thumb|300px|Systems of taxation on personal income {{legend|#00FF00|No income tax on individuals}} {{legend|#0080FF|Territorial}} {{legend|#000080|Residence-based}} {{legend|#FF00FF|Citizenship-based}}]]:

Systems of taxation on personal income Template:Legend Template:Legend Template:Legend Template:Legend
Systems of taxation on personal income Template:Legend Template:Legend Template:Legend Template:Legend

{{#invoke:InfoboxImage|InfoboxImage|image=Individual Taxation Systems.svg|size=300px|upright=1.15|alt=Text|title=Systems of taxation on personal income {{legend|#00FF00|No income tax on individuals}} {{legend|#0080FF|Territorial}} {{legend|#000080|Residence-based}} {{legend|#FF00FF|Citizenship-based}}}}:

Text

Getsnoopy (talk) 20:23, 26 December 2020 (UTC)

Template:Ping frameless does not have a caption. See Wikipedia:Extended image syntax#Alt text and caption. The parameter is used for the link title instead. A link title is displayed as plain text. Module:InfoboxImage could examine title and omit using it as link title if it doesn't look like plain text. A tracking category could be added instead. PrimeHunter (talk) 11:41, 13 March 2021 (UTC)
I've update the code to not use the title param if it contains templatestyles. -- WOSlinker (talk) 15:52, 13 March 2021 (UTC)

Template-protected edit request on 8 June 2021

Template:Edit template-protected I would like to have Judge Rose's photo on her Wikipedia profile page updated. I'm passing this request along from Judge Rose herself. I have an updated photo from her that I can send to you but wanted to confirm that I'm in the right place to request this change. 8thcirc (talk) 19:04, 8 June 2021 (UTC)

Template:To File:Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the page Module:InfoboxImage. If possible, please make your request at the talk page for the article concerned. If you cannot edit the article's talk page, you can instead make your request at Wikipedia:Requests for page protection#Current requests for edits to a protected page. P.I. Ellsworth  ed. put'r there 22:55, 8 June 2021 (UTC)

none options for link and alt

We should probably add none options for link and alt. It would be useful in places such as {{archives}} but likely other non-infobox templates using this as well since this is the most versetile image handling template. --Trialpears (talk) 15:14, 11 August 2021 (UTC)

Seems like a good idea. -- WOSlinker (talk) 21:10, 11 August 2021 (UTC)

Module breaks when there are multiple images on Wikidata

In a recent edit the Module broke because there were three different images set on Wikidata, and the Module tried interpreting them as one, which doesn't work. Is there a way to recognize this and use them all separately? -- Asartea Talk | Contribs 15:49, 29 August 2021 (UTC)