Questions tagged [mediawiki]
MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other projects hosted by the non-profit Wikimedia Foundation and by many other wikis.
3,465
questions
1
vote
2
answers
33
views
MediaWIki API - How to parse wikitext that contains Lua templates?
I'm using a wikipedia API (https://www.mediawiki.org/wiki/API:Parsing_wikitext) to get the content of a Wikipedia pages in wikitext format and then parse it manually.
Some pages that I wanted to parse ...
0
votes
2
answers
15
views
Mediawiki 1.37.2 Visualeditor: Error contacting the Parsoid/RESTBase server: (curl error: 77) Problem with the SSL CA cert (path? access rights?)
Fresh install of Mediawiki 1.37.2 on Ubuntu gives an error with the visual editor:
Error contacting the Parsoid/RESTBase server: (curl error: 77) Problem with the SSL CA cert (path? access rights?)
in ...
0
votes
0
answers
25
views
Swapping data around equal signs in LUA for a MediaWiki module
This might be a very basic question for someone who knows how to resolve this issue. Basically, I have, for example, FileEN1, FileEN2, and FileFR1. Here is a little snippet of FileEN1.
return{
["...
0
votes
2
answers
42
views
MediaWiki treats CLTF text as RCE
Help. I have a weird problem on a MediaWiki 1.37.2 install. We (me & the musician) are trying to get a wiki going for Clan Lord Tune Format music (like midi but with a–g, "." for flat, &...
0
votes
1
answer
20
views
WikiMedia API - How to determine which portal(s) a Page belongs to?
I wish to determine whether a given Wikipedia page belongs to a certain Wikipedia Portal using the MediaWiki API. So far, I have been experimenting with the page properties of the API but I cannot ...
0
votes
3
answers
73
views
Elasticsearch query for wikipedia pages
I have indexed all wikipedia pages on elasticsearch, and now I would like to search through them according to a list of keywords that I have created. The documents on elasticsearch have only three ...
0
votes
0
answers
18
views
field in semantic mediawiki with options where label and value are different
How can I have a select field (e.g. combobox, tokens) with options where label and value are different in semantic media wiki?
I tried "Allows value list" with json. The list works but ...
0
votes
0
answers
39
views
How to set up regular dumping of standalone Wikibase content as ttl for loading into Blazegraph
So I'm setting up an instance of Wikibase on a server and trying to get a standalone version of the Wikidata Query Service, I'm having trouble following the tutorials in this regard, especially in ...
-2
votes
1
answer
31
views
MediaWiki breaks when I put C++ code in preformatted text
I want to use MediaWiki to document a C++ coding project. I am dropping code snippets into a preformatted text block. The problem is, when I include a line of code like:
if(x == y)
it breaks the page.
...
0
votes
1
answer
26
views
Turning off the async attribute in MediaWiki resource loader script tag
I have a dependency, and I think the asynchronous loading of MediaWiki resources (jQuery specifically) is causing a problem. Is there a way to switch off this attribute in a MediaWiki setting?
1
vote
0
answers
77
views
Mediawiki 1.37 - VisualEditor - "Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached" (sometimes not always)
Please help, I am stuck. :)
I've searched related threads which could not help me.
My version of Mediawiki is 1.37.2
While editing a page with VisualEditor, I sometimes get the following error (...
0
votes
1
answer
35
views
mediawiki API does not see the csrf token
When running my own mediawiki on localhost I run into a problem with the api endpoint for editing a page. The api works fine otherwise. For instance when querying tokens I get the following output:
$ ...
1
vote
1
answer
40
views
Scroll to top functionality not working on Firefox
I am using this
$(function() {
$('<button onclick="topFunction()" id="topBtn" title="Go to top"></button>').insertAfter('div#mw-content-text');
});
// When ...
0
votes
1
answer
14
views
Use Ajax to Retrieve MediaWiki Full Image URL
MediaWiki has a url that directs to the full image url.
<img src=
"https://www.mediawiki.org/wiki/Special:FilePath/Wikimedia_Hackathon_Prague_2019_-_Group_Photo_-_CLK_-_cropped.jpg"/...
0
votes
0
answers
16
views
CSS for dynamic table with MediaWiki syntax
I have this table wikicoded into one row of many many cells. It's formatted so that it always displays four cells per row, without having to change the wikicode to move the (nonexistent) |- when cells ...
0
votes
0
answers
111
views
Apache2 404 Error when accessing my websites from the internet
Problem:
I get the following error when trying to access a website on my homeserver through a different network:
Not Found
The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) ...
0
votes
1
answer
42
views
Mixing JS and PHP variables
I'm using MediaWiki and looking to have a different Google Analytics tag load for each wiki dependent on the database name. I'm struggling with how to do this, however, given the GA tag uses ...
0
votes
0
answers
13
views
Showing only user-created category (not maintenance categories)
I've spent some hours trying to understand how to sort out my categories: I'd like to start from checking categories with 0 or 1 article inside.
So I've tried to visualize only the most important ...
0
votes
0
answers
24
views
Mediawiki-Docker cannot connect the database
I am setting the MediaWiki-Docker up on my server (os: Ubuntu 20.04) according to the official documentation. I tried to visit my website and catch an error when I finish all the steps.
The error is:
...
0
votes
1
answer
19
views
On button click save a flag to database in mediawiki 1.3
I am a fresher in mediawiki. I was trying to implement Manual:Tag extensions/Example (https://www.mediawiki.org/wiki/Manual:Tag_extensions/Example). But the example is based on mediawiki version < ...
0
votes
0
answers
22
views
How to search Wikipedia API for pages by location type?
The WikiPedia API shows a way of searching for pages using properties like coordinates and a radius: https://www.mediawiki.org/wiki/Extension:GeoData
Is it possible to make that query and to also ...
0
votes
0
answers
47
views
Unable to login media wiki application as cookies are disabled [duplicate]
My application was working fine but suddenly I am getting below error.
I refered Help with logging in link from login page
My error is Resolved by removing below line from apache2.conf.
Header set Set-...
0
votes
1
answer
31
views
Could not normalize image parameters for file.png - MediaWiki
I'm using:
MediaWiki 1.37.1
PHP 7.4.3 (fpm-fcgi)
Elasticsearch 5.6.16
VisualEditor 0.1.2
When I go to a page and click on Edit > Insert > Images and media; And when I start searching for files ...
0
votes
1
answer
18
views
How do I import the mediawiki-core php module?
I want to edit and create pages and make revisions to a local wiki that I want to play around with. For development purposes I would like to interact with the database directly rather than the REST ...
1
vote
1
answer
57
views
Where does the inconsistency in behaviour of Mediawiki templates come from?
This question pertains to the inconsistent behaviour of Mediawiki syntax and its templates and parser functions.
When placed directly in a wiki page, both these snippets work as expected:
{{#ifeq:{{{1|...
0
votes
2
answers
63
views
Mediawiki: how to update page content from external script?
I would like to update the Main_Page of our wiki from a script run by cron.
Apart from the page content itself, in pagecontent.old_text, what else do I need to update?
If I only update the "...
0
votes
1
answer
48
views
Mediawiki database backups growing and shrinking randomly?
I have a backup script that uses mysqldump to dump a Mediawiki database, then archives it with gzip. It seems to be working okay, but I am curious why the size of the archives appear to grow and ...
0
votes
0
answers
28
views
How to use BeautifulSoup to find a tag with particular attribute
Here is the attribute:
data-mw='{"parts":[{"template":{"target":{"wt":"reflist","href":"./Template:Reflist"},"params":{},...
0
votes
0
answers
34
views
Set up apache web server to route traffic from multiple places to one site
I want to achieve that mutiple subdomains, like sub1-domain.org, sub2-domain.org, sub3-domain.org will be routed to the one and only site at my apache web server in the directoy C:\wamp\www\mediawiki. ...
-1
votes
1
answer
22
views
How to add flags to MediaWiki?
I know how to add flags on Wikipedia but I'm trying to add flags on MediaWiki and don't know how. I am new to MediaWiki.
When I use "flagicon|GBR" on my main page, it comes up at "...
0
votes
0
answers
61
views
MediaWiki on Heroku: mbstring, intl PHP extensions missing
I'm trying to install MediaWiki on Heroku, and I'm running into a PHP issue. I'm using the heroku/php build pack.
MediaWiki says:
MediaWiki 1.39 internal error
Installing some PHP extensions is ...
0
votes
0
answers
17
views
Is there a way to embed a PowerBi dashboard into a wiki page?
I’m trying to set up a PowerBi dashboard into a wiki page without having to click on a link to go to an external page. I’ve tried using the iframe html link provided but it doesn’t work out.
I’ve ...
0
votes
1
answer
46
views
In Mediawiki's tinymce extension, how to enable/disable buttons?
In https://www.mediawiki.org/wiki/Extension:TinyMCE, there a section with Toolbar buttons including a Citation/reference button which looks like this:
Furthermore, it says: "Depending on ...
0
votes
0
answers
29
views
Unicode page title in MediaWiki not displayed properly in Discord opengraph
I put opengraph tags on MediaWiki. I checked with the developer tool, and it seems that it went in without any problems. However, when I shared documents, I found that the Unicode string appears as ...
-1
votes
0
answers
32
views
Mediawiki Watermark (Lynx) how to get rid off
this picture at the link blow is ugly to me and I'd like to get it rid off! Have you any suggestions / hints about the image-filename (CSS ???) and the file referencing from it?
Thanks in advance!
...
-2
votes
1
answer
44
views
Download entire history of a Wikipedia page in HTML Format
I want to download the entire revision history of a single article on Wikipedia in HTML format, thanks to this question question, I am getting the entire history of a Wikipedia page in a JSON format ...
0
votes
1
answer
33
views
Semantic MediaWiki Get page links?
I have a page set up as a disambiguation page inside of Category:Disambiguations that looks like this:
'''Sword''' may refer to one of the following:
* {{Link|Item|Blue Sword}}
* {{Link|Item|Yellow ...
0
votes
1
answer
55
views
date/time of last edit to entire wiki
How can I find the date/time of the last edit to my entire wiki? I would like to write this date/time to a text file and then present it as info on one of my wiki pages as described here using the ...
0
votes
0
answers
21
views
Strange content shows when Mediawiki include NoteTa
I have a wiki page includes NoteTa by add {{NoteTA|G1=MediaWiki|G2=IT}} in my wikitext.
Then I get a quite large text show on my page. like this:
-{H|zh-hans:当前的破坏; zh-hant:當前的破壞;}--{H|zh-hans:引用; zh-...
0
votes
0
answers
13
views
How do I get my mediawiki site to let my browser use Reader View?
For reasons I can't establish, on my MediaWiki wiki, Firefox does not give me the option icon to switch into Reader View, not does the key combination Ctrl + Alt + R work.
It works fine on other sites,...
0
votes
0
answers
57
views
MediaWiki API login: "Unable to continue login. Your session most likely timed out."
Trying to create an invite only wiki, that we can login to with a bot account once the customer has authenticated using our own webpage on our corporate website.
I've been using the documentation from ...
0
votes
1
answer
34
views
How to get the current text of a given page id
I have a bot, that analyses the current text of some pages directly from database. The page ids are known. In the past the bot used where revision.rev_id = page.page_latest && text.old_id = ...
1
vote
1
answer
24
views
Is there a way to set a "new" parameter, internally to a template or other page?
Let's say I have some page which can take two parameters, x and y. I often find myself doing things in that page like in this silly little example:
{{#if: {{{x|{{{y|}}}}}} | '''{{{x|{{{y|}}}}}}'''. I ...
0
votes
0
answers
44
views
Database read only error upgrading mediawiki database to 1.37
I have a 1.31 working mediawiki, and I'm trying to upgrade to 1.37. During update of the db the process stops this way:
Abort with control-c in the next five seconds (skip this countdown with --quick) ...
0
votes
1
answer
32
views
Mediawiki error after edit pages - "your browser do not support unicode"
I installed mediawiki on my cloud server with plesk. and manually updated the version from 1.31 to 1.37. But after I updated my mediawiki I can´t edit pages. After click on "save" I get this ...
-1
votes
1
answer
61
views
Make an text follow mouse pointer when hovered over an image link
I want to make the text follow the mouse pointer when hovered over an image(Image link) in fandom.
Like this .Source : Minecraft Wiki
2
votes
0
answers
52
views
Problem with EC2 t3.micro being unresponsive (Ubuntu 20.04)
For a few weeks I've been trying to find out the reason for random downtimes of an EC2 (t3 micro, has a root volume and and additional EBS volume, both gp3).
In EC2 logs (journalctl) there are some ...
0
votes
0
answers
75
views
How to get all of the pages in a category and their summary on MediaWiki API
I'm studying MediaWiki API. I wanted to get all of the pages in Programming_languages category and their summary,so I tried this:
https://en.wikipedia.org/w/api.php?format=json&action=query&...
0
votes
2
answers
73
views
How to login to wikipedia using mediawiki API through?
I already have two working bots in Wikipedia, but they use different method.
Currently, I am trying to create a bot using C#. On the API documentation page, they have provided some sample codes in ...
0
votes
2
answers
96
views
Is there a way to import images from a Wiki table into a spreadsheet?
I'm trying to import a MediaWiki table from here: https://hotwheels.fandom.com/wiki/List_of_2021_Hot_Wheels
I want to be able to also pull the images, but when I use ImportHtml in sheets (like so: =...