Jump to content

Help talk:Extended image syntax

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 6 days ago by Redrose64 in topic customizing li

Specifying image dimensions for OpenGraph metadata

[edit]

The article on Kat Abughazaleh has an image, a portrait photo of the subject that a contributor cropped from a larger photo, in the infobox. When social media sites extract metadata from that page via OpenGraph and prefer a landscape-oriented image (example), the default dimensions/crop are sometimes pretty suboptimal, displaying the person's nose and mouth but truncating the eyes.

Off the top of my head, I can imagine a few ways of fixing this:

  1. Include two images on the page; use class=pageimage and class=notpageimage to override the Page Images selection criteria so that one goes into the social media preview and the other is actually displayed to those who visit the page
  2. replace the current image with the prior uncropped image, use {{CSS image crop}} or {{Annotated image}} to crop it appropriately for portrait display in the infobox, so that the re-cropping by OpenGraph has more to work with

I welcome advice! Sumana Harihareswara 15:24, 13 May 2025 (UTC)Reply

Centre a caption?

[edit]

Is there a way to centre align (or centre justify) a caption below an image? Spideog (talk) 14:48, 5 June 2025 (UTC)Reply

@Spideog try at wp:teahouse Metallurgist (talk) 13:24, 31 December 2025 (UTC)Reply
If I'm understanding you question correctly, you can use {{center}}. For example [[File:file-name.jpg|thumb|{{center|picture caption}}]]Bruce1eetalk 13:38, 31 December 2025 (UTC)Reply
Thank you, @Bruce1ee. That works. Spideog (talk) 20:32, 31 December 2025 (UTC)Reply

Requested move 28 November 2025

[edit]
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.

The result of the move request was: moved. Moved as an uncontested request with minimal participation. If there is any objection within a reasonable time frame, please ask me to reopen the discussion; if I am not available, please ask at the technical requests page. (closed by non-admin page mover) Jeffrey34555 (talk) 08:18, 10 December 2025 (UTC)Reply


Wikipedia:Extended image syntaxHelp:Extended image syntax – This feels like it would work better in the help namespace - it is overall structured as a how-to guide, the notice template at the top introduces it as a help page and the introductory sentences themselves also introduce the page as a help guide. interstatefive  02:02, 28 November 2025 (UTC)  Relisting. Jeffrey34555 (talk) 00:22, 5 December 2025 (UTC)Reply

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

customizing li

[edit]

customizing <li>

Is it possible/advisable to replace the   in lists with an image or other markup? I see {{colorbull}} but it seems to be for bullets outside of lists. Arlo James Barnes (pro-∪nion) 17:54, 8 August 2026 (UTC)Reply

I'm sure that I have answered this before, on another page. But why are you asking here? This is the page for discussing improvements to the page Help:Extended image syntax. --Redrose64 🌹 (talk) 18:18, 8 August 2026 (UTC)Reply
Apologies, I just thought it would be the sort of thing to get mentioned at this help page (use of an image not in the context of a thumbnail box) and was mildly surprised it wasn't. Where would be a better place for the question? Arlo James Barnes (pro-∪nion) 20:11, 8 August 2026 (UTC)Reply
Bullets are characters, not images. That said:
  • item 1
  • item 2
  • item 3
  • item 4
Use with caution. – Jonesey95 (talk) 20:15, 8 August 2026 (UTC)Reply
Technically, the bullets in lists can be replaced with images. Two places where this is done on Wikipedia include the little triangles on any category page that has sub-categories, such as Category:Wikipedia how-to#Subcategories; and the "languages" list for any article that, on another language, is their equivalent of either Featured article or Good article. The second one is best seen in MonoBook skin, for example Elizabeth II in MonoBook skin. Here, the FAs have a "gold" (orange) star, the GAs have a "silver" (grey) star, and everything else gets the default square bullet. In both cases (category triangles and language stars), it's done by means of CSS. --Redrose64 🌹 (talk) 20:45, 8 August 2026 (UTC)Reply
Ah, thank you. I see in the source
<li class="interlanguage-link interwiki-es badge-Q17437796 badge-featuredarticle mw-list-item" title="featured article" style=""><a href=[...] class="interlanguage-link-target">Español</a></li>
where the Q-number is featured article (Q17437796), and in the styles
::marker{ list-style-image: url(/w/extensions/WikimediaBadges/resources/images/badge-golden-star.png?ed948);} Arlo James Barnes (pro-∪nion) 21:19, 8 August 2026 (UTC)Reply
@Jonesey95: Your demo doesn't work for me. Using both the latest Firefox on a Windows box, and Safari on an iPad, the bullets are the default, not a bell. --Redrose64 🌹 (talk) 20:59, 8 August 2026 (UTC)Reply
I get bells on desktop Firefox (Debian). Arlo James Barnes (pro-∪nion) 21:20, 8 August 2026 (UTC)Reply
Aha, I found it: User talk:Robertpedley#c-Redrose64-20260130134400-Malaria --Redrose64 🌹 (talk) 21:27, 8 August 2026 (UTC)Reply