Jump to content

Help talk:Extended image syntax

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

[edit]

The |page= parameter allows selecting a specific page in a DjVu/PDF file when displaying an image (example: [[File:Alice in Wonderland.djvu|thumb|page=5|Page 5 from ...]]). However, this does not work for linking to a specific page:

  • [[:File:Alice in Wonderland.djvu|page=5|p. 5]] gives "page=5|p. 5" with a wrong text and a link to the whole file instead of its specific page.
  • [[:File:Alice in Wonderland.djvu?page=5|p. 5]] gives "p. 5" with correct text but a wrong link with percent-encoded ? symbol.

Is there a valid wiki syntax or a helper template to achieve this without using an "external link" ([https://en.wikipedia.org/wiki/File:Alice_in_Wonderland.djvu?page=5 p. 5])? — Mikhail Ryazanov (talk) 21:50, 17 March 2025 (UTC)[reply]

Found the template myself (accidentally): {{PDF page link|file=Alice in Wonderland.djvu|page=5|text=p. 5}} gives "p. 5". No wiki syntax apparently exists. — Mikhail Ryazanov (talk) 02:52, 24 March 2025 (UTC)[reply]

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]

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.