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
1
vote
1 answer

How to get count of all user patches?

I went through the api doc to get the data from it. I want to get the details of count of all the commits that a user made with the username. Is there any possible way to perform it. I tried searching many of the API's but I could not find a…
Sandesh Ghanta
  • 385
  • 2
  • 4
  • 16
1
vote
0 answers

Wikimedia show page not found after set short url

i want to remove index.php from mediawiki url. After that i can't access to main page. What i did: Add to LocalSettings.php following lines: $wgScriptPath = "/mediawiki"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true; Created .htaccess: Enable…
NorrPL
  • 89
  • 1
  • 1
  • 7
1
vote
1 answer

Wikimedia API: How to get page contents

I am trying to get the content of the wikimedia pages like these ones: https://meta.wikimedia.org/wiki/MediaWiki:Centralnotice-FR2015_translations-smallamount-error https://meta.wikimedia.org/wiki/MediaWiki:FundraisingBanners/SmallPrint-2017 I am…
SoldierCorp
  • 7,610
  • 16
  • 60
  • 100
1
vote
1 answer

Does Wikimedia supports other formats for storing data rather than wiki text?

I have some XML files that I need to store in Wikimedia. The obvious alternative will be to parse the content, format it with WikiText markup and store it. I would like to know if Wikimedia supports natively (or through plugins) other formats to…
nsn
  • 193
  • 10
1
vote
0 answers

Is it possible to create a dynamic Wikipedia portal subpage using URL parsed arguments?

I manage the Chronic Pain project on Wikidata and I have in the idea to build a portal in Wikidata. I would like to create for each concept related to chronic pain a webpage that gather all links to associated concepts from wikidata, as well as…
Xiiryo
  • 3,021
  • 5
  • 31
  • 48
1
vote
1 answer

Finding the world center on blank SVG maps available on wikipedia

I need to plot geo locations (lat, lon) on svg maps just like it's done in this demo: http://people.opera.com/danield/svg/where-am-i.svg I however have 3 blank maps not displaying the whole world. One of them is…
victor n.
  • 658
  • 1
  • 7
  • 14
1
vote
0 answers

Retrieve item, its pageview and geographical attribution in one Mediawiki API call

This is a comprehensive and complete version of the answer I've already asked a while ago at Get location with Wikimedia API. I happened to dig through all the Mediawiki API, GeoData API and Wikidata Query SPARQL Service documentation for days,…
chainastole
  • 85
  • 1
  • 3
  • 11
1
vote
0 answers

Wikimedia Commons file not found

Following up on this question, I don't understand why I can't get what I look for: the image of a Wikipedia Article, that of Le Monde. This request gives me the claims I…
ted
  • 13,596
  • 9
  • 65
  • 107
1
vote
0 answers

wikipedia API: how to get JSON data corresponding to https://it.wikipedia.org/wiki/?

I need to get JSON data corresponding with this page https://it.wikipedia.org/wiki/Viola In general, I need to have the main wiki page for a specific noun (in the example Viola), as a JSON structure. Incidentally for italian language nouns. BTW,…
Giorgio Robino
  • 2,148
  • 6
  • 38
  • 59
1
vote
3 answers

How to download wikipedia images dump

I am trying to make offline version of wikipedia. But the problem is I am not able to download image dump of wikipedia. All they provide is SQL with only meta image info, there is not actula images anywhere. Dump Link Also, I am using wikimedia to…
Abhishek
  • 1,008
  • 1
  • 16
  • 39
1
vote
3 answers

javascript select object key that changes

I am using the mediaWiki API to get a random article like: https://en.wikipedia.org/w/api.php?action=query&generator=random&grnnamespace=0&format=json&grnlimit=1 An example response: { "batchcomplete": "", "continue": { "grncontinue":…
user6514554
1
vote
1 answer

Validate language code for Wikimedia languages

I have a shell script that uses Wikidata Query Service (WDQS) to get required data. The SPARQL query that run WDQS takes input parameter language code. Is there a way that I can check in shell script if the input language code is a valid Wikimedia…
Sasidhar
  • 61
  • 1
  • 6
1
vote
2 answers

Retrieving JSON data from Wikipedia API using jQuery

I have tried every combination I could find on here and the Wikimedia API site, still I can't seem to get any data returned. This is my code, $('#go').click(function () { var str = $("#input").val(); var fullstr =…
F. Moss
  • 55
  • 1
  • 7
1
vote
1 answer

How to query wikimedia commons images with descriptions?

I'm trying to build a gallery of sorts so that my user can search for images on various topics that are in the public domain. I'm trying to pull down a list of images from wikimedia but with their descriptions or "alt" descriptions. I can't figure…
Coco
  • 1,550
  • 3
  • 24
  • 43
1
vote
2 answers

python retrieve text from multiple random wikipedia pages

I am using python 2.7 with wikipedia package to retrieve the text from multiple random wikipedia pages as explained in the docs. I use the following code def get_random_pages_summary(pages = 0): import wikipedia page_names =…
thebeancounter
  • 4,261
  • 8
  • 61
  • 109