/r/mediawiki

Photograph via snooOG

An unofficial community for content related to MediaWiki (https://mediawiki.org)

Anything relating to MediaWiki, a free and open-source wiki software.


Support


Development


Community

/r/mediawiki

1,552 Subscribers

7

New Quality Control extension: Page Approvals

Increase trust in the quality of your wiki pages via our new #OpenSource #MediaWiki extension.

Approve pages, assign approvers to categories, view your approval requests, see who approved what and when, and more.

Check out Page Approvals.

https://preview.redd.it/atim57c7tpxd1.png?width=782&format=png&auto=webp&s=0d2b070dac782635a97bc30a17e7c412b4210aeb

6 Comments
2024/10/29
15:39 UTC

1

Mediawiki 1.29.2 Api authentication

Hi everyone

I am using mediawiki 1.29.2 , i am trying to use media wiki api but getting 401 unauthorised.

I have tried to authenticate myself by using my personal id and password as basic authentication type in postman

I also tried to pass bot generated id and password which i got from special pages.

Even tried to pass csrf token as a parameter &token and sending get request.

I am using postman for calling out api.

Please let me know if anyone need any additional details

1 Comment
2024/10/29
06:15 UTC

3

Need help with Efn

Whenever I try to insert a Efn into a page, I will get an error that says "Cite error: <ref> tags exist for a group named "lower-alpha", but no corresponding <references group="lower-alpha"/> tag was found". I have the Efn template set up, but I can't seem to fix this error no matter how much I try. How do I fix this?

1 Comment
2024/10/27
15:42 UTC

1

Help me with this

My mediawiki site is getting error 500 messages. How to fix this. Thanks.

2 Comments
2024/10/26
12:04 UTC

1

Issues with WSOAuth

Im trying to setup the WSOAuth extension to move on from OAuth2 as its no longer compatible. But i cant for the life of me set it up to work with discord logins. Can anyone help?

0 Comments
2024/10/24
09:38 UTC

2

Template Loop Safeguard

How do I disable/delete/bypass it in a template/wiki?

3 Comments
2024/10/23
22:38 UTC

3

Is there any coming back from this? Ive been trying for a week to try and save it....

4 Comments
2024/10/23
06:01 UTC

2

HTTP 429 error during Mediawiki extension submodule update

Issue :

We followed the official mediawiki documentations and made a bash script that upgrade mediawiki following these steps :

  1. Back up existing files and the database
  2. Unpack the new files
  3. Upgrade extensions
  4. Run the update script to check the database
  5. Test the update
  6. Remove leftovers from old installations

The Script was working like charm few months ago, but now while we were trying to upgrade mediawiki the script failed at step 3. Upgrade extensions with 429 too many requests error specifically after running the command :

git submodule update --init --recursive

Part of the error :

Cloning into '/var/www/wiki-dev/wiki/fr/extensions/Wikibase/view/lib/wikibase-data-model'...
error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://phabricator.wikimedia.org/source/wikibase-data-model.git' into submodule path '/var/www/wiki-dev/wiki/fr/extensions/Wikibase/view/lib/wikibase-data-model' failed
Failed to clone 'view/lib/wikibase-data-model'. Retry scheduled
Cloning into '/var/www/wiki-dev/wiki/fr/extensions/WikibaseLexeme/resources/special/new-lexeme'...
fatal: unable to access 'https://phabricator.wikimedia.org/diffusion/NLSP/new-lexeme-special-page.git/': The requested URL returned error: 429
fatal: clone of 'https://phabricator.wikimedia.org/diffusion/NLSP/new-lexeme-special-page.git' into submodule path '/var/www/wiki-dev/wiki/fr/extensions/WikibaseLexeme/resources/special/new-lexeme' failed
Failed to clone 'resources/special/new-lexeme' a second time, aborting
fatal: Failed to recurse into submodule path 'extensions/Wikibase'
fatal: Failed to recurse into submodule path 'extensions/WikibaseLexeme'

Question :

Is this normal?, It's been more than 12h and we are still getting 429 error, and are there some ways to prevent this from happening again?

I appreciate any help.

0 Comments
2024/10/22
09:42 UTC

1

Changing Image formatting?

Fiddling around with different files to figure out what changes universal image formatting and found that in the content.media-common.less file, adding border formatting to the block below changes some images (specifically the ones on my main page), but did not apply to images in my /template files. Anyone have an idea why this would be the case? TIA

figure[ typeof~='mw:File' ],
figure[ typeof~='mw:File/Frameless' ] {
> a {
// The addition of the class is needed for higher specificity
// than Vector's print styles
.mw-body-content & {
border: 0;
}
}

My goal is actually to create a new image format option in addition to the available mediawiki ones with my desired styling so I can choose where it is applied, but I feel like this is a significant question despite not being directly useful for what I'm trying to do lol.

0 Comments
2024/10/20
15:31 UTC

2

Lua error: Internal error: The interpreter exited with status 1 (Wamp64 edition)

I have Mediawiki inside my Wamp64 folder and it keeps giving me this error every single time I try to type any line of code inside the debug console or in the page itself like local cfg = {}. Just one line of code gives me an error. Yes, someone has had this error before, but that was 1 year ago. This happens when I try to make a page for Module:Arguments or Module:Documentation. It just doesn't work. Please help me. Also, that post from 1 year ago was with Xampp, not Wamp64.

5 Comments
2024/10/19
19:13 UTC

2

Can someone help me with this?

https://preview.redd.it/tn0pmb6xsovd1.png?width=1123&format=png&auto=webp&s=de5cc0bc5714407500e940b1e62d85c340e730d8

How can I change the "<mobile-frontend-view>" to something like "Mobile View". I've spent a while talking to chatgpt for help but everything chatgpt told me to do didn't work. What should I do?

2 Comments
2024/10/19
10:08 UTC

1

Is there a Extension in mediawiki software to automatically generate profile pages?

How can i automatically generate profile pages. I am aware that there exist User:Admin or User:JimboWales for instance i am not looking for user profiles.

My problem is that i want to generate profile pages for mostly historical persons 'Abraham Lincoln'. I want every artical he has writen. but i do not want to manual go and edit his page ween there is a new article created about him.

Do you understand me? Wikimedia community?

https://en.wikipedia.org/wiki/Abraham Lincoln

and on this Abraham Lincoln page there is a list like his sort of automaticaly generated becuse i have a template in every arrtical about him and many other histical figures.

  1. the first arical (name of publication)

  2. the best book about my self (1840)

  3. the best book about my self (1860)

From oldest to newst. Is there a plugin AND OR extension for this task?

sort of like how categories is being used?

3 Comments
2024/10/14
20:44 UTC

2

Any advice on dealing with bots posting random shit?

I am a admin on a video game wiki, i haven't been active but recently noticed there are a ton of bot posts about couches, cbd, etc. Is there any easy ways to make account creation harder? Also an easy way to ban ips and removed the edited pages without doing each one individually?

5 Comments
2024/10/13
00:51 UTC

1

Vector 2022 Skin, change how TOC collapses.

Using the vector 2022 skin for my localhost MediaWiki, however I want to change how the Table of Contents collapses(unpins and is pinned). The default TOC has a hide button that moves the TOC into an icon onto the Main Page Contents titlebar, I want to change this so the hide button just collapses into the TOC pinnable header.

Essentailly, I want to remove the unpinned TOC, keep the pinned TOC as the default, and make the hide button collapse the TOC list under the header.

I've look through the skins/Vector/resources/ folder, through the skins.vector.js, and skins.vector.styles, but really haven't found the code for it.

Default Pinned

Default Unpinned (when pressing the hide button)

Desired function of the Hide Button (when pressing the hide button)

1 Comment
2024/10/12
04:25 UTC

3

How do I change the site wide font on a MediaWiki wiki?

Hey all. I've been trying to figure out how to change the font on my wiki for awhile now, except everything I've tried doesn't work. How do I change the font?

9 Comments
2024/10/12
01:27 UTC

1

DS224+ TemplateStyles extension doesn't load

I tried to install the Template:Styles extension on my mediawiki hosted on a DS224+ However it seems to just prevent the wiki from loading at all and now i only get a blank white page.

3 Comments
2024/10/11
13:56 UTC

1

Installing templates on Mediawiki Synology NAS

I installed the Mediawiki package on my Synology NAS assuming it would function straight out of the box however I didn't realise that I needed to enable a lot of extensions in order to import the infobox templates from Wikipedia.

I'm currently struggling with this as I can't get Wikibase to work or run, I can't get any template to work at all and my wiki is just full of LUA errors. Has anyone managed to get this to work on a Synology NAS? I just want to use a bunch of existing infobox templates from Wikipedia on it.

1 Comment
2024/10/10
15:39 UTC

1

Researching OpenSearch. Anybody have some experience with it to share?

I support a couple of MW sites and am curious about peoples experience with using or switching to OpenSearch for MW sites. Anybody here using OpenSearch?

0 Comments
2024/10/09
21:00 UTC

3

MediaWiki and SEO. Does Google dislike MediaWiki?

Excepting Wikipedia, of course, it seems that a lot of good MediaWiki sites don't really appear high in search results unless there is nothing else available with similar content. Has anyone else noticed this? Does the Google algorithm downrank MediaWiki sites? If so, is there anything that can be done?

11 Comments
2024/10/08
23:58 UTC

2

Sticky Headers

Hi,

I have a table which has subheadings under a couple of heading cells (two for each column) and they don't seem to be sticky in the way the main headings are when scrolling down the table. Is there any way to force this behaviour?

1 Comment
2024/10/06
01:36 UTC

1

count number of occurrences of a template within an article

hello! i'm fairly new to wiki editing and i'm looking to do something that i think is fairly simple, but i'm having trouble figuring it out (or even how to verbalize searching for it).

as the title states, i'm basically looking for a feature/code/template/whatever that can count how many times a template is used on a page. let's say i have {{template_a}} used 5 times, i'd like something like {{template_count}} that would put a note on the page saying "template_a is used 5 times here".

hopefully that makes sense. and hopefully it's something easy lol. thanks in advance!

1 Comment
2024/10/04
19:47 UTC

1

Using cargo extension to try to display calendar

I'm struggling to get a calendar to display using cargo tables.

Table structure is Eventname - Name Type - String Date - Date Start - Date End - Date description - Text

Have several rows in the table successfully. Dates all formatted well.

Been trying to call a table using

{{#cargo_query:tables=Events|fields=Eventname,Date|format=calendar|width=100%}}

I don't think there is any trouble with the date format. Am I not calling the data correctly? Calendar displays but with no events showing.

9 Comments
2024/10/02
23:24 UTC

3

MySQL shutting down immediately.

I'm hosting a localwiki on my PC, just for myself. It's been working up till today, though I will admit when it starts up it has been taking some time for the page to load up.

Started up XAMPP today and all the other modules (Apache, FileZilla, and Mercury) are loading and working fine. Just MySQL that's the issue.

I honestly have no idea how to fix it or anything like that, so help is appreciated. One post I found on a forum mentioned changing the port (which I did try) to no avail. But looking at the log below it looks like the issue is a memory one?

I don't really know, though, so any help would be much appreciated.

2024-10-02 15:01:11 0 [Note] Starting MariaDB 10.4.32-MariaDB source revision c4143f909528e3fab0677a28631d10389354c491 as process 9004

2024-10-02 15:01:11 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2024-10-02 15:01:11 0 [Note] InnoDB: Uses event mutexes

2024-10-02 15:01:11 0 [Note] InnoDB: Compressed tables use zlib 1.3

2024-10-02 15:01:11 0 [Note] InnoDB: Number of pools: 1

2024-10-02 15:01:11 0 [Note] InnoDB: Using SSE2 crc32 instructions

2024-10-02 15:01:11 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M

2024-10-02 15:01:11 0 [Note] InnoDB: Completed initialization of buffer pool

2024-10-02 15:01:11 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

2024-10-02 15:01:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2024-10-02 15:01:11 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2024-10-02 15:01:11 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.

2024-10-02 15:01:11 0 [Note] InnoDB: Waiting for purge to start

2024-10-02 15:01:11 0 [Note] InnoDB: 10.4.32 started; log sequence number 266694740; transaction id 200639

2024-10-02 15:01:11 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool

2024-10-02 15:01:11 0 [Note] Plugin 'FEEDBACK' is disabled.

2024-10-02 15:01:11 0 [Note] Server socket created on IP: '::'.

1 Comment
2024/10/02
14:30 UTC

2

Local to hosted?

Hey yall. Looking into starting my own wiki. I was hoping to start one locally just to get used to the software and set up pages, before eventually hosting that exact wiki online with those pages already set up.

I’ve been looking online but I haven’t seen anyone inquire about something like this before, and wondering if it was possible? Hoping someone could provide some assistance. Thanks!! :)

4 Comments
2024/09/29
16:17 UTC

1

Need inspiration / help with a category problem

Maybe I miss something but it seems there is no way that I can have multiple, different categorys with the same name. And I'm in a bit of a loss on how to structure data with that limitation.

What I would like:

Dogs
  Ears
    Hairs (only stuff about dogs ear hairs)
  Paws
    Hairs (only stuff about dogs pawm hairs)
Cats
  Ears (only stuff about catgs ear hairs)
    Hairs
  Paws (only stuff about catgs pawm hairs)
    Hairs

What only seems possible (because I miss something?):

Dogs
  Dog Ears
    Dog Ear Hairs
  Dog Paws
    Dog Pawn Hairs
Cats
  Cat Ears
    Cat Ear Hairs
  Cat Paws
    Cat Pawn Hairs

How do you structure subcategory structures that belong to an overhead structure but are in itself named identical because the topic is the same but the content is different without having to use names that result in a subcategory list not useable because of postfix spam or all sorted under one letter.

3 Comments
2024/09/27
14:16 UTC

3

Easily getting webp thumbnails

I noticed that my mediawiki was generating PNG thumbnails of webp files, which have much larger file sizes than the originals. I'm not familiar with the mediawiki code, but what seems to work on my setup, is to change getThumbType() in includes/media/WebPHandler.php to just return [ 'webp', 'image/webp' ].

I checked the resulting thumbnail files, and they are indeed webp files (not just PNGs with a webp extension). Since that worked so well, I also added getThumbType() overrides to JpegHandler and PNGHandler. Now all my thumbnails are smaller webp files.

I don't want to change the format of the original files, or keep webp files on the side like the WebP extension seems to do. I just want the thumbnails to be generated as webp, plain and simple.

But... now I've tweaked the core files. So, my questions are:

  1. Is there a downside to the getThumbType() change I've made, which I'm not seeing?
  2. Can I migrate this into an extension by subclassing the core handlers, and registering these classes as the image/{jpeg,png,webp} handlers? Does mediawiki let me override the core handlers for the core file types this way?
4 Comments
2024/09/23
23:02 UTC

1

I'm running mediawiki on a shared web host and would like to get started with Varnish, but I don't know how to get started.

My wiki is growing and I'd like to get some decent caching going. Varnish seems to be what I need, but I don't know how to get started.

Do I have to move my site from my current hosting provider (stablehost) to somewhere else? They don't offer Varnish caching.

I've never worked with caching stuff before, other than what I have in my LocalSettings.php

$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
$wgEnableSidebarCache = true;
$wgSidebarCacheExpiry = 86400;
$wgCacheDirectory = "/home/xxxxxxxxx/xxxxxxxx.cache";
$wgUseFileCache = true;
$wgFileCacheDirectory = "/images/cache";

I don't really know what to do with the information on the Mediawiki Varnish page.

This is just a personal project so I'm not planning to spend a ton of money on this.

If there's a better solution, I'd love to hear that too.

Thanks!

7 Comments
2024/09/23
16:57 UTC

1

Four tables of different height in uniform square—is it possible?

I'm not a complete beginner when it comes to MediaWiki markup, but I'd like to know if its possible to put 4+ tables with different heights in uniform rows/columns (almost like a table of a table) and if so, how. See the attached low-quality diagrams:

What I want: Each table starts at the same height and ends at whatever height it is supposed to be

And what I get when I use multiple tables on the same page:

About what I get (don't want/can't use this)

3 Comments
2024/09/20
23:24 UTC

Back To Top