/r/mediawiki
An unofficial community for content related to MediaWiki (https://mediawiki.org)
/r/mediawiki
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.
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
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?
My mediawiki site is getting error 500 messages. How to fix this. Thanks.
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?
How do I disable/delete/bypass it in a template/wiki?
Issue :
We followed the official mediawiki documentations and made a bash script that upgrade mediawiki following these steps :
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.
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.
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.
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?
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.
the first arical (name of publication)
the best book about my self (1840)
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?
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?
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 Unpinned (when pressing the hide button)
Desired function of the Hide Button (when pressing the hide button)
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?
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.
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.
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?
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?
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?
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!
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.
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: '::'.
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!! :)
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.
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:
getThumbType()
change I've made, which I'm not seeing?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!
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: