Talk:Main Page/motd

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

noinclude

[edit]

{{editprotected}}

Please change

[[Category:Featured pictures on Wikimedia Commons]]

to

<noinclude>[[Category:Featured pictures on Wikimedia Commons]]</noinclude>

-- ChongDae (talk) 09:40, 13 March 2012 (UTC)[reply]

✓ Done -- Common Good (talk) 19:36, 21 March 2012 (UTC)[reply]

Polish translation of "No media of the day today" message

[edit]

|pl=Plik multimedialny na dziś nie został wybrany. {{Edit request}} --jdx Re: 10:37, 18 September 2016 (UTC)[reply]

✓ Done --Hedwig in Washington (mail?) 22:17, 19 September 2016 (UTC)[reply]

Spanish translation

[edit]

{{Edit protected}} |es=Hoy no hay archivo multimedia del día. Jarould [talk] 18:54, 20 August 2017 (UTC)[reply]

✓ Done Thanks for helping! --jdx Re: 23:17, 24 August 2017 (UTC)[reply]

SVG magnifier

[edit]

{{Editprotected}}

Please change [[File:Magnify-clip.png| to [[File:Magnify-clip (sans arrow).svg|14px|. Please also protect File:Magnify-clip (sans arrow).svg against reuploading before the change, as this is a main page image, but will not be constantly cascade-protected (only when there is media of the day, so a vandal can upload something when there’s no MOTD, and it will appear on the main page when there is one). Protection against editing is not necessary, as the file description page is not linked (the MOTD’s description page is linked instead). Protection against moving seems also not necessary, as only filemovers and admins can move files anyway. Thanks in advance, —Tacsipacsi (talk) 19:25, 1 February 2018 (UTC)[reply]

✓ Done Awesome! Thank you! ~riley (talk) 06:53, 22 February 2018 (UTC)[reply]
@~riley: Thanks, but please also put the padlock icon ({{Protected}}) on the file description page. —Tacsipacsi (talk) 21:27, 22 February 2018 (UTC)[reply]
@Tacsipacsi: It's worth noting that in the time it took you to write this request, you could have done it yourself. Nonetheless, thanks for bringing it to my attention. I have too many tabs on the go it seems, found the edit page for the document left open and unsaved. ~riley (talk) 06:08, 23 February 2018 (UTC)[reply]
@~riley: I would do it myself if I could, it would be a lot easier indeed. But I couldn’t, because it’s used on the main page so it’s cascade-protected, which means not only that I can’t reupload it, but also that I cannot edit the description page (see phab:T24521). —Tacsipacsi (talk) 07:57, 23 February 2018 (UTC)[reply]

Tomorrow's MOTD components

[edit]

Tomorrow's MOTD components that will be transcluded by tomorrow's MOTD are now protected using cascading protection at Main Page/motd tomorrow. Created due to Commons:Administrators'_noticeboard#Main_page_issues. —RP88 (talk) 03:42, 24 September 2018 (UTC)[reply]

Use <div>

[edit]

{{Editprotected}}

Please change this page to

<div class="{{#switch:{{{float|center}}}|left=floatleft|right=floatright|center=}}" style="width:{{{width|300}}}px;text-align:center;{{#ifeq:{{{float|center}}}|center|margin:0 auto;}}">
{{#ifexist:File:{{Motd/{{#time:Y-m-d|today|en}}}}|[[File:{{Motd/{{#time:Y-m-d|today|en}}}}|{{{width|300}}}px|{{#ifexist:Template:Motd/{{Motd/{{#time:Y-m-d|today|en}} thumbtime|thumbtime={{#time:Y-m-d|today|en}} thumbtime}}}}]][[File:Magnify-clip (sans arrow).svg|14px|link=File:{{Motd/{{#time:Y-m-d|today|en}}}}|right]]{{-}}|{{LangSwitch
|cs=Pro dnešek nebyl vybrán soubor dne.
|de=Keine Mediendatei des Tages vorhanden.
|en=No media of the day today.
|es=Hoy no hay archivo multimedia del día.
|fa=امروز رسانه نداریم.
|fr=Pas de média du jour aujourd’hui.
|mk=Нема снимка за денес.
|ml=ഇന്ന് 'ഇന്നത്തെ മീഡിയ' ഇല്ല.
|pl=Plik multimedialny na dziś nie został wybrany.
|sv=Det finns ingen Dagens mediafil idag.
}}}}
{{lang|{{{lang|en}}}|{{ {{#ifexist:Template:Motd/{{#time:Y-m-d|today|en}} ({{#ifeq:{{{lang}}}|no|nb|{{{lang|en}}}}})|Motd/{{#time:Y-m-d|today|en}} ({{#ifeq:{{{lang}}}|no|nb|{{{lang|en}}}}})|{{#ifexist:Template:Motd/{{#time:Y-m-d|today|en}} ({{#ifeq:{{{fallback_lang}}}|no|nb|{{{fallback_lang|en}}}}})|Motd/{{#time:Y-m-d|today|en}} ({{#ifeq:{{{fallback_lang}}}|no|nb|{{{fallback_lang|en}}})}}|empty}}}}}} }}&nbsp;
{{#ifeq:{{{lang|en}}}|en||<sup dir="ltr">{{edit|Template:Motd/{{#time:Y-m-d|today|en}} ({{{lang|en}}})}}&nbsp;({{{lang|en}}}){{#if:
{{{fallback_lang|}}} |,&nbsp;{{edit|Template:Motd/{{#time:Y-m-d|today|en}} ({{{fallback_lang}}})}}&nbsp;({{{fallback_lang}}}) |}}{{#ifeq:
{{{lang|en}}} | en | |,&nbsp;{{edit|Template:Motd/{{#time:Y-m-d|today|en}} (en)}}&nbsp;(en)}}</sup>}}
{{lang|{{{lang|en}}}|{{#ifexist:Template:Motd/help/{{{lang|en}}}|{{Motd/help/{{{lang|en}}}}}}}}}
</div>
<noinclude>[[Category:Featured pictures on Wikimedia Commons]]</noinclude>

This uses a <div> instead of a one-column table. I also changed the date magic words to #time, which is shorter and provides a cleaner way to enforce using English (i.e. ASCII) numbers. Thanks in advance! —Tacsipacsi (talk) 22:20, 6 June 2019 (UTC)[reply]

✓ Done 4nn1l2 (talk) 23:47, 6 June 2019 (UTC)[reply]

preload

[edit]

{{Editprotect}}

add

|preload=Template:Motd/{{#time:Y-m-d|today|en}} (en)

to the first {{Edit}}, just like Main Page/potd. this makes translation easier by preloading the english description template when user tries to create new translation to their language. RZuo (talk) 17:56, 6 December 2022 (UTC)[reply]

✓ Done Awesome! Thank you! —‍Mdaniels5757 (talk • contribs) 00:46, 8 February 2023 (UTC)[reply]

Problems playing the file?

[edit]

{{Editprotect}} i think this line (Template:Motd/help/en) should be differentiated from the caption, so i suggest this edit:

for

{{lang|{{{lang|en}}}|{{#ifexist:Template:Motd/help/{{{lang|en}}}|{{Motd/help/{{{lang|en}}}}}}}}}

insert an empty line before, and wrap it with double apostrophe, so that it starts its own line and becomes italic. RZuo (talk) 17:00, 5 March 2023 (UTC)[reply]

RZuo I am sorry but you have lost me. Can you provide wikitext of the full altered page? --Jarekt (talk) 03:28, 3 June 2024 (UTC)[reply]
@Jarekt https://commons.wikimedia.org/w/index.php?title=Commons:Sandbox&action=edit&oldid=881001806 RZuo (talk) 05:52, 3 June 2024 (UTC)[reply]
RZuo, Thank you. ✓ Done --Jarekt (talk) 12:24, 3 June 2024 (UTC)[reply]

Thumbtime doesn't work on Main page

[edit]

See today's Main page – the configured thumbtime doesn't work but it does work at Template:Motd/2024-07-15 and COM:MOTD. Why is that – please fix it. I think this template is used for it. I meant to post this at Template talk:Motd, maybe that would be the better place to ask about it. Prototyperspective (talk) 15:31, 15 July 2024 (UTC)[reply]

The three use three independent implementations (the main page uses this, COM:MOTD uses {{Motd}}, and Template:Motd/2024-07-15 uses {{Motd filename helper}}), just for fun. As far as I can decipher the code, the problem is that this implementation omits thumbtime=, i.e. it uses [[File:Ikusgela-Euskal_herritarrak_Frantziako_Tourrean.webm|0]] instead of [[File:Ikusgela-Euskal_herritarrak_Frantziako_Tourrean.webm|thumbtime=0]]. —Tacsipacsi (talk) 17:28, 16 July 2024 (UTC)[reply]
Thanks a lot for your investigations and this info.
{{Edit request}} (Done - Jmabel ! talk 23:26, 2 August 2024 (UTC))[reply]
Please add thumbtime= to the template so that the configured thumbtime actually works (again?). Prototyperspective (talk) 17:44, 16 July 2024 (UTC)[reply]
I found Commons:Village pump/Archive/2024/07#Urgent: As Media of the Day predestined video with all white preview image which seems to be about the same thing – did these changes cause the problem or did you solve the problem already somewhere else? @Speravir, Koavf, and Geohakkeri: Prototyperspective (talk) 10:54, 19 July 2024 (UTC)[reply]
I never saw the final product transcluded, so I don't know. For what it's worth, the thumbnail that I see on this page now is perfectly fine and I think actually pretty good. —Justin (koavf)TCM 10:57, 19 July 2024 (UTC)[reply]
Yes, but that isn't the case for all videos since the chosen thumbnail is rather accidental so the capability to specify the thumbtime should work. Moreover, if it doesn't work there shouldn't be advanced options for it. Please somebody get the thumbtime working again. Prototyperspective (talk) 10:59, 19 July 2024 (UTC)[reply]
The code
{{#ifexist:Template:Motd/{{Motd/{{#time:Y-m-d|today|en}} thumbtime|thumbtime={{#time:Y-m-d|today|en}} thumbtime}}}}
is rather nonsensical and should be:
{{#ifexist:Template:Motd/{{#time:Y-m-d}} thumbtime|thumbtime={{Motd/{{#time:Y-m-d}} thumbtime}}}}
which produces today thumbtime=0:00:22.0. --Geohakkeri (talk) 11:35, 19 July 2024 (UTC)[reply]

What is this page about?

[edit]

@RZuo, 4nn1l2, Jarould, Jdx, Jarekt, Mdaniels5757, and Ebrahim: What is this page about? Technically it is a gallery page. But it shows only one file, and then for me it is not a gallery page that presents readers with a structured and meaningful collection of media (purpose of a Commons gallery page). I tend to make a deletion request for it, but first I would like to have an answer, because it has a long history with lots of changes. JopkeB (talk) 09:49, 2 August 2024 (UTC)[reply]

It’s a part of the main page – basically a template. --Geohakkeri (talk) 09:53, 2 August 2024 (UTC)[reply]
If it is a template, why does it not have the format: Template:Main Page? JopkeB (talk) 08:00, 3 August 2024 (UTC)[reply]
JopkeB, as Geohakkeri said this, and Main Page/potd are templates, which for historical reasons are not in template namespace. Before 2013 Main Page did not use Template:Main Page Template but did use those 2 subpages. When Template:Main Page Template was added, we did not change that basic structure and just kept calling Main Page/potd and Main Page/motd from the template and while making them more and more template like. Perhaps it might be a good idea to move those 2 pages to proper namespace. It makes no difference in performance but is a bit more clear. --Jarekt (talk) 21:00, 4 August 2024 (UTC)[reply]
Thanks for the explanation. Yes, I think it is a good idea to move those 2 pages to proper namespaces. Who can do that? Does a procedure apply? Normally I rename files, galleries and categories myself, but this looks next level, too tricky/risky, more for someone who is used to work with templates, has an overview of what should be done and how the involved pages are intertwined. JopkeB (talk) 03:38, 5 August 2024 (UTC)[reply]

Edit request (2024-08)

[edit]
It is requested that an edit or modification be made to this protected page.
Administrators/template editors: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.

Enhancing999

Similar to Main Page/potd, please add

<noinclude>[[Category:Media of the day]]</noinclude>

This should make it disappear from Special:UncategorizedPages. Enhancing999 (talk) 13:44, 7 August 2024 (UTC)[reply]