Questions tagged [wikimedia]

Wikimedia is the foundation running Wikipedia and other sites. Most sites in the Wikimedia family are built on MediaWiki.

The Wikimedia Foundation runs a number of projects, including Wikipedia, Wiktionary and Wikinews. Use this tag for questions specific to the Wikimedia family of wikis (e.g. Wikimedia settings, or custom extensions).

Consider also:

  • if your question has to do with the MediaWiki software
  • if your question has to do with template code of MediaWiki
  • if your question is specific to Wikimedia Commons
  • if your question is specific to Wikipedia
  • if your question has to do with the use of the API on Wikipedia
152 questions
14
votes
2 answers

MediaWiki removed MathJax. Can MathJax be forced on client side another way?

Much to my displeasure, MediaWiki has recently disabled support for MathJax (ticket: T99369) rendering of TeX formulae wikipedia-wide. Since me (and others, if you skim the ticket's discussion thread) find the rendering with the remaining options…
Jinxed
  • 356
  • 2
  • 16
13
votes
4 answers

How to add custom global javascript to mediawiki

How can I add a custom javascript file (let's say custom.js) to a mediawiki installation? For instance, if I put custom.js under the folder resources/lib/, how do I get that to be loaded on every page? I am not trying to do this as part of an…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
8
votes
4 answers

Wikipedia API: how to get the number of revisions of a page?

Anyone know how to get the number of revisions of a wikipedia page using mediawiki API? I have read this API documentation, but can't find the related API: Revision API
masu.mo
  • 783
  • 1
  • 12
  • 22
8
votes
3 answers

Retrieve a list of all Wikipedia languages programmatically

I need to retrieve a list of all existing languages for a certain wiki project. For example, all Wikivoyage or all Wikipedia languages, just like on their landing pages. I prefer to do this via MediaWiki API, if it's possible. Thanks for your time.
Damjan Pavlica
  • 31,277
  • 10
  • 71
  • 76
8
votes
1 answer

How to parse Wiktionary API?

There is a lack of online resources that demonstrate how I might parse a Wiktionary API response, that looks like this: { "query": { "pages": { "40915": { "pageid": 40915, "ns": 0, …
Snowman
  • 31,411
  • 46
  • 180
  • 303
6
votes
1 answer

SPARQL Wikidata - Retrieve members of Wikimedia Category

I want to retrieve the members of the Wikimedia Category American rock singers. I must use Wikidata and it tells me to use P31 with Q4167836 . The query below only returns information about the Category page and not about its members. Is there any…
grajkowski
  • 349
  • 1
  • 3
  • 14
6
votes
1 answer

Is there any way to get wikipedia pageview statistics per page at the *country* grain (instead of simply language)?

I see dumps.wikimedia.org/other/pagecounts-raw/, for example, but no country-specific data there...
6
votes
1 answer

How to Code a Wikimedia Link So It Opens in a New Tab or Window

I'm using a wiki based on the wikimedia engine, i.e same wiki technology used by wikipedia. How do I code a link in the wiki language that will open the target URL in a new window or tab. Essentially, I want the wiki language equivalent of:
Carl Parker
  • 1,005
  • 1
  • 8
  • 10
5
votes
2 answers

How to Login to MediaWiki (Wikipedia) API in Node.js

I'm trying the Wikipedia client login flow depicted in the API:Login docs, but something wrong happens: 1) I correctly get a token raised with the HTTP GET https://en.wikipedia.org/w/api.php?action=query&meta=tokens&type=login&format=json and I get…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
4
votes
1 answer

Searching for files in Wikimedia / Wikipedia

I'm trying to search for specific file types in Wikimedia commons API with not much of luck. Current status: I'm currently able to fetch images with jpeg, png, svg formats normally using this query…
4
votes
1 answer

Using global/system git-review config files (git-review.conf) is deprecated

Today I started to contribute for the Wikimedia Gerrit community with Git and GitHub Desktop on my Windows 10 (PC). First I installed the git-review package with Pip: $ pip install git-review After I loged in, I cloning and creating a new branch…
Suriyaa
  • 2,222
  • 2
  • 25
  • 44
3
votes
0 answers

How to parse Wiktionary templates and modules

I am having hard time to parse modules and templates Actually i could not find how to get that data with API Here i will give simple example https://en.wiktionary.org/wiki/%C3%A7al%C4%B1%C5%9Fmak It uses many modules and templates and parsed results…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
3
votes
0 answers

How to get the cutoff timestamp or lastrevid for a given Wikidata JSON dump?

I am using Wikidata enriched with other data sources and I must ingest the entire Wikidata JSON dump in a dev graph database of mine. That's easy and once that's done, I want to keep my copy updated by querying the RecentChanges and LogEvents API…
Lazhar
  • 1,401
  • 16
  • 37
3
votes
1 answer

Mediawiki API Sandbox - get all translation alternatives

I wish to retrive with wikimedia api (here it is the Sandbox) all translation versions of a page. As an example, in this page https://en.wikipedia.org/wiki/Category:1935_births I need to retrive all links that are on the left sidebar after the…
Luca
  • 848
  • 1
  • 14
  • 33
3
votes
1 answer

Regex: Need to find the same sequence of characters two times, then wrap a html span around it

In my wiki I have some source code like the snippet posted below. I have made each MySQL statement in capital letters in bold, by wrapping three apostrophes around it as wikimedia requires. I now also want to give each statement the color #909…
Emil Vissing
  • 460
  • 4
  • 19
1
2 3
10 11