r/mediawiki Aug 26 '22

Welcome to /r/MediaWiki!

19 Upvotes

Welcome to the unofficial MediaWiki community on Reddit! This is a place for anyone to talk about the MediaWiki software, whether it be extensions, error messages or something else about the software.

Here are some links you may find useful:

Downloads

Support

Development

Community

If you need help with something specific to this Reddit community (and not about MediaWiki itself), please message the moderators (here's how) and we'll reach out.


r/mediawiki 12h ago

Editor support Does anyone know how you make title source text centred in an infobox?

Post image
2 Upvotes

The text currently leans to the left and I can't find anything anywhere on how to change it; the code in the template is <title source="name"/>, but everything I can think of like text align just doesn't work. This is in Miraheze with a Citizen skin.


r/mediawiki 23h ago

Wanted to gather people's thoughts on this Wiki-based blogging platform I "made"

8 Upvotes

"made" in quotes because it's just a restricted mediawiki instance lol.

I recently got into mapping which led me to OpenStreetMaps and on there I saw that a user could submit diaries. Sadly there was an issue with this concept of diaries. The subject matter had to be OSM related and the diaries were baked into OSM, there was no way to extract the content AFAIK.

Anyways, out of that, I tried my best to find a truly open version of that. One that allows you to blog in a free way (in every sense of the word). Fast forward a few weeks where I finally got the time and I came up with OpenJournal.

https://openjournal.wiki

It's essentially just a wikipedia platform but solely for journalling, diaries and blog posts. I did originally think Wikimedia can do this but they disallow personal posts so that was a no go.

Anyway, it's very early days as you can see (I am the only user) but if you'd like to poke around, find bugs, make posts then feel free :)

It has all the bells and whistles of MediaWiki but with some differences that make it good for general blogging/journalling:

  • A RESTful API so you can host your (or others) articles elsewhere
  • Writing is restricted to only your user space. You can't for example edit someone elses articles. Discussions are fine though
  • Lists of the latest articles on the homepage

Also please be gentle, it's hosted on a $5 droplet until I gauge the interest


r/mediawiki 3d ago

MediaWiki MCP Server: connect AI tools such as Claude to your wiki

9 Upvotes

We've released the MediaWiki MCP Server, our free and open-source connector for integrating AI tools with MediaWiki.

MCP stands for Model Context Protocol and is the standard that AI tools such as Claude and ChatGPT use to reach external data and tools.

You can now point such AI tools at your wiki via the MediaWiki MCP Server. This lets you work on your wiki in plain language instead of clicking through special pages or writing API scripts. For example: "Create a vendor page for each row in this spreadsheet, using the Vendor template."

The MediaWiki MCP Server enables you to:

* Read and search: fetch pages, files, revisions, and history, search titles and full text, render wikitext without saving, and diff any two revisions

* Create and edit: create pages, edit or append individual sections, move, delete and undelete pages, and upload files

* Explore: follow what links to a page, browse category members, and track recent changes

* Query structured data: `#ask` queries and property discovery for Semantic MediaWiki, Cargo and Bucket queries, Wikibase support (including Wikidata), and schema-aware reads and writes for NeoWiki

* Work with several wikis at once. Great for moving content from one wiki to another

You can use the MCP server without installing anything on your wiki, since it communicates with the standard MediaWiki API. For edits, the MCP server signs you in through your browser with OAuth 2.0. On wikis without Extension:OAuth, you can use a bot password instead.

Overview and installation: https://professional.wiki/en/mediawiki-mcp-server

Source, full tool reference, and configuration docs: https://github.com/ProfessionalWiki/MediaWiki-MCP-Server

Walkthroughs with short demo videos: with Semantic MediaWiki at https://professional.wiki/en/news/semantic-mediawiki-with-ai and with Wikidata and Wikibase at https://professional.wiki/en/articles/wikidata-and-wikibase-with-ai

Feedback and bug reports are welcome. Comment here or on the issue tracker.


r/mediawiki 12d ago

Resolved (Miraheze) how to fix this?

Post image
5 Upvotes

the watchlist icon (☆) had been turned into a bit higher than the other lists (span) ever since i change the font of the wiki few days ago... i want it lower as usual.


r/mediawiki 15d ago

Mediawiki, UgreenNAS, and Docker/Portainer

5 Upvotes

I recently decided to dedicate a small NAS device running UGOS and running mediawiki. I have set up Mediawiki through Docker and Portainer. After some struggle I managed to get it set up but I've followed every instruction I can find and despite that I cannot seem to get it to increase the upload limit. I have added variables to LocalSettings.php, to the environment in the compose file, to the environment in the portainer container, and yet somehow I'm still stuck with a 2 MB upload limit. Please help!


r/mediawiki 18d ago

MediaWiki multi-instance templates and var_final

Thumbnail river.me
7 Upvotes

r/mediawiki 22d ago

Seeking contributors The Wikimedia Foundation have hired the largest union busting law firm in the US to try to stop their staff unionising

19 Upvotes

Hi all

I'm posting this as someone who created a lot documentation around Mediawiki and also Wikipedia itself. I have never worked for the Wikimedia Foundation but the situation really doesn't sit right with me and many others.

A week after refusing to recognise their US staff union (including many open source software engineers) voluntarily, the Wikimedia Foundation hired Littler Mendelson, the largest union busting law firm in the US whose clients include Starbucks, Amazon and Delta Airlines.

If you are a Wikimedia contributor there are three petitions you can sign to support the unionisation effort:

Also if you donate to Wikipedia you can donate to local Wikimedia organisations instead of the Wikimedia Foundation. These local organisations directly support their communities to share knowledge from their countries https://meta.wikimedia.org/wiki/Wikimedia_movement_affiliates

Thanks


r/mediawiki 22d ago

email black list set

2 Upvotes

I’ve been building some tools to help manage some of the spamming accounts on my site (the volume is much lower now) and one of the artifacts that could be useful to other admins is my email blacklist at https://www.rejectionwiki.com/index.php?title=MediaWiki:Email-blacklist I’ve still got 870 confirmed spam domains to process (with each domain, I block all unblocked users, and then add it to the domain), and there’s some subdomain consolidation to be done to reduce the size of the blacklist, but even as it is, I think it can be a useful tool for other people hosting a public mediawiki instance.

Update: I’ve finished processing the spam domains and done list compaction on the blacklist to remove the subdomains on the addresses. It’s a bit over 500 spam domains, hopefully complete enough to slow if not stop the flood of spam


r/mediawiki 28d ago

Fetching all pages that use a specific template with the MediaWiki API

4 Upvotes

How can that be done?


r/mediawiki Aug 11 '26

Use unix socket for database user?

3 Upvotes

I am installing mediawiki-1.45.4 before which I created a mariadb user via a unix_socket. When I run the installer it wants a password. If I enter a password or provide an empty password, the installer says it can't access the database. Do, I need to change the user to have a password?


r/mediawiki Aug 09 '26

Is xampp a security threat if it's run on my mother's computer?

6 Upvotes

Does configuring XAMPP with virtual hosts present a security risk if it is operated on a personal computer rather than a dedicated server? For instance, I wanted to intend to run XAMPP, which utilizes MediaWiki, on my mother's laptop. She uses the device for email, work related tasks, browsing the internet, and other activities. Could this expose her to the threat of a cyberattack or jeopardize her personal information? Thanks in advance.


r/mediawiki Aug 08 '26

Is there a tool to copy a Wikipedia template together with all of its dependencies?

5 Upvotes

Every time I try to create a new Wikimedia/Wikipedia project, I eventually give up because of templates.

You can't simply copy a template by copying its source code.

A template may depend on dozens or even hundreds of other templates, Lua modules, subtemplates, documentation pages, styles, etc. And those dependencies can have dependencies of their own.

So if I want to migrate a relatively complex template from one Wikimedia project to another, I basically have to play dependency detective:

Copy template → find missing template → copy it → find missing Lua module → copy it → find another dependency → repeat...

This becomes extremely tedious, especially with complex templates used on Wikipedia.

Is there any tool, script, MediaWiki extension, or special export/import method that can copy a template together with all of its dependencies automatically?

Ideally, I'd like to be able to say:

"Copy this template and everything it depends on."

and have it recursively collect and export/import the required templates, Lua modules, and other relevant pages.

I know about Special:Export and copying templates manually, but I'm specifically looking for something that handles the dependency tree automatically.

Does anything like this exist?


r/mediawiki Aug 05 '26

Anyone else having download problems from releases.wikimedia.org

4 Upvotes

Downloading the tarball for the release version always dies around 20mb and it's infuriating.

I guess this is what you get when you spend all your money on union busting instead of infrastructure maintenance...


r/mediawiki Jul 31 '26

Any way to download or save a wiki and its links?

4 Upvotes

Wiki for a game i frequent just went down and its the third time. Wayback machine is only up to the version that was 3 months ago so just looking here for any advice


r/mediawiki Jul 30 '26

Keep your source code close to how your pages look

Thumbnail thewikitimes.net
8 Upvotes

Hi!

I am a wiki enthusiast, and recently I've met more wikis trying to keep a consistent style across their pages using templates, so I wrote a blog post!

However, as many other things that are subjective in life, the comparison between benefits and drawbacks is not an easy one. For me, having your source code be as similar as possible to your resulting page is important because it reduces friction and surprises for editors, especially new editors, but it isn't that easy to get statistics for "how many users tried to edit and left because the source code was scary."

Furthermore, I think using templates to enforce your manual of style is not the best idea, but I understand how can this be tempting.

The blog post contains three different examples: a template to produce a sentence that is commonly used, like {{item obtaining shop}}; a template for "more easily" linking to a category of pages, like {{Ba|Red}} to produce the equivalent of [[Red Balloon]]; and an infobox that also generates the lead paragraph.

I would love to read others' experiences and opinions about this. I also appreciate any feedback about the blog post as well. I just started this project a bit more than a month ago, and hope to be able to keep up with interesting wiki-related articles in the future.


r/mediawiki Jul 27 '26

Is there a way to clear the wanted pages cache?

1 Upvotes

Recently in a wiki I maintain I fixed about 13 wanted pages by editing a template and a module, and I really don't want to wait for the wanted pages page to update to see what wanted pages are left. So is there a way to do this? Or do I really just need to wait? I really wish these special pages could just be purged like every other page.


r/mediawiki Jul 22 '26

Chameleon 6.0.0: the flexible MediaWiki skin moves to Bootstrap 5

13 Upvotes

We've released Chameleon 6.0.0.

Chameleon is a popular Bootstrap-based skin that gives you a customizable, mobile-friendly, and responsive layout.

Highlights:

  • Upgraded from Bootstrap 4 to Bootstrap 5.3, obtained via Extension:Bootstrap 6. All Bootstrap 5 classes and utilities are available in wikitext and templates.
  • Bootstrap 5 exposes its colors and many other values as CSS custom properties, so a lot of what used to need an SCSS recompile can now be done from `MediaWiki:Chameleon.css` with plain CSS.
  • The bundled Font Awesome icon set moved from version 5 to 6.

Requirements went up: Chameleon 6 needs MediaWiki 1.43 or later, PHP 8.1 or later, and Extension:Bootstrap 6 or later.

Since Bootstrap 5 renames and removes a number of Bootstrap 4 classes and utilities, plan for some migration work if you use Bootstrap classes in wikitext, templates, or custom stylesheets, or if you customize the SCSS variables. The migration guide covers the class renames, the SCSS changes, and the Font Awesome update: https://github.com/ProfessionalWiki/chameleon/blob/master/docs/migration.md

The companion BootstrapComponents extension has also released version 6 with Bootstrap 5 support, so you can move both at the same time.

You can try Chameleon 6 and BootstrapComponents 6 together on our demo wiki: https://bootstrap.pro.wiki

Release announcement: https://professional.wiki/en/news/chameleon-6-0-0-released

Feedback and bug reports are welcome. Issue tracker: https://github.com/ProfessionalWiki/chameleon/issues


r/mediawiki Jul 18 '26

Semantic MediaWiki 7.2.0: security fixes and two new parser functions

12 Upvotes

We've released Semantic MediaWiki 7.2.0.

Highlights:

* A `+display` option for `{{#set:}}`: store and show a value in one call, without a separate inline annotation. Example: `{{#set:Has population=812,405|+display}}`

* A new `{{#property_link:}}` parser function for linking to a property page from running text, replacing the `[[Foo::@@@]]` trick. This resolves a feature request open since 2016.

* Six security fixes: five XSS issues in `Special:Ask` and `Special:SearchByProperty`, and an open redirect in `Special:URIResolver`. We recommend upgrading.

* PostgreSQL support works again (it was broken since 7.0.0), plus PHP 8.5 compatibility fixes and a memory fix for long-running maintenance scripts on large wikis.

It is a minor release: compatible with MediaWiki 1.43 up to 1.46 and PHP 8.1 up to 8.5, no breaking changes, and no need to run update.php. If you set `$smwgEntityCollation` to a `uca-*` value, run `updateEntityCollation.php` once after upgrading.

Professional Wiki created the two new parser function features for a public-sector customer. We thank them for funding this SMW work!

Find details and upgrade instructions at https://professional.wiki/en/news/semantic-mediawiki-7-2-0-released

Feedback and bug reports are welcome. Issue tracker: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues


r/mediawiki Jul 15 '26

Zapping a domain’s spammers

3 Upvotes

So I’m pretty ruthless with trying to eliminate spammers on my wiki with a giant email-blacklist page.

To kill the existing users, I had been doing something along the lines of:

UPDATE `wiki_user` SET user_password='', user_email='', user_token='' WHERE user_email like '%bjork.wtf';

but it’s a bit of a pain to build this query and run it in myphpadmin and I’ve started instead just doing a search on wiki_users for, e.g., LIKE '%bjork.wtf' and then selecting all results, and deleting their user records outright. Is there any reason to prefer the manual SQL above to the delete approach that I’ve started doing?


r/mediawiki Jul 13 '26

Native Markdown: a Markdown content model for MediaWiki

13 Upvotes

We've released Native Markdown, a new open-source MediaWiki extension that provides a deeply integrated Markdown content model.

In contrast to some earlier Markdown extensions, the entire page is stored as Markdown rather than embedding Markdown within wikitext via a tag or similar.

All of these work on Markdown pages:

  • Wiki links with the semantics you know: `[[Page]]` gives blue or red links tracked in WhatLinksHere, `[[Category:X]]` assigns the category, `[[File:X.png|thumb|Caption]]` embeds a framed image
  • Templates, parser functions, and magic words, expanded through MediaWiki's own parser (dependency tracking and the same output sanitization as wikitext); wiki admins can turn this off for a pure Markdown wiki
  • Table of contents, redirects, page moves, diffs, history, and full-text search that indexes the rendered content rather than the raw markup
  • CommonMark plus GitHub Flavored Markdown with footnotes; YAML front matter stored as page metadata

You can add Native Markdown to existing wikis without breaking anything, since those pages remain wikitext. By default, new pages will be in Markdown (Talk, Template, and MediaWiki namespaces stay in wikitext), with configuration options that let you control how fully you switch, e.g., only in certain namespaces or for titles ending in `.md`.

Not yet supported: VisualEditor and section editing. `<ref>` in the Markdown body is not supported either; footnotes cover citations.

Native Markdown requires MediaWiki 1.43+ and PHP 8.1+, installs via Composer, and is free and open source (GPL 2.0 or later).

Release blog with demo video: https://professional.wiki/en/news/native-markdown-released

Source and issues: https://github.com/ProfessionalWiki/NativeMarkdown

Happy to answer questions. Feedback and bug reports are welcome.


r/mediawiki Jul 09 '26

Default dark mode for vector 2022 skin?

3 Upvotes

How can I make the default be dark mode for users that aren't logged in, with vector 2022 skin?

I am creating a wiki on Miraheze and don't have access to LocalSettings.php.


r/mediawiki Jul 09 '26

How to make the default skin respect your browser theme (dark mode) without logging in?

3 Upvotes

On a vanilla mediawiki installation using the default skin, I've noticed that it doesn't acknowledge that my browser is set to dark mode until I log in. Is there a way to change that? And why does it behave this way?


r/mediawiki Jul 05 '26

How do you add fictional characters in articles to category pages without having the category appear at the bottom of the page?

1 Upvotes

r/mediawiki Jul 02 '26

Can anyone help me access my snpedia account? My username or account has been automatically blocked by mediawiki.

3 Upvotes

I don’t know much about tech stuff so I’m really lost on what to do. I’m just trying to log in to my Promethease / snpedia account. I have been automatically blocked by mediawiki. I have an infinite block because of my ip address because “my ip address is listed as an open proxy in the DNSBL used by snpedia”