Template talk:Main page image
Protected edit request on 22 October 2021[edit]
This edit request to Template:Main page image and Template:Main page image/DYK has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Update from sandbox: Special:Diff/1051326333. This swaps out the nested template approach for a direct call to {{#invoke:string|replace}}. The reason for this is both general code simplification/modernization, and to avoid spreading cascade-protection out to templates that would not otherwise be protected. (In particular, the second reason is why the equivalent {{replace}} is not used.) This has been tested in the testcases page; the original tests were adequate to test this feature, but I have updated them to use Template:Test cases which verifies that there is no change at all to output for the tested inputs. User:GKFXtalk 10:59, 23 October 2021 (UTC)
- Update: please instead copy Special:Permalink/1052352524 to Template:Main page image, and also copy Special:Permalink/1052354348 to Template:Main page image/DYK. This includes the edit request above, and also fulfils the feature request below. User:GKFXtalk 18:19, 28 October 2021 (UTC)
- Done — Martin (MSGJ · talk) 22:18, 31 October 2021 (UTC)
Thumbtime[edit]
I'm submitting a DYK nomination with a video, and I'd like to use the thumbtime parameter to give it a better image. Doing that in a hacky way seems to affect the size, though. {{main page image/DYK|image=Money Musk at Youth Dance Weekend 2019.webm{{!}}thumbtime=60|caption=Hacky way}}
results in the smaller image at right, compared to the normal-sized one beside it. I'm not sure why that's happening, but could a |thumbtime=
parameter be added to (hopefully) resolve it? Cheers, {{u|Sdkb}} talk 17:44, 28 October 2021 (UTC)
- Done in sandbox and tested at testcases page. Please could an administrator copy both changes to the main templates? User:GKFXtalk 18:15, 28 October 2021 (UTC)
Lua errors[edit]
Please can you make it fail gracefully when the image parameter is blank. I know it is not supposed to be used without an image specified but sometimes a bot comes along and removes the image. See Template:Did you know nominations/Fredericka Martin. Thanks — Martin (MSGJ · talk) 19:56, 4 November 2021 (UTC)
- @MSGJ: I have made an edit request at Module talk:Main page image. User:GKFXtalk 23:33, 4 November 2021 (UTC)
Dark mode fixes[edit]
It is requested that an edit be made to the fully protected template at Template:Main page image. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to fully protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Implement change in sandbox, which explicitly defines text color with a CSS variable to support dark mode. Snowmanonahoe (talk · contribs · typos) 22:11, 20 May 2024 (UTC)
- Ah, not a color variable. Didn't notice the edit made just after mine. Seems to work anyway. Snowmanonahoe (talk · contribs · typos) 22:13, 20 May 2024 (UTC)