Skip to main content
Share Your Experience: Take the 2024 Developer Survey
6 votes
Accepted

How can I see all pages that were created by a specific Wikipedia user?

There's a tool for that: https://tools.wmflabs.org/xtools/pages/ (XTools has some other useful tools as well) Alternatively, on any specific wiki, you can also show all pages created by any named ...
Wolf's user avatar
  • 1,299
5 votes

Is there a way to filter Wikipedia tables?

The Wikipedia Table filter Greasemonkey script does what you want: Script Summary: Filters wikipedia tables by removing all rows that have an undesired value, or by deleting certain rows and ...
naught101's user avatar
  • 153
4 votes

Line by line display of author responsible for contribution on MediaWiki page

Inspired by previous answers, I've adapted the Mercurial script (Pastebin) shared in @eug's solution to instead use Git as backend. mediawiki2git * GitLab Simple Python script to convert MediaWiki ...
amonthedeamon's user avatar
4 votes
Accepted

How do I create a simple template that adds a category in a Mediawiki template?

Square brackets instead of braces. <noinclude>This is a template to mark articles that needs an update. All these articles are listed under [[:Category:Articles that needs update]]</...
Rob Kam's user avatar
  • 156
4 votes
Accepted

Is it possible to do basic transformation of text in a MediaWiki template?

For lower case use {{lc:...}} parser function. For replacement in the string, use {{#replace:(string)|<nowiki> </nowiki>|-}}. Note that the space as parser function parametre has to be ...
Alexander Mashin's user avatar
3 votes
Accepted

How to upload a "fair use" image to Wikipedia - Wikimedia does not allow it

"Fair use" media files are not allowed on Commons https://commons.wikimedia.org/wiki/Commons:Fair_use If you want to include a fair use image in Wikipedia, you'll have to use the local language ...
Leo Wattenberg's user avatar
3 votes
Accepted

Is it possible to search MediaWiki sites using regular expressions?

It's available and powered by the CirrusSearch (based on ElasticSearch) which is the used search engine in the MediaWiki sites, and the Wikimedia platform. Some usage examples: Note: Full guide ...
arieljannai's user avatar
  • 3,924
2 votes

Is there a way to download a list of all Wikipedia categories?

Use the API. A list of API clients is here: https://www.mediawiki.org/wiki/API:Client_code For example, using the command-line wikiget: ./wikiget.awk -z wiktionary -c "Spanish proper nouns" > ...
Aleksandr Dubinsky's user avatar
2 votes

Line by line display of author responsible for contribution on MediaWiki page

You might prefer to convert the history of the page to Git, and then use your favourite IDE/command-line tools to search the history. Python Script Save the following script in mwdump on your PATH: #!/...
Att Righ's user avatar
  • 194
2 votes

How do I write an asterisk at the beginning of a line in wiki syntax without transforming into a list item?

The other answers didn't seem to work for me in an Azure DevOps\VSTS wiki (which purports to be 'markdown'). What did work was using '\' as an escape character i.e. \* Hello world, this sentence is ...
d219's user avatar
  • 121
2 votes

How to export all pages from MediaWiki to hierarchy of HTML files

I recently had the task to export a small MediaWiki to HTML. I wrote a script in Python. It is not perfect, but covers links between the pages even with anchors and links to non-existing pages, images,...
Timotheus Pokorra's user avatar
2 votes
Accepted

How can you search meta-data tags in Media Wiki / Wikipedia?

In Wikipedia, the information from infoboxes is often retrieved from WikiData. It can be queried there. If you have your own installation of MediaWiki, you can install Semantic MediaWiki and enrich ...
Alexander Mashin's user avatar
2 votes
Accepted

About installing SimpleMathJax extension for Mediawiki

I'm the one of the authors of SimpleMathJax. "Heavy" means MathJax has many resources including styles, scripts and fonts(!). So, I recommended using CDN. But MathJax is much faster now. ( Actually, "...
jmnote's user avatar
  • 36
1 vote

How can I get rid of Dark Mode from MinervaNeue on Desktop Wikipedia?

I found the issue myself. Ensure that you are not using the Dark Mode gadget from User:Volker E. (WMF). You can toggle this gadget by navigating to the gadget subsection of user preferences and ...
fairground's user avatar
1 vote

MediaWiki - sort simple list

If you want to be able to sort a simple list server-side, install Scribunto, create Module:Utils containing return { sort = function (frame) local trim = mw.text.trim -- Since ...
Alexander Mashin's user avatar
1 vote

How to automatically show an outdated warning message after "n" days in MediaWiki?

An ArticleViewHeader hook maybe? $wgHooks['ArticleViewHeader'][] = function ( &$article, &$outputDone, &$pcache ) { $lastUpdate = new DateTime( $article->getTimestamp() ); $...
Tgr's user avatar
  • 492
1 vote

MediaWiki plural links

No. If you really want you can write a template that containes something like [[{{{1}}}s|{{{1}}}]] and is called like {{p|widget}}. Probably does way more problems than worth it though. Or you can ...
Tgr's user avatar
  • 492
1 vote
Accepted

Multiple uses of the same footnote

Use <ref name="name"></ref> with the footnote you intend to reuse. For the example reference: <ref name="name">{{Cite web|url=http://stackexchange.com/sites?view=list#traffic|title=...
user598527's user avatar
1 vote

How to get a list of all users having contributed to the current page shown on page?

If you can install extensions, the contributors extension will allow that. You could also get the data via the API. Media Wiki documents it here. In Wikipedia the following URL will get the ...
Tom Woodward's user avatar
  • 1,862
1 vote

Mediawiki user group for .edu email address?

Try $wgAutopromote / AutopromoteCondition.
Tgr's user avatar
  • 492
1 vote

"Template:Template other" is on the top of the page despite the fact I didn't put it there

I note that there should be a rendered [[template:infobox]] on this preview, which is (apparently, it may well have been snipped from the right-hand side of the image) missing. I believe [[Template:...
Circeus's user avatar
  • 385
1 vote
Accepted

Transclude a page from another language or another project

It's not possible. As specified in the documentation: The general syntax for transclusion on Wikipedia is {{Namespace:Pagename}}, where Namespace:Pagename describes the title of a Wikipedia page. ...
Glorfindel's user avatar
  • 2,311
1 vote

Is there a tool to clean up Wikipedia articles where there are duplicate references?

I've written a tool for this purpose, but it can only do exact match on <ref> tags (at least for now). It's not smart enough to detect, for example, two different references having say 90% ...
davidhcefx's user avatar
1 vote

Is there a tool to clean up Wikipedia articles where there are duplicate references?

I went on the wikipedia-en-help IRC and asked. Someone suggested using Refill as a solution and it worked quite well but is exceptionally slow so I hope to find an alternative.
RayB's user avatar
  • 181
1 vote
Accepted

What is the easiest way to fix multiple dead links a article Wikipedia?

InternetArchiveBot for example has a bunch of link rot related services.
Tgr's user avatar
  • 492
1 vote
Accepted

How to cancel MediaWiki's password reset’s email count?

Via user_newpass_time, e.g. UPDATE user SET user_newpass_time = 20000101000000' WHERE user_name = '...';
Tgr's user avatar
  • 492
1 vote
Accepted

Wikipedia API - get random page(s) using rest api

Using the command line: curl -sL "https://en.wikipedia.org/api/rest_v1/page/random/summary" | jq Using the Python programming language: import requests page = requests.get("https://en.wikipedia.org/...
Edwin Cabrera's user avatar
1 vote

Wikipedia API - get random page(s) using rest api

Simply add the -L option and, usually, you don't need the -X GET option, because it's the default: curl -L "https://en.wikipedia.org/api/rest_v1/page/random/summary" or simply use wget: wget "...
Dominic108's user avatar
1 vote

MediaWiki: activate Visual Editor for all NameSpaces by default

The idea is to use the namespace id in your LocalSettings.php. As a consequence, you can configure your future namespaces in advance. When you will create your next namespace, it will be already ...
C. Laziosi's user avatar
1 vote

Home directory showing-up twice in Mediawiki links

$wgScriptPath is probably misconfigured.
Tgr's user avatar
  • 492

Only top scored, non community-wiki answers of a minimum length are eligible