3,632 questions
Score of 0
0
votes
1 answer
1
answer
53 views
53
views
Conditionally formatting a template based on count of a cargo query
I have a cargo query for a page, and I want to display a special result for the case where there is only a single result for the query.
Specifically, I want the results to look like:
You are ...
Score of 1
1
vote
1 answer
1
answer
115 views
115
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
202
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
...
Score of 1
1
vote
0 answers
0
answers
140 views
140
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}}} ...
Score of 0
0
votes
2 answers
2
answers
150 views
150
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 ...
Score of 0
0
votes
1 answer
1
answer
78 views
78
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-...
Score of 0
0
votes
0 answers
0
answers
53 views
53
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....
Score of 0
0
votes
1 answer
1
answer
55 views
55
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 ...
Score of 0
0
votes
1 answer
1
answer
75 views
75
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, ...
Score of 3
3
votes
1 answer
1
answer
108 views
108
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 ...
Score of -1
-1
votes
1 answer
1
answer
125 views
125
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 ...
Score of 0
0
votes
2 answers
2
answers
164 views
164
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/...
Score of 0
0
votes
1 answer
1
answer
96 views
96
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;
$...
Score of 1
1
vote
1 answer
1
answer
151 views
151
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 ...
Score of 0
0
votes
1 answer
1
answer
1241 views
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: ...