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,593
questions
0
votes
0
answers
24
views
How to fix Luasandbox extension error Mediawiki
I'm currently making a wiki with mediawiki 1.39 on a hosted server, I decided to enable scribunto through my cpanel in order to utilize modules, i selected luasandbox as my default engine, and wrote ...
0
votes
0
answers
19
views
Mediawiki to sharepoint migration
Anyone has a local script (bash/powershell/any) that can copy data from a mediawiki page and paste it to a share point basic template?
if its easy lets just consider as copying a web page (MW) data ...
0
votes
1
answer
15
views
Is the deleteArchivedFiles.php script run automatically?
I occasionally upload new versions of files (pdf or image files) on my wiki. I delete the old ones but I think Mediawiki doesn't really delete them as per this. So, I ran the deleteArchivedFiles.php ...
0
votes
0
answers
40
views
Is there a way to fix php-intl missing?
I am trying on my Mac to have a mediawiki project on a localhost server through XAMPP, and when opening my project, the setup page requires I install php-intl.
Note that I am not familiar with this ...
0
votes
1
answer
19
views
Why are mediawiki magic words CURRENTMONTH and CURRENTDAY2 giving a date in the future?
On my wiki homepage I have a shortcut to create a "blog post" with the current date as the title:
<inputbox>
type=create
default=Blog: {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}
...
-2
votes
1
answer
33
views
How do I add header and footer to all pages using a template? [closed]
I am transcribing this book on Sanskrit Wikisource.
https://sa.wikisource.org/wiki/अनुक्रमणिका:Samasakusumavali.djvu
I need the page numbers to appear automatically in footer section.
And the header ...
0
votes
0
answers
20
views
IIS 10 + MediaWiki: Wrong encoding for short URLs
I am running MediaWiki on Windows Server 2016 (language set to Korean) in a local network. I have followed the MediaWiki manual for enabling short URLs, and the result was below:
A. 대문¹ becomes ´ë¹® ...
0
votes
1
answer
30
views
Unable to login to a local MediaWiki instance after having created a new user with the createAndPromote maintenance script
I'm running a local MediaWiki instance in a container and everything looks fine except for the creation of user accounts.
I'm using the following command to create a new account:
docker exec -it ...
0
votes
2
answers
39
views
Is it possible to create a filter for the MediaWiki AbuseFilter extension that disallows .webp files to be uploaded to the wiki?
Is it possible to create a filter for the MediaWiki AbuseFilter extension that disallows .webp files to be uploaded to the wiki?
I'm trying to set a filter that won't allow users to upload files that ...
-1
votes
0
answers
19
views
javascript and mediawiki 1.39
I have a personal mediawiki installation, which uses javascript code in MediaWiki:Common.js. Everything was working correctly with mw 1.37.
However, upgrading to mw 1.39, it seems that javascript isn'...
0
votes
1
answer
27
views
Is it possible to create a filter for the MediaWiki AbuseFilter extension that disallows user names with special characters?
Is it possible to create a filter for the MediaWiki AbuseFilter extension that disallows user names with special characters?
I'm having a recurring vandal problem and basically I want to only allow ...
0
votes
1
answer
44
views
Our local web server is displaying the IP address instead of the named URL
We installed an apache2 web server to run inside our network. We updated our DNS 'A Record' to point our custom URL. We can paste that address in our browsers and it redirects but afterwards it ...
1
vote
1
answer
51
views
MediaWiki Stylesheet Not Loading (load.php shows main page)
After installing mediawiki, stylesheets don't load properly. Here are minimum reproduction instructions:
Using the following git repo: https://sourceforge.net/p/mediawiki-problem/code/ci/step1/tree/ ...
0
votes
0
answers
59
views
ModSecurity: Error reading request body: Connection reset by peer
We have a MediaWiki hosted and if i want to edit the common.css file for some small changes i get a ERR_CONNECTION_RESET from my browser.
The error.log from Apacha says its a ModSecure problem:
[Thu ...
0
votes
0
answers
15
views
how to open mediawiki database in phpmyadmin
I have just installed phpMyAdmin on my system and I want to access the MediaWiki database, but I can't see it in the left sidebar. I thought that I would be able to see the database automatically ...
0
votes
1
answer
37
views
MediaWiki search for text in files NOT in upload directory
I have a small Wiki running locally on an Ubuntu 20.04 box.
My goal is to index files (pdf mainly, but also docx and pptx) in a mounted directory and search for text within them.
I can do a full-text ...
1
vote
1
answer
31
views
Style MediaWiki internal link based on last revision date of a page
I have a large wiki with a lot of pages, many of which are stale. I want to apply custom CSS to each link based on the age of the page it links to.
I have been digging into the source code of ...
1
vote
2
answers
58
views
Is there any way to extract images from wikipedia based on the URL using MediaWiki
I have a wikipedia URL and want to extract every content image URL
I tried normal webscraping using BeautifulSoup where I put the URL and fetch for images with the class "thumbimage" to get ...
0
votes
1
answer
17
views
MediaWiki code - using ifexpr resulting in result repeating 4 times
I'm working on a wiki but have no experience with MediaWiki language...the below code is used basically to provide an item label, but on the website that label is now repeated 3 additional times. I ...
0
votes
1
answer
42
views
how to work with custom wikibase using pywikibot
I have my family file, user-config.py and user-password.py in the directory that i am running the following script from
import os, sys
import pywikibot as pwb
pwb.config.register_families_folder(os....
0
votes
1
answer
27
views
Automatically grant user group (MediaWiki)
I’m trying to make it to where if you have over 500 edits and have had an account for 1 month, you are automatically added to a user group. How can I do this?
I tried to use this but it didn’t work:
$...
0
votes
1
answer
44
views
Can I get rid of the '/wiki/' part of the url?
Can I get rid of the '/wiki/' part of the url?
I created my own MediaWiki as a hobby project. I had to remove the url of my website in this post because the forum marked it as spam.
Initially, my urls ...
0
votes
1
answer
31
views
MediaWiki hook for reverting file operation
I am trying to find a way to hook into the action of reverting the file to some older version, which is done by heading to the page of the file (File:Filename) and clicking on the Revert/Rollback link ...
0
votes
1
answer
62
views
How to add custom internal link to footer in MediaWiki?
I am trying to add internal link to the footer of our wiki on MediaWiki, using the guidelines in their documentation.
The goal is to add the code to the LocalSettings.php.
I am adding the code below ...
0
votes
1
answer
46
views
How are you supposed to do admin/sysop actions with Pywikibot 8?
I have been using an outdated version of Pywikibot and Python 2 and finally got around to upgrading to Python 3 and Pywikibot 8. All support for "sysop" accounts seems to have been removed ...
0
votes
0
answers
44
views
Mediawiki 1.39.3 update. Main slot of revision not found in database. See T212428
I have just migrated Mediawiki from 1.33.0 to 1.39.3 and I got this error:
Original exception: [9e4b6c3104e4e770f4b2a2bb] /index.php/Accueil MediaWiki\Revision\RevisionAccessException: Main slot of ...
0
votes
1
answer
61
views
Creating a C# Script to login to WikiMedia Api
I am trying to create a script to login to a private Wiki so that I can make changes. This is the code I created to do this. When I send this login token request I successfully get a login token. ...
0
votes
0
answers
48
views
Can't log in to MediaWiKi admin account - no error message
I recently set up a mediawiki instance on my synology NAS.
Mediawiki version is 1.35.6-1061.
Now I cant log on to the admin account, and there is no feedback I can see on why.
Steps:
Navigate to the ...
1
vote
0
answers
258
views
Is there a way to automatically setup MediaWiki when running with docker compose?
I'm using MediaWiki with MariaDB, running on Docker version 24.0.2 and Docker Compose version 2.18.1. The default setup works well. Now, I would like to collaborate with a colleague on GitHub, and ...
0
votes
1
answer
28
views
Troubleshooting Regular Expressions in MediaWiki Extension Not Working
The regex feature of the onParserBeforePreprocess function doesn't work in the extension I'm building, and I don't know why.
Let me elaborate on the issue with the onParserBeforePreprocess function ...
0
votes
1
answer
33
views
How do I transclude Special:WantedPages as a numbered list?
I’ve found that I can transclude Special:WantedPages using double-curly-braces ({{Special:WantedPages}}), but the result is an in-line comma-separated list, not a vertical numbered list like you see ...
0
votes
0
answers
23
views
Mediawiki API: Get most relevant images for bunch of keywords (and filter out pdfs/pdf thumbs)
I finally found a way to get images for a bunch of keywords where the resulting images don't necessarily have to contain every single keyword as long as I get some images, but I am not sure I took the ...
0
votes
1
answer
38
views
How call #template_params in a form
Using WikiMedia, I am trying to configure Templates and Forms following this documentation.
But I am facing an error.
Content of the Template :
<noinclude>
{{#template_params:}}
</noinclude&...
0
votes
0
answers
69
views
Bitnami Mediawiki set default page
I'm running a virtual machine for Mediawiki packaged by Bitnami (https://bitnami.com/redirect/to/2307584/bitnami-mediawiki-1.39.3-r2-debian-11-amd64.ova) and I've set a domain name for the machine so ...
0
votes
0
answers
133
views
Why jQuery Slider doesn't work on my wiki?
JQuery slider on wiki's main page which I'm moderator doesn't work. Code is exactly same as wiki's english version (I work on french version) but my version doesn't work. You can see comparions [here][...
0
votes
0
answers
25
views
Resetting the default Mediawiki configuration of apache2
I recently ran into an issue while working with two different .htaccess files in separate directories, along with the apache2.conf file located in /etc/apache2/apache2.conf, all at the same time. When ...
0
votes
1
answer
35
views
Mediawiki Extension CategoryTree subcategory example
Looking for example using categorytree. Using example shared only able to create one level. Not able to add subcategory. Could any one please share the subcategory example.
<categorytree mode="...
0
votes
1
answer
32
views
Mediawiki audit trail/history
Need to hide audit trail/history for not login users. But it should visible to login user.
It get hide after making entry in MediaWiki:Common.css file.
#ca-history { display:none!important; }
As per ...
0
votes
0
answers
37
views
Mediawiki: The built-in autocomplete Search feature doesn't work
I have a private wiki where I did an update a few weeks ago.
The current version is MediaWiki 1.39.1
Then I changed the template to Vector (2022), and exactly with the template "The built-in ...
0
votes
0
answers
41
views
What is the fish-like symbol in MediaWiki query API element
I have captured an example JSON call that mobile Wikipedia app is calling. I don't know what the marked fish-like symbol is:
I thought that I can simply omit it:
https://en.wikipedia.org/w/api.php?...
0
votes
1
answer
20
views
MediWiki, Access Control , A member of one group must be able to edit only the pages created by members of that group
In MediaWiki looking for following solution.
A member of one group must be able to edit only the pages created by members of that group.
A member of one group must not be able to edit the pages ...
0
votes
0
answers
27
views
Mediawiki RSS Extension not showing images
I have installed Extension:RSS and followed the instructions given to display images from feeds.
The same problem is being discussed on the Extension:RSS Talk page here. I installed the Extension:RSS ...
0
votes
0
answers
27
views
Mediawiki API call: Unrecognized parameter: gsrqiprofile
I am attempting to use the related articles plugin on my mediawiki website, I have properly installed the most recent version and am running with the following configuration in the attached screenshot....
1
vote
1
answer
625
views
Guzzle update breaks Mediawiki 1.39.3 LTS - how can dependency hell be avoided for the future?
Just got a:
Fatal error: Declaration of MWCallbackStream::write($string) must be compatible with Psr\Http\Message\StreamInterface::write(string $string): int in /var/www/html/includes/http/...
1
vote
1
answer
47
views
Convert bibtex-entries to mediawiki-syntax
i'm trying to convert some Bibtex-entries into Mediawiki-syntax. For example, the input is:
@Book{henze_layers_of_time_2000,
author = {Henze, Paul B.},
location = {London},
publisher = {C....
0
votes
1
answer
29
views
Query for multible properties?
{{#ask:
[[Category:City]]
[[Germany::]]
|format=list
}}
Puts out: Berlin
How can I get the following to work so it outputs: Berlin, London?
{{#ask:
[[Category:City]]
[[Germany::]]
[[England::]]...
0
votes
1
answer
40
views
Check to see if <references /> is empty
I would like to include a 'Notes' section in a transcluded template only if there are footnotes in the text entered in the template. How can I create a conditional statement that will include the <...
0
votes
1
answer
28
views
Query for additional properties?
Normally you would query like this
{{#ask:
[[Category:City]]
[[Located in::Germany]]
|format=list
}}
How can you make the following work (as a List format)?
{{#ask:
[[Category:City]]
[[Located ...
0
votes
0
answers
106
views
I cannot find localsettings.php in my media wiki
The site is environment.wiki and hosted by greengeeks - I welcome all help on this project as I am not a developer :)
I need to find the localsettings.php file so I can
a. change the logo
b. get ...
0
votes
0
answers
18
views
Mediawiki insert codeblock not available as an option
I'm using MediaWiki version 1.39.1 and don't see any option to insert code blocks in the editor. The Code Editor plugin already activated and only can put a single inline code only.