Miraheze Developers Wiki:Community portal

From Miraheze Developers Wiki
Revision as of 04:56, 11 July 2021 by Тишина (talk | contribs) (→‎I ran into a problem writing a function to import scripts: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Please post what you want to discuss. This is for general discussion as of 2020-12-03. Requests for permissions may be made here, as well as new proposals for the wiki.

Why not add translate extension?[edit]

Miraheze is a multilingual wiki farm.So this wiki needs to open to everyone.

Why not add translate extension?And then read helps will be convenient.

--开炸弹车 (talk) 10:53, 20 September 2020 (UTC)

@开炸弹车: This wiki is in the incubation phase. BlackWidowMovie0000Editor (talk) 18:26, 17 November 2020 (UTC)
@开炸弹车:  Done Universal Omega (talk) 20:59, 17 November 2020 (UTC)

List of templates needed for this wiki[edit]

Ask for imports and prevent duplication by discussing the templates you want to use and listing the templates you need.-- (talk) 15:05, 15 October 2020 (UTC)

If you need help[edit]

I'm free between 15:00 and 19:00 GMT Mon-Fri and basically all day Sat and Sun if you need help with anything, ping me if there's anything I can do. Seemplez (talk) 14:22, 13 November 2020 (UTC)

Request for Bureaucracy[edit]

Request for Bureaucracy[edit]

Crat request[edit]


@Naleksuh: Would it be possible to import Huggle and STiki from Wikipedia? BlackWidowMovie0 (talk) 23:46, 2 December 2020 (UTC)

Huggle and STiki are standalone desktop applications, not JavaScript tools, so there is nothing to import. Naleksuh (talk) 23:47, 2 December 2020 (UTC)
@Naleksuh: Would it be possible to configure them for Miraheze, though? BlackWidowMovie0 (talk) 23:58, 2 December 2020 (UTC)
If configuration pages are required, then yes, absolutely, I have no problem with this, and will leave it up Naleksuh to see if it's required. Dmehus (talk) 00:00, 3 December 2020 (UTC)
That would likely be something sorted out with the creator of the tools. I believe Huggle is only capable of pointing to Wikimedia projects and may need some modification to point to Miraheze. Naleksuh (talk) 00:03, 3 December 2020 (UTC)
@Naleksuh and Dmehus: I will contact the Huggle dev. BlackWidowMovie0 (talk) 00:12, 3 December 2020 (UTC)
@Naleksuh and Dmehus:  Done BlackWidowMovie0 (talk) 00:17, 3 December 2020 (UTC)

Public interface access[edit]


See User:BlackWidowMovie0/Main Page for links to the Discord server and the IRC channel. It could be good. I am asking @Naleksuh:, @Universal Omega:, @MacFan4000:, and @Dmehus: to join the server to set it up, same for the IRC channel. BlackWidowMovie0 (talk) 01:24, 3 December 2020 (UTC)

IMHO this is such a small community (this wiki and templatewiki combined), that we don’t really need a discord server or another IRC channel. A single feed + chat channel (#miraheze-feed-dev) is enough for us. MacFan4000 (Talk Contribs) 01:35, 3 December 2020 (UTC)
Oh. Ok. I guess that's fine. I'll keep the server in case the wiki becomes big. BlackWidowMovie0 (talk) 01:38, 3 December 2020 (UTC)

Community proposal regarding either potential changes to the user group and BlackWidowMovie0[edit]


I propose that we use the following as our new wordmark. What does people think?
MacFan4000 (Talk Contribs) 22:44, 16 June 2021 (UTC)

I'd prefer just "dev" here. I don't think "wiki" needs to be part of the wordmark in this case. Dmehus (talk) 22:47, 16 June 2021 (UTC)

I get an error when I try to load a script from another wiki[edit]

This is in the console: vector.js:1 Refused to execute script from 'https://tishina.miraheze.org/wiki/Script:WikiCommunity.js?action=raw' because its MIME type ('text/x-wiki') is not executable, and strict MIME type checking is enabled.

This is the code:


Тишина (talk) 21:51, 7 July 2021 (UTC)

Тишина Hello! You have to add &ctype=text/javascript at the end of the URL for MediaWiki to parse it. Note however that you must create the script in the MediaWiki: category or in a User subpage or else MediaWiki will return a 403 saying For security reasons JavaScript cannot be loaded from unprotected pages. Please only create javascript in the MediaWiki: namespace or as a User subpage. Agent Isai Talk to me! 07:14, 8 July 2021 (UTC)
Thanks I'll copy the code to the MediaWiki namespace. I tried to make a user group once to allow a special group to edit the script namespace without making them administrators or giving them access to all the MediaWiki pages but it didn't work. I could make a bot copy the code automatically but keep code editing restricted to only certain users. Тишина (talk) 07:25, 9 July 2021 (UTC)

I ran into a problem writing a function to import scripts[edit]

I wrote this function to simplify importing code from other pages but it doesn't work. I'm not sure if it's possible to import code this way. My best guess is that the getScript is running asynchronously and causing the rest of the code to fail because the required function wasn't imported.

function import_module(module) { mw.loader.getScript('https://tishina.miraheze.org/wiki/MediaWiki:'+ module +'.js?action=raw&ctype=text/javascript'); }

Running mw.loader.getScript by itself without import_module still doesn't work.

Тишина (talk) 04:56, 11 July 2021 (UTC)