3,632 questions
1
vote
1
answer
111
views
Button on modal does not work when modal is closed and re-opened
I am coding a game wiki with an interactive modal to preview content on a character. The modal is opened by clicking on an image and closed by clicking on an X or anywhere outside of the modal.
Code ...
Advice
0
votes
3
replies
180
views
mediadb_docker mediawiki MYSQL_DATABASE
services:
wiki:
image: mediawiki
container_name: ---
restart: always
ports:
- 8080:80
volumes:
- images:/var/www/html/images
mariadb:
image: mariadb
...
1
vote
0
answers
128
views
Passing an argument to a Mediawiki template
I have a page in my wiki that contains:
{{MyBox1
|header=Under Construction
}}
And I have a template called MyBox1 that contains:
<includeonly>
[[Category:{{{status|Unknown status}}} ...
0
votes
2
answers
135
views
Is there any way to make a MediaWiki site allow setting a CSS mask-image on an element using only inline CSS?
I am working on a wiki (built on the MediaWiki platform and using the "Semantic MediaWiki" extension) for a game, and I want to make a template that puts an icon in front of the names of ...
0
votes
1
answer
67
views
What content must Template:Reflist have to generate a lower-alpha liststyle?
I have created a MediaWiki wiki on my website. I want the notes to count in lowercase letters instead of numbers. As I understand it, I need to use this code:
Text of article.<ref group="lower-...
0
votes
0
answers
46
views
MediaWiki 1.43+ tests render links with /wiki/ despite $wgArticlePath set to /index.php/$1
I'm running tests (e.g., JsonTestCaseScriptRunnerTest) on MediaWiki 1.43+ and encountering a problem where rendered links incorrectly use /wiki/ instead of my configured $wgArticlePath = "/index....
0
votes
1
answer
50
views
How to get only the last letter of PAGENAME?
So in English Wikipedia, {{#invoke:string|sub|s={{PAGENAME}}|i=1|j=-2}} gets me everything except the last letter. Is there any code to do the reverse, only the last letter (working with unpredictable ...
0
votes
1
answer
72
views
Best way to explode two strings and create combinations of values from each string
I have two parameters in a template, 'location' and 'locality_subjects'. Each can contain multiple values separated by a semicolon.
For instance:
|location=Bucks County, Pennsylvania;Chester County, ...
3
votes
1
answer
104
views
How to grab a parsed Mediawiki page with attached CSS? [closed]
I've successfully managed to extract a page using
?action=parse, but the resulting page is quite ugly and lacks the necessary CSS styling to make it look good. I've been googling for a while, trying ...
-1
votes
1
answer
121
views
MediaWiki API to upload images to commons.wikipedia.org
currently i am able to upload the images to test.commons.wikipedia
using the code taken from the original mediaWiki
but the images are being uploaded to https://upload.wikimedia.org/wikipedia/test
i ...
0
votes
2
answers
158
views
MediaWiki timeout, apparent memory loop
I'm getting the following when accessing pages in certain namespaces in a previously working site:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /usr/...
0
votes
1
answer
93
views
Content dependent on usergroup in MediaWiki
I have several user groups in LocalSettings.php:
$wgGroupPermissions["SM_p1"]["createaccount"] = false;
$wgGroupPermissions["SM_p1"]["edit"] = false;
$...
1
vote
1
answer
139
views
Get namespace of current page in MediaWiki userscript
So, I'm creating a Wikipedia userscript, and I need to get the current namespace. I tried using wgCanonicalNamespace, but this did not work. Here is another script I tried but did not work.
const ...
0
votes
1
answer
1k
views
PHP 8.4.3 unable to load extension intl despite being uncommented and at the path specified
I am attempting to install the latest version of MediaWiki (1.43), and I am using PHP version 8.4.3. The OS is Windows Server 2022 Datacenter.
Here is the error I get from command-line:
PHP Warning: ...
0
votes
1
answer
249
views
Unable to upload images in Mediawiki 1.43
I'm getting this error anytime I try to upload images. I've viewed many other posts on here and other support platforms and the issue seemed to be with older versions of MediaWiki and composer and psr/...