Module talk:Probox

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 11 months ago by Uzume in topic Avoid global variables

Translation?[edit]

Hi!

How could this template be internationalised ? :)

Jean-Fred (talk) 11:09, 12 August 2015 (UTC)Reply

+1 (asking for whole WMDE) --Cornelius Kibelka (WMDE) (talk) 20:28, 12 August 2015 (UTC)Reply
I thought it had been (though I never tested that feature extensively). Looks like it's not working as advertised, though. Let me poke around a bit over the next week and I bet I can get it up and running. I'll be working with this learning pattern while I test. Once I get translation working, I'll update the documentation as well, so that the process for setting up a Probox for translation in a given language is clear. Jmorgan (WMF) (talk) 20:40, 13 August 2015 (UTC)Reply
Update. Jean-Frédéric and Cornelius Kibelka (WMDE), that was actually slightly easier than I thought it would be. The titles etc. in the infobox are now translatable. You can translate the titles for Learning Pattern infoboxes here and IdeaLab infoboxes here. Here's an example in Spanish. Note that this will only work if the page itself is under translation--it doesn't look at your userlanguage, it checks whether the infobox is on a valid language subpage (like "Grants:Learning_patterns/My_great_pattern/de"). I'll work on updating the documentation soon so that it's easier for others to work on this. Thanks for the prompting! And let me know if something seems broken still. Cheers, Jmorgan (WMF) (talk) 23:18, 13 August 2015 (UTC)Reply
Hi Jmorgan (WMF), thanks a lot, that looks really good! :) I've already translated the box itself. Now, when I try to translate the content of the box, it gives me this error "Unknown error: "tpt-unknown-page"" and doesn't save the translations. Any idea how to fix that? --Cornelius Kibelka (WMDE) (talk) 09:21, 14 August 2015 (UTC)Reply

"this project could really use..."[edit]

Phrase "this project could really use..." should be transferred from Module:Probox code to translatable area. --Kaganer (talk) 12:13, 19 August 2015 (UTC)Reply

I agree. I'll work on it. Jmorgan (WMF) (talk) 20:43, 19 August 2015 (UTC)Reply
Update: This should be done now. Can be translated here. If an IdeaLab infobox includes the parameter more_participants=YES, then the text "this project needs..." will be displayed. If the infobox is viewed on langprefix subpage and a translation exists in that language, the text will appear in translation. Cheers, Jmorgan (WMF) (talk) 21:55, 21 August 2015 (UTC)Reply

two or more contributors[edit]

Hi Jonathan,
just a question: At WMDE it happens from time to time that colleagues are writing Learning Patterns together, e.g. two colleagues from two different departments. Unfortunately, at the moment, you can only name one creator. Is there a possibility to change that? Best, --Cornelius Kibelka (WMDE) (talk) 09:28, 31 August 2015 (UTC)Reply

Hi Cornelius Kibelka (WMDE). You actually can specify multiple creators--up to nine of them. It's just not documented for learning patterns (yet - I'll fix that). The 'creator' field accepts numbered parameters. I added myself as creator2 on one of your patterns as an example. Cheers, Jmorgan (WMF) (talk) 16:44, 31 August 2015 (UTC)Reply
Oh, that's wonderful. Thanks a lot, Jonathan. --Cornelius Kibelka (WMDE) (talk) 10:56, 1 September 2015 (UTC)Reply

Protected edit request on 2 October 2022[edit]

Copy from Module:Probox/sandbox to fix a Lua error at Grants:Project/Rapid/zidovetz/offlinewikipediaingreece * Pppery * it has begun 18:44, 2 October 2022 (UTC) * Pppery * it has begun 18:44, 2 October 2022 (UTC)Reply

Done. Kind regards, — Tulsi 24x7 06:07, 3 October 2022 (UTC)Reply

Avoid global variables[edit]

Please pull in 25101528 from the sandbox. This will avoid many potential programming errors and allow it to not throw errors under require('strict') (formerly known as Module:No globals). —Uzume (talk) 03:56, 2 June 2023 (UTC)Reply