Two language bars are displayed on the Main Page.
Project:Village Pump
Yeah seems far from ideal. This is a main-page, not some random page in the project and it totally breaks the aesthetic design.
Yes! But it's problem template 'Main page'. I'm looking for the code that generates the bar. And I would say that the practical point of view takes precedence over the aesthetic point of view in this regard. Problem first must be analyzed. I am not motor-mouse.
CC: @Matěj Suchánek @Want for the relevant changes at https://www.mediawiki.org/w/index.php?title=Template:Main_page&action=history
I discussed this with Want intensively in the last days. The problem he is trying to solve is the fact that for anonymous users it is quite difficult to discover the way to switch the language. He believes there are many MediaWiki admins around the world who would benefit of having mediawiki.org as the place-to-go for documentation, yet there is a language barrier. Ideally, the user needs to do the switch only once (i.e, on the main page), then all links become language-relative and surfing the web is smooth. Special treatment for the main page is in my opinion acceptable, the wiki's main page will always be "special".
Note that I do not like having two language bars either. The original language bar (placed at the bottom which is even less accessible) links to "Template:Main page/...", this is somewhat weird.
Ideally, the user needs to do the switch only once (i.e, on the main page), then all links become language-relative and surfing the web is smooth.
I agree this would be ideal. Unfortunately, mediawiki.org is quite far from this, because it uses the user interface language a lot – which defaults to English and cannot be changed by logged-out users:
- Main Page itself loads the main page translation in the UI language.
- Special:MyLanguage is used much (often through {{Ll}}), which redirects the user to the translation in the UI language (if that exists).
Those language-relative links are implemented by {{Pll}}, but that template is hardly used (353 transclusions vs 65k transclusions for {{Ll}}). For the main page, there are two possibilities:
- The current setup: Main Page itself is not translatable, transcludes a template in UI language. This makes language change and linking to translated main pages relatively difficult, but makes a reasonable guess for the user’s preferred language (at least for that of the logged-in user, since logged-out users always get English).
- What Meta does: the main page itself is translatable. This displays m:Main Page appear in English even for those who have set their UI language, but makes language switching and linking to translated main pages easier. (The languages bar is at the bottom there as well, but nothing would prevent moving it higher above.)
I prefer the latter because it doesn’t discriminate casual readers, but recognize that the former also has its advantages.
Solution used on Meta is optimal, because anonymous user can do switch into language prefered. If let be here as well, it be ok for all users.
But for now.
I looked at the {{Pll}} template. This alone makes 14 calls to demanding functions, and the template {{Ll}} 37. I use a similar template on my wiki which was inspired by the {{Ll}} template.
That linked page has 20 calls because it uses the trascluded man page as documentation, where it is used, including many other templates. But after commenting out the code that embeds the documentation, it has zero calls by itself and doesn't call any other template.
When I do the same thing on the {{Pll}} page, I still have one call to the heavy function and in addition the {{Page language link}}, {{Pagelang}}, {{Translatable}} templates are called , Lua Module:Template translation and call Special:MyLanguage page.
But that's still ok. I wanted to see how many calls the {{Ll}} template would have after the documentation was removed, and I was honestly horrified by them. I didn't expect that the number of calls would rise to 100 and the code would take 1.5 sec to process.
The {{Ll}} template is forgivably stupid. My version of the ll template automatically displays the translated page title if it exists, supports anchors, and also translatable alt descriptions. But it is not applicable to MediaWiki because it uses the Extension:Variables extension.
Okay. There is another solution. The {{Ll}} template does nothing but display the translated page title if it exists, right?
The parameterized template {{Mt}} works with it – for example using this template goto my test subpage languagebar. I want do alternative for {{Ll}} in pure wikicode? Not problem!
I know where the page name is if it is translated. Want an example?
Page name the Template:Main page for czech language is Translations:Template:Main_page/Page_display_title/cs
Just test if it exists and then insert it. As here: Šablona:Main page
But the main page doesn't translate like the other pages. Its name is translated via the system message MediaWiki:mainpage ok. If I know this, I can make a very simple template for the main page:
{{#ifexist:{{ns:1198}}:{{{2}}}/Page_display_title/{{{1}}} |[[{{{2}}}/{{{1}}}{{!}}{{:{{ns:1198}}:{{{2}}}/Page_display_title/{{{1}}}}}]] |[[Special:MyLanguage/{{{2}}}{{!}}{{{2}}}]] }}
This example code interpretation, for link to czech translation of the Template:Main_page whereis as second parametrem "cs" [[Template:Main_page/cs|Šablona:Main page]] (Translation name of this template is not allow for translation.)
Sorry I won't be able to respond until Monday - I have to run to the train.
See also the other thread on Topic:Y8nv4x2i0zlmwti1.
I prefer the latter because it doesn’t discriminate casual readers, but recognize that the former also has its advantages.
Is it possible to redirect though Special:MyLanguage
and get a hybrid of both approaches? By that I mean could we setup a Main Page here that is #REDIRECT [[Special:MyLanguage/MediaWiki]]
so that the default index.php entry point, logo, and wordmark all end up using the MyLanguage translation with fallbacks selection process to choose the real page to display?
You may want to test it but I am pretty sure it isn't. Quick search in Phabricator gave me phab:T164357.
Quick search in Phabricator gave me phab:T164357 The blocker is apparently that Wikimedia project wikis set $wgDisableHardRedirects to true.
Setting Main Page to #REDIRECT [[Special:MyLanguage/MediaWiki]]
probably doesn’t work, but through phab:T345737 I realized that setting MediaWiki:mainpage to Special:MyLanguage/MediaWiki
apparently does, and that also gives best of both worlds.
Nice find @Tacsipacsi! I think this means that the pattern used on Meta is what we should try to replicate here.
I think implementing that change might look something like:
- Move the current MediaWiki out of the way to something like MediaWiki historic main page. We will want to merge the history of the current main page into the final main page later. Once that is done then I think (please correct me if I'm wrong) we would go ahead and delete the moved current main page.
- Move Template:Main page to MediaWiki. Because of the translations involved, there are far too many subpages to move via the UI. We should instead use Help:Extension:Translate/Move translatable page#Moving_a_large_number_of_pages to move via the job queue.
- Change MediaWiki:Mainpage to
Special:MyLanguage/MediaWiki
so that things that target the default main page will link to the version of MediaWiki matching the user's preferred UI language. - Merge the history of MediaWiki historic main page (the moved version of the current [[MediaWiki]]) into the newly moved MediaWiki (the moved version of the current [[:Template:Main page]]) so that browsing the history will start from Special:PermanentLink/2368 (or Special:PermanentLink/1) and proceed until the first edit of Template:Main page.
- Delete MediaWiki historic main page to clean things up.
Is my reasoning correct? Is this too weird or scary to try?
I need help figuring out what to do about my wiki account, which is apparently under an Indian registration, though I'm American (I tried to fix this, but just HOURS prior to, had action against my account because of the username policy, there, so I don't have the perms.) I don't know if deleting it, entirely, is a potential solution, or if it can be worked out for it to just be reopened and then moved, or if I'm just "S.O.L." (sore outta luck)...
mediawiki.org doesn’t have per-country registrations. You should contact support on whatever wiki you registered on, not here (this page isn’t even a support page).
- You can find this message translated into additional languages on Meta-wiki. Please help translate to your language
Hello everyone,
After carefully tallying both individual and affiliate votes, the Charter Electoral Commission is pleased to announce the final results of the Wikimedia Movement Charter voting.
As communicated by the Charter Electoral Commission, we reached the quorum for both Affiliate and individual votes by the time the vote closed on July 9, 23:59 UTC. We thank all 2,451 individuals and 129 Affiliate representatives who voted in the ratification process. Your votes and comments are invaluable for the future steps in Movement Strategy.
The final results of the Wikimedia Movement Charter ratification voting held between 25 June and 9 July 2024 are as follows:
Individual vote:
Out of 2,451 individuals who voted as of July 9 23:59 (UTC), 2,446 have been accepted as valid votes. Among these, 1,710 voted “yes”; 623 voted “no”; and 113 selected “–” (neutral). Because the neutral votes don’t count towards the total number of votes cast, 73.30% voted to approve the Charter (1710/2333), while 26.70% voted to reject the Charter (623/2333).
Affiliates vote:
Out of 129 Affiliates designated voters who voted as of July 9 23:59 (UTC), 129 votes are confirmed as valid votes. Among these, 93 voted “yes”; 18 voted “no”; and 18 selected “–” (neutral). Because the neutral votes don’t count towards the total number of votes cast, 83.78% voted to approve the Charter (93/111), while 16.22% voted to reject the Charter (18/111).
Board of Trustees of the Wikimedia Foundation:
The Wikimedia Foundation Board of Trustees voted not to ratify the proposed Charter during their special Board meeting on July 8, 2024. The Chair of the Wikimedia Foundation Board of Trustees, Nataliia Tymkiv, shared the result of the vote, the resolution, meeting minutes and proposed next steps.
With this, the Wikimedia Movement Charter in its current revision is not ratified.
We thank you for your participation in this important moment in our movement’s governance.
The Charter Electoral Commission,
Abhinav619, Borschts, Iwuala Lucy, Tochiprecious, Der-Wir-Ing
After changing the user interface language to English, I can no longer change it to another language.
Why? No option in Special:Preferences? Selecting another language does nothing?
When I try to switch languages using the Universal Language Selector, nothing happens. I just realized that I can change it in Special:Preferences.
I think this is related to phab:T368595.
When attempting to perform translation administrator-related operations, I encounter the following exception:
[3a0b003a-e559-4ac7-9c2d-cd2e0c97b61e] 2024-07-16 22:40:32: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
This issue has been resolved.
Special:Contributions/103.127.86.173 , probably vandalism - seems to be adding translations in different languages.
Clump took care of it. Thanks!
Please block 2a02:9b0:402b:7b6e:15b4:ddf3:62a1:965d (留言 · 贡献).
Blocked.
I was translating Help:Images page to bangla language.suddenly it says that it wouldn't save my edit as i could be a possible vandal.how to fix that.
The error message was because you translated a heading (== Requisites ==) as a non-heading (প্রয়োজনীয়তা). The equals signs should be preserved in the translation.
But this edit filter really needs a better error message.
oops, i got it.and fixed it.thank you.
I've updated the abuse filter so the next time this happens it displays a clearer error message rather than calling you a vandal.
hi everyone
My problem: I wanted to upload a picture (png.) from my computer into my wikipage.
Everything looks good until i get this:
We could not determine whether this file is suitable for Wikimedia Commons. Please only upload photos that you took yourself with your camera, or see what else is acceptable. See the guide to make sure the file is acceptable and learn how to upload it on Wikimedia Commons.
I've got the permission to use this picture, it shows nothing sexualthere is nothing violent or anything at all in it. What should i do?
thanks.
Looking at task T146938, it looks like a filter used to prevent newbie users from uploading files to commons directly from other wikis (from the visual editor of a wiki different from commons). You should be able to upload it from commons: and then link to it from your page.
I don't understand :(
Me too :(
@Ciencia Al Poder Hi, even in commons link which you have provided above, I tried to upload my pics and I've authorised lisence to use these photos as the photos I'm trying to upload belongs to me but still I'm getting an automated error
"We could not determine whether this file is suitable for Wikimedia Commons. Please only upload photos that you took yourself with your camera, or see what else is acceptable. See the guide to make sure the file is acceptable and learn how to upload it on Wikimedia Commons.
The content must be freely licensed. Do not copy files illegally (in violation of copyright) from other websites.
If you believe that the file meets our licensing standards: Upload the file again or click "Retry failed uploads"/"Submit modified file description"
Please guide me how can I upload these pictures.
Please ask in c:Commons:Help_desk
I am getting exactly the same issue with my picture - one that I took, Any solutions?
No solution if you're asking here. See previous comment.
- You can find this message translated into additional languages on Meta-wiki. Please help translate to your language
Hello all,
A special election has been called to fill additional vacancies on the U4C. The call for candidates phase is open from now through July 19, 2024.
The Universal Code of Conduct Coordinating Committee (U4C) is a global group dedicated to providing an equitable and consistent implementation of the UCoC. Community members are invited to submit their applications in the special election for the U4C. For more information and the responsibilities of the U4C, please review the U4C Charter.
In this special election, according to chapter 2 of the U4C charter, there are 9 seats available on the U4C: four community-at-large seats and five regional seats to ensure the U4C represents the diversity of the movement. No more than two members of the U4C can be elected from the same home wiki. Therefore, candidates must not have English Wikipedia, German Wikipedia, or Italian Wikipedia as their home wiki.
Read more and submit your application on Meta-wiki.
In cooperation with the U4C,
-- Keegan (WMF) (talk) 00:02, 10 July 2024 (UTC)