Template talk:Potd/Day

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

Langage codes

[edit]

I prose to delete some language codes from the "Picture of the Day" templates. Evidently, most of the listed languages are never used (as an insider at eo:, I am sure, translates the texts into Esperanto; most probably other codes like af, als, br, gu, hy, sr, tr.lo are never used). Just tink of the KBs that all those red liks take to get the page (and to giv it, fom te pont of view of the sever!). - Slavik IVANOV 20:39, 1 June 2006 (UTC)

Translation

[edit]

It is harder to translate the descriptions now that there is only links to languages that already has a translation. The links under the images are only in one language per month. It works fine if I want to translate the descriptions for September and October into English or for November into Swedish. But adding new translations for other languages it is not so easy anymore (The "add language" link does not work). /81.229.40.196 16:44, 30 August 2006 (UTC)[reply]

If you are a multi language translator you can use this page:

Template talk:Potd/Month/full (for currrent year/month)

Or simply add this to your sandbox (you'll have to log in to have your page of course):

{{Potd/Month/full
| year=2006
| month=09
| lang=en
}}

The above code will give you a page for next month. Currently it is not working very well for leap years (February is assumed to be 29 days long), but this will only add one red link on the bottom of the page.

Hope this will be convenient for you. Nux (talk) 18:14, 30 August 2006 (UTC).[reply]

The template was corrected to handle all months correctly, including on leap years; it also contains a compact TOC at the top to allow finding one day faster. Verdy p 14:32, 18 December 2006 (UTC)[reply]

A simpler template allows you to show only the available translations on the right side, but to force the display of the language of your choice below the image. The generated page is much simpler to use like this, as it is not encumbered with all missing translations in so many other languages:

{{Potd/Month
| year=2007 
| month=01
| lang=fr <!-- the language of your translations -->
}}

So to add a translation just use this template in your sandbox, and add the missing translation by clicking the link below the image on the left, instead of searching your language in the long list on the right as before (with this template your language will not appear inthat list unless it already has a translation). Verdy p 16:20, 18 December 2006 (UTC)[reply]

Nearly the same picture as 2006-12-06

[edit]

I think the pictures shouldn't have same/similar themes

Pay some respect

[edit]

I wanted to say please add the author's name under each image for POTD template. We want to know who created the image without looking at the image page. Thank you. --Arad 23:45, 12 February 2007 (UTC)[reply]

adding hebrew

[edit]

I want to add in the current "picture of the day" (piotr szulkin) the hebrew name of the director: פיוטר שולקין. H20 13:58, 26 April 2007 (UTC)[reply]

How to add?

[edit]

Template:Potd/2007-07-07 (hr) --Orlovic (talk) 16:12, 6 June 2007 (UTC)[reply]

Adding Bengali (bn)

[edit]

How to add image caption in Bengali (bn)?--Bellayet 15:47, 18 September 2007 (UTC)[reply]

Right-to-left lay-out problem

[edit]

I understand that some languages go with right-to-left readingdirections, but maybe there's still a good possibility to get more unity in the overall lay-out and maintain the right-to-left reading direction. Because in my opinion having the 'li' bullet on the right side of the page seems not important for understanding the description, as long as the description itself is written in right-to-left direction. So instead of adding the dir="rtl" to the <li> tag you could just add a <span>-tag within the <li> with the correct readingdirection. This way the lay-out stays okay and the rtl-texts are still perfectly readable.

An example:

  • Vrou
  • مرأة
  • Muller
  • Woman

 Emil·76  12:53, 27 December 2007 (UTC)[reply]

Adding Bosnian (bosanski/bs)

[edit]

Could somebody add the Bosnian language to the Potd caption? Bushido92wiki 19:52, 21 January 2008 (UTC)[reply]

Added it. Bushido92wiki 20:12, 21 January 2008 (UTC)[reply]

Adding Croatian (hr)

[edit]

Could somebody add the Croatian language to the Potd caption? -- Samoborac 17:33, 6 February 2008 (UTC)[reply]

Added it. -- Samoborac 17:32, 21 February 2008 (UTC)[reply]

Adding Kapampangan (pam)

[edit]

May I request that somebody add Kapampangan (pam) to the POTD caption? Katimawan2005 12:42, 1 March 2008 (UTC)[reply]

Adding Yoruba (yo)

[edit]

Can somebody please add the Yoruba language to the POTD caption? Demmy 18:25, 8 February 2008 (UTC)[reply]

Never mind. I've added it.Demmy 19:48, 8 February 2008 (UTC)[reply]

Please add Greek language

[edit]

Language code is "el". Regards. NikoSilver 23:09, 10 March 2008 (UTC)[reply]

Wrong year in Delacroix caption

[edit]

Hello. FYI, all the POTD captions for Image:Eugène Delacroix - La liberté guidant le peuple.jpg give 1833 instead of 1830 (cf. en:Liberty Leading the People, etc.) ; also, the original title has a cap on "Liberté" (cf. fr:La Liberté guidant le peuple, etc.)

Please add marathi Language

[edit]

Language code mr. Regards --Kaustubh (Talk) 04:47, 24 April 2008 (UTC)[reply]

Please add norsk language (bokmål)

[edit]

..at least for this picture Colorado River - 03 september 2008

the

Norsk bokmål: (missing text)

version would be:

"Coloradoelven, nær Page, Arizona i Amerikas forente stater."

Thank you.Adrille (talk) 20:22, 1 July 2008 (UTC)[reply]

ifexsit

[edit]

I noticed that a year ago all the #ifexsit ParserFunctions were removed. I think they should be used again, cause it's hard to navigate on the POTD page with so many red links. If the limit is still 2000/page, using this function on 50 from the 60+ languages here would be safe enough. Alonr (talk) 18:46, 2 October 2008 (UTC)[reply]

I will try Armenian (am), or may be someone else can do that

Add Maltese version

[edit]

Can the Maltese version of the Potd caption be added.. thanks.. Chrisportelli (talk) 12:26, 26 May 2009 (UTC)[reply]

done manually. Chrisportelli (talk) 10:40, 30 May 2009 (UTC)[reply]

Latvian (lv)

[edit]

Please add Latvian to the list. --Papuass (talk) 08:31, 30 June 2009 (UTC)[reply]

Bangla (bn)

[edit]

Please add Bengali, because this commons "Picture of day" is using in the bn wikipedia main page as well. so, we need update this potd with caption. Thanx. — T@nv!r_ (Talk | Contribution) 16:46, 23 October 2009 (UTC)[reply]

Well, friends, I've added this (did I do any wrong?), so thank you all. — T@nv!r_ (Talk | Contribution) 17:11, 23 October 2009 (UTC)[reply]


Kapampangan (pam)

[edit]

Please add Kapampangan to your list. We have tried to consistently give Kapampangan translations of the caption for many months now. Thank you. Katimawan2005 (talk) 14:22, 8 November 2009 (UTC)[reply]

Silesian (szl)

[edit]

Please add a Silesian (szl):

Ślůnski: (missing text)

-- Pudelek (talk) 13:27, 23 November 2009 (UTC)[reply]

ifexist

[edit]

I've added this per alonr (section a few above). It improves the format so much, and surely modern servers can handle a few of these for such an important purpose :-) ... here's hoping I don't get reverted! --99of9 (talk) 04:48, 15 January 2010 (UTC)[reply]

Macedonian (mk)

[edit]

Hello. Can you please add Macedonian (mk). We are using POTD on our Wikipedia's Main Page, so it must be added asap so that we can translate the captions for April's images. Thanks. --B. Jankuloski (talk) 10:13, 21 March 2010 (UTC)[reply]

It's still in there, it's only moved into the {{Other languages}} box in case that the subpage isn't a Macedonian one (i.e. on pages named Commons:Potd/YYYY-MM (mk)). --The Evil IP address (talk) 10:25, 21 March 2010 (UTC)[reply]
Ok, sorry, it really wasn't shown for some reason. It worked perfectly in my tests, but anyway, it's Fixed now. You might need to refresh your cache to see the change. --The Evil IP address (talk) 10:51, 21 March 2010 (UTC)[reply]

Yes, it's all fine now. Thanks a lot for the effort! --B. Jankuloski (talk) 13:31, 21 March 2010 (UTC)[reply]

Common Language vs Other Language

[edit]

Now that the language list has been shortened and the remainder put in a drop down menu, I suggest a guideline for inclusion. If a translation is available for every POTD in the previous calendar month, a language can be included in the regular language list. If a language is missing more than 5 image translations in the previous calendar month, a language can be moved to the irregular list. How does that sound? --99of9 (talk) 22:45, 24 March 2010 (UTC)[reply]

Probably a good idea. When I created the new design, I have looked at Category:Potd templates by language to see which languages have the most translations. Furthermore, I made sure that the specified language is always shown, because it would be pretty disappointing to go to a Potd page in one language, but not being able to view the language. Another idea might be to always show the user interface language (can be found out via {{int:lang}}), but considering that the templates aren't shown on file pages and that most user's captions are already there, it might not be worth it. --The Evil IP address (talk) 21:15, 2 April 2010 (UTC)[reply]

Preload for non-existent POTD translations

[edit]

I propose to change red links for not yet translated POTDs to preload the next template:

{{Potd description|1=Text|2=Langcode|3=Year|4=Month|5=Day}}

It's much more comfortable for translators, I suppose. Wizardist (talk) 20:18, 2 April 2010 (UTC)[reply]

I would also support this, but the problem is that only 500 #ifexists can be used on the page. However, I'm planning to write a Potd helper template (see User:The Evil IP address/test) that you can simply subst, so that you don't have to worry about the formatting. However, it currently doesn't work yet; probably I'm gonna have to ask Rocket000 for help. --The Evil IP address (talk) 21:10, 2 April 2010 (UTC)[reply]
My first idea was to write just a JS for myself which would apply a new button to the toolbar and insert what I needed onClick. But how do you reach the 500-ifexists limit? I suppose there's only one check per language. Am I wrong? Wizardist (talk) 14:01, 4 April 2010 (UTC)[reply]
Because it's used within {{Potd/Month}}, which is used on pages of Category:Commons:Potd. This would increase the number of #ifexists to the 31st, meaning that we could only show ~ 16 languages. This is not doable in my opinion. --The Evil IP address (talk) 16:04, 4 April 2010 (UTC)[reply]
Aha, got it. Forgot about 30 more days in a month :) Wizardist (talk) 19:53, 4 April 2010 (UTC)[reply]
I fixed it. The #ifeqs were towards a fairly minor goal, which was easy to work around with a single #switch. And there were actually two checks per language per day, due to some REALLY stupid coding.
However, there is an issue: a revamp of MotD is likely to affect these templates, and may need some of those #ifeqs (it was agreed that translation should be kept in one place, meaning that there'll be combined pages. Let's hold off on this until it's agreed what format the combined translation page should take? Adam Cuerden (talk) 03:53, 29 April 2010 (UTC)[reply]

Fixes

[edit]

Long story short: I removed a ton of bad code, while keeping pretty much all functionality. Those interested in details read below.

There was some frankly horrifyingly bad code in here - literally hundreds of fairly high-processing power #ifeq checks were made just to put a minority language into alphabetical order in the main list, if it was the user's selected language, and then all the languages were checked AGAIN to suppress the appearance in the minor language list if it was in the main list.

It was not horrible code, the true story was that Commons has a sever bug not found in other MediaWiki servers (or it has been tweaked specifically and is now late compared to other wikis), in the way it transcludes thnigs and computes its memory need.
The code was perfectly correct, even before I attempted to comment out the tests. Unfortunately, due to these server bugs, the list of languages must still remain static, and limited, and will always attempt to load and display all languages, even if there is just a few of them translated. This causes the page to be extremely long to process because a single template generating a full month can easily overlow the server memory when its generated code gets copied from the month template, to the main page. verdy_p (talk) 11:22, 26 May 2010 (UTC)[reply]

Instead, if the user is at one of the pages that use a minority language, it's now put at the top of the list in bold. This is done using a single, simple #switch statement that checks whether {{{lang}}} is set, and, if so, whether it's one of the languages in the main list (which shouldn't be displayed twice).

Your assumption is incorrect, this was not done for that reason (the order is not relevant to the problem that occured).
  • The main problem is that this template, if used, should only attempt to display a single language, not all of them
  • Translation can be performed, if needed, from another page for each day that will list all languages, or directly from a full month page, but only for one (or two?) source foreign language, displaying nothing else if the descriptions are already translated in the target language.
But given the current code, it is simply impossible to display existing translations for "minority" languages (are Hindi, Urdu or Arabic a "minority" language ?).
And only a dozen of languages can effectively be supported now (and they will nunecesarily be always be displayed to everyone). verdy_p (talk) 11:22, 26 May 2010 (UTC)[reply]

Given this was only a few more languages being added away from breaking, this is a pretty necessary improvement. As an added benefit, PotD setup pages should now load up in a fraction of the time. Adam Cuerden (talk) 03:23, 29 April 2010 (UTC)[reply]

Absolutely NO template should generate such a large amount of data (currently a single template uses more than 1 MB alone, because of the intermediate copies).
The full month template should then be inlined and not used at all, and this will fix the memory need (and long generation time). verdy_p (talk) 11:15, 26 May 2010 (UTC)[reply]

Kindly add [Sindhi language] (Sindhi/sd) (lang-sd) to potd?

[edit]

Could someone add the Sindhi language [1] to the Potd caption?

Please Add Odia (language code "or")

[edit]

Hi, can you please add Odia "or"? Thanks in advance! --Subhashish Panigrahi (talk) 04:34, 6 February 2017 (UTC)[reply]

Add Indonesian?

[edit]

Hi there admins! Would you please add Indonesian (id) in the main Potd caption? I'm glad to help with the translations if you all have any difficulties with it. Thanks in advance! AverageSampoernaAEnjoyer (talk) 13:58, 17 July 2022 (UTC)[reply]