Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
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 ...
vivicat's user avatar
  • 65 reputation score 65
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 ...
Mel's user avatar
  • 11 reputation score 11
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 ...
Mohammed Karill's user avatar
  • 1 reputation score 1
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}}} ...
Harry H. Arends's user avatar
  • 11 reputation score 11
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 ...
Lawton's user avatar
  • 271 reputation score 271
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-...
Ben's user avatar
  • 850 reputation score 850
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....
Mike1988B's user avatar
  • 107 reputation score 107
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 ...
JSToJestJaSam's user avatar
  • 1 reputation score 1
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, ...
redheadkelly's user avatar
  • 15 reputation score 15
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 ...
Maria's user avatar
  • 87 reputation score 87
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 ...
Daksh Rawal's user avatar
  • 407 reputation score 407
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/...
Jan Steinman's user avatar
  • 343 reputation score 343
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; $...
vico's user avatar
  • 18.6k reputation score 18571
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 ...
TwiWizNeeeArd's user avatar
  • 342 reputation score 342
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: ...
JBubz's user avatar
  • 1 reputation score 1

15 30 50 per page
1
2 3 4 5
243
Morty Proxy This is a proxified and sanitized view of the page, visit original site.