Jump to content

Tech

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 22 hours ago by Krol111 in topic Getting extra letters with javascript

Technical problem

[edit]

Why have edit links disappeared from the Wikivoyage Derby page? 80.41.101.244 11:33, 24 July 2024 (UTC)Reply

Which Deby page? The English one at voy:en:Derby? See its | edit history. Malyacko (talk) 11:37, 24 July 2024 (UTC)Reply

Mobile site showing main page title

[edit]

Hello, On the mobile site of Sd Wiki, the main page's title is visible when logged out. It should be removed as it looks odd and most wikis dont have such titles now, i asked in phabricator and the refer me here, screenshot is available here, anybody will help? Arslanali (talk) 16:23, 25 July 2024 (UTC)Reply

As I wrote in Phabricator, see mw:Manual:FAQ#How do I hide the main page title? for a start. If something is unclear or blocking you from fixing this, please explicitly describe what is unclear/blocking and why, so someone could help. Thanks a lot!, --AKlapper (WMF) (talk) 16:30, 25 July 2024 (UTC)Reply
I added css as per instructions here on line 19, but it didn't work. Arslanali (talk) 16:40, 25 July 2024 (UTC)Reply
Please dont hide this via CSS. This is bad practice. Follow the instructions Andre gave you and modify sd:MediaWiki:mainpage-title to be empty. Jdlrobson (talk) 02:32, 28 July 2024 (UTC)Reply
Thanks, resolved after hiding dash in sd:MediaWiki:mainpage-title. Arslanali (talk) 20:34, 28 July 2024 (UTC)Reply

Created account in error and want to delete

[edit]

Apologies, but I thought MediaWiki was something else and created an account. I want to delete this account as I have no intention of using MediaWiki and don't want any possible links to the platform. Is it possible to delete my account? I realize deletions can disrupt data, but I have entered nothing, published nothing, edited nothing. Thanks for your assistance and apologize for the inconvenience. MariucciAus MariucciAus (talk) 13:06, 31 July 2024 (UTC)Reply

You can request your username to be removed at Special:GlobalVanishRequest. Matma Rex (talk) 13:10, 31 July 2024 (UTC)Reply

We have mediawiki 1.24.2 on CentOS 7 machine. Now we need to migrate to a Rocky 9 machine. What's the migrate steps?

[edit]

We have mediawiki 1.24.2 on CentOS 7 machine. Now we need to migrate to a Rocky 9 machine. What's the migrate steps? Step2024 (talk) 16:17, 6 August 2024 (UTC)Reply

@Step2024: See the banner above: "Tech-related questions about third-party wikis should be asked at mw:Project:Support desk." See mw:Manual:Upgrading. --AKlapper (WMF) (talk) 17:35, 6 August 2024 (UTC)Reply

Pending changes

[edit]

Hi, is it possible to protect a page with pending changes? I’m working on https://ww2airops.miraheze.org/wiki/List_of_Air_Operations_in_September_1939 but can only semi or fully protect the page. Is pending changes an option and if so how to I do it? (The account name is different because miraheze wouldn’t let me use this one for some reason). Thanks. REDMAN 2019 (talk) 13:11, 13 August 2024 (UTC)Reply

@REDMAN 2019: Hi, see above: Tech-related questions about third-party wikis should be asked at mw:Project:Support desk. We do not run Miraheze wikis. --AKlapper (WMF) (talk) 13:15, 13 August 2024 (UTC)Reply
[edit]

Hi, we are in the process to update our mediawiki to the latest release, however when jumping to 1.35 from 1.27 we noticed that when trying to access some pages as http://servename/mediawiki/index.php/Company_GmbH_Co._KG will cause a 301 Moved Permanently redirection to http://servename/mediawiki/index.php/mainsite.

In 1.42 the same is happening.

Where is this redirection coming from and how to avoid it?


Noindicaotro (talk) 06:55, 15 August 2024 (UTC)Reply

@Noindicaotro: Hi, see above: Tech-related questions about third-party wikis should be asked at mw:Project:Support desk. --AKlapper (WMF) (talk) 08:25, 15 August 2024 (UTC)Reply
Now I am getting this message at mw:Project:Support desk: "This board is protected. Only autoconfirmed users can participate. Reason: Vandalism. High traffic page." Noindicaotro (talk) 08:55, 15 August 2024 (UTC)Reply

Getting extra letters with javascript

[edit]

Hello, I would like to know what are the limitations to get custom letter on keyboard combination, e.g. ō on alt+q or ô on ctrl+alt+1, using common.js. I tried and it works with combination alt+shift well, but somehow most another combinations, like shift+q, doesnt worked (the text field losted focus and console printed only the numbers 1 and 2).

Motivation: as administrator of a small wikipedia I would like to provide a user friendly solution to use our custom alphabet. Alternative solutions used so far are copy-pasting or usage of autohotkey, but it requires installation of external software and configuration, which makes the entry threshold to the project very high, especially for older people, which our minority language project targets.

Thank you in advance Krol111 (talk) 22:41, 15 August 2024 (UTC)Reply

@Krol111: In my understanding that's what the Input Method Configuration of mw:Universal Language Selector is supposed to solve, instead of fiddling with custom local JavaScript. mw:Wikimedia Language and Product Localization#Follow our work and connect with us might be able to provide some additional support. --AKlapper (WMF) (talk) 04:36, 16 August 2024 (UTC)Reply
@Krol111, I can make a nicely-managed Silesian keyboard for you.
Combinations with Alt and Ctrl are not very reliable in JavaScript, so I recommend using what we successfully used in many other languages: typing a letter and then typing ~ (tilde) and a character that looks similar to the diacritic. For example:
  • ŏ <- o~(
  • ō <- o~-
  • ô <- o~^
  • õ <- o~{
  • ã <- a~{
  • ů <- ~u
Comments:
  • ů is simply ~u because it's the only diacritic on u, unlike o, which has several diacritics.
  • The tilde on õ and ã are with { because the tilde itself is already used for something else. It's a bit weird, but I see that you don't use these letters often anyway, so I hope it's not a big deal.
  • I recommended ( for ŏ, but you can choose something else.
The code for this is on GitHub: https://github.com/wikimedia/jquery.ime
Some time after it's merged on GitHub, it will be deployed on Wikipedia. (Usually it takes up to two weeks.)
I also recommend reading mw:Manual:Adding_and_removing_languages#jquery.ime.
Every new addition of an input method (also known as keyboard mapping) must include:
  1. The rules themselves, under rules/
  2. Tests, in the fixtures files under tests/
  3. Language and input method registration in src/jquery.ime.inputmethods.js
Recent example: https://github.com/wikimedia/jquery.ime/pull/786/files
Also, it would be nice if you could create a mw:Phabricator task to track this work.
Good luck, and let me know if you need more help! Amir E. Aharoni (talk) 12:52, 16 August 2024 (UTC)Reply
Thank you both for your time and great instruction! Typing with tilde is a great idea. In the next days I will try to implement it. For now, I am going to write an Phabricator ticket. See you! Krol111 (talk) 15:10, 16 August 2024 (UTC)Reply