Questions tagged [mediawiki]

A popular content management system that powers many information websites . See http://www.mediawiki.org/ for more info.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

MediaWiki Template error Lua 126 [closed]

I am getting an error: Lua 126, even after editing multiple permission settings that wasn't suggested by the software itself. I've pretty much tried everything, I am just trying to use the {{Age}} ...
1
vote
1answer
11 views

Use a MediaWiki template argument both parsed and unparsed

Suppose I have a simple template Foo The wikitext {{{1}}} renders as <blockquote>{{{2}}}</blockquote> So including {{Foo|<nowiki>'''bold''' and ''italics''</nowiki>|'''...
1
vote
0answers
15 views

Cleanup after deleteArchivedFiles.php?

Running deleteArchivedFiles.php --delete produces hundreds of these: Searching for and deleting archived files... Notice - file '2oh3r45yhkkolh6rkar4vva7d31e1at.zip' not found in group 'deleted' ...
2
votes
1answer
28 views

Delete all the pages on mediawiki

I am trying to delete all the pages, created on my mediawiki. I tried "Special:Nuke" , and these scripts: php maintenance/nukeNS.php --delete --all php deleteArchivedRevisions.php --delete php ...
2
votes
1answer
66 views

Why can't update.php connect to my database when my site connects to it just fine?

I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at http://localhost:8888/. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My ...
3
votes
1answer
25 views

Mediawiki - Method for $wgActionPaths on nginx

I'm trying to set up action path rewriting on my mediawiki 1.33 install with nginx 1.14.0 on Ubuntu 18.04 with php 7.2fpm. All the documentation I've been able to find on mediawiki.org and via ...
3
votes
1answer
28 views

<pre> tag generates a blue box behind the pre-formatted text and a table around it on the printable version. How to disable this?

I use Pre tags to embed code lines into my MediaWiki page. Problem is that Pre tag generates a blue-ish box behind the pre-formatted text which is parsed into a table when you set printable=yes in the ...
1
vote
0answers
42 views

Refer to a MediaWiki website's domain in robots.txt by a variable

I have a website (built with MediaWiki 1.33.0 CMS) which contains a robots.txt file. In that file there is one line containing the literal domain of that site: Sitemap: https://example.com/sitemap/...
2
votes
0answers
87 views

Is there a problem in adding Adsense verification code via JavaScript?

I work with a certain CMS (MediaWiki) in which there is no direct control over HTML (as there is in Drupal Twig files for example); Hence, in this case, I have to load my Adsense verification code via ...
4
votes
1answer
51 views

Can it be destructive to disallow all MediaWiki:Special pages in robots.txt?

I consider preventing indexation of all of MediaWiki 1.33.0's Special pages; (In Hebrew, "מיוחד" means "special"): Disallow: /מיוחד:* Disallow: /index.php?title=מיוחד:* Disallow: /index.php%3Ftitle%...
1
vote
0answers
24 views

How to automate a tag for generating print-only and no-print Images in a specific Mediawiki skin?

I have multiple images in my wiki page that have to be set to 728px for the online version. I want these images to be printed with full resolution. I have long searched for a solution and in the end ...
0
votes
1answer
74 views

Preventing MediaWiki from wrapping space-indented content in <pre> HTML tags [closed]

MediaWiki wraps all space-indented nested content in <pre> HTML tags. To reproduce go to a MediaWiki web site with the skin "Vector", go to an edit page, add some HTML content, add some space-...
0
votes
1answer
54 views

MediaWiki destroys CSS aesthetics for <code> tag

In MediaWiki:Common.css I gave these essential directives: code { display: block; } then I created an article with this content: <code> <x> <y> <z></z> ...
1
vote
1answer
338 views

What is a “data-ad-slot” for Google Adsense and why is inline styling required?

I have this adsense ad code: <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:...
0
votes
1answer
72 views

Adding HTML into the <head> HTML tag for all MediaWiki web pages

How to add HTML into the HTML tag for all MediaWiki web pages? In /skins/mySkin/includes/mySkinTemplate.php I didn't find anything that does with <head>. I found no global template file and I ...
0
votes
0answers
15 views

How to configure sitemap for a mediawiki website?

I'm mainly referencing this line: If you want to see a human-readable sitemap, allow read access for sitemap.xsl file in your site config (.htacces file or other) Which is related to a ...
1
vote
1answer
31 views

How to know what are all the MediaWiki web pages without categories?

In some large wikis one might find some rare web pages that don't have categories (for example, when these pages were created, the creator forgot to add a category). How to know what are all the ...
0
votes
2answers
36 views

What makes MediaWiki's LocalSettings.php file blank in web browsers?

I have a MediaWiki website; like any other MediaWiki website, it has a LocalSettings.php file. If I navigate in a browser to: https://example.com/LocalSettings.php either when logged in as an admin or ...
1
vote
1answer
80 views

MediaWiki: Hiding certain HTML elements for non-logged-in users

In a MediaWiki-based non-communal website there are some HTML elements that should be presented only for logged-in-users (an administration menu or some of its links). Usually if I want to hide ...
1
vote
1answer
18 views

Disable third-party composer scripts when running through composer.phar?

We have a MediaWiki update procedure at Website | mediawiki-install.txt. MediaWiki requires the use of developer tools like Composer on a production server. It is a bad idea, but we cannot change it. ...
1
vote
1answer
30 views

Why in MediaWiki it is common to wrap templates with the <noninclude> tag?

In MediaWiki Wikipedia-like websites I often see some <noninclude> tag wrapping of templates. Is it really common to wrap templates with the <noninclude> tag and if so, what is the ...
0
votes
1answer
23 views

How to delete MediaWiki deleted categories?

In https://example.com/index.php?title=special:categories there are two category-page links: Blue ones: For existing category pages Red ones: For non-existing category pages but are still known by ...
1
vote
1answer
23 views

MediaWiki: How to create a “ready in advance” structure for all webpages?

There is a certain MediaWiki syntax structure I generally use for web pages. It's not a MediaWiki template; it's just a syntax structure I could copy-paste from a file into the edit-page of a certain ...
3
votes
1answer
50 views

Where to see a list of all MediaWiki non-special web pages?

I get the impression that in MediaWiki there are two main groups of non-article and non-talk web pages: Special web pages (like special:categories) Media-Wiki System web pages (like media-wiki:common....
0
votes
0answers
19 views

Transferring contact form inquiries to an email account without an email server or an email forwarding service

I have a WordPress/Drupal/MediaWiki website with some all-default contact form. I desire to transfer contact form inquiries to my email account (Gmail) without using an email server or an email ...
1
vote
0answers
36 views

Remove the link to create a talk page from MediaWiki when the create page permission is off [closed]

I have a website that I created with MediaWiki but this website is not a community of two or more users and I am the only registered user as this is a personal website where I publish my services and ...
1
vote
1answer
32 views

MediaWiki: What HTTP Status Code it returns for non existent web pages?

Take these MediaWiki web pages for example: https://ecowiki.org.il/wiki/Aaaaaaaaaa https://en.wikipedia.org/wiki/MAKMAKMAK http://www.foodtech-portal.eu/index.php?title=Special:PdfPrint&...
1
vote
2answers
30 views

MediaWiki: How to find all web pages with a certain HTML tag?

Some of my MediaWiki web pages has the <pre> HTML tag and I need to replace generally all <pre> tags in the <code> tags. How to find all web pages with a certain HTML tag?
2
votes
1answer
43 views

How can I ban mediawiki logins from IPs that persistently fail?

I have a MediaWiki website and someone is trying to login as my WikiSysop user by guessing lots of passwords. What can I do to ban IPs if they exceed a threshold of failed login attempts? (Okay, no-...
3
votes
1answer
34 views

MediaWiki: Implement HotCat

I found no literature on how to install HotCat category management tool in MediaWiki; I only found literature on how to use it in Wikipedia. How can one implement it in a non Wikipedia MediaWiki ...
0
votes
1answer
107 views

MediaWiki: Avoid multiple page redirects

I have an all default MediaWiki website: No added CSS/JS, No added extensions or custom PHP. I run the homepage of that website in Google Pagespeed Insights and I get: MediaWiki: Avoid multiple ...
0
votes
0answers
16 views

Difference between Short URLs and Clean URLs

Clean URLs is a concept in Drupal; for example Drupal 7 default URL formatting is example.com/?q=node/83 though it could be changed just to example.com/node/83 by activating Clean URLs based on Apache ...
0
votes
1answer
41 views

MediaWiki: Enable text compression

From a Google Pagespeed Insights test it seems my MediaWiki website lacks text-compression; reading about this, it seems I lack this because I don't have Gzip compression on. I Ran this gzip test and ...
2
votes
0answers
75 views

MediaWiki: Remove debug query strings (/load.php?debug=" )

When I run a Google PageSpeed insights test I get problem reports for various long URLs with query strings for /load.php?debug=. These problem reports appear for the loading of any webpage whatsoever....
0
votes
1answer
26 views

MediaWiki: Hiding drafts from Search engines without changing any file in the website directory

MediaWiki: Hiding drafts from Search engines without changing any file in the website directory, Is this possible or I must change robots.txt for drafts starting as draft:myDraft?
0
votes
1answer
49 views

MediaWiki: How to delete the about page?

in a MediaWiki project I don't need the automatically created About webpage because in this case the homepage already covers the about details of the project. I can delete any webpage but for some ...
1
vote
0answers
218 views

Restrict anonymous access to a Mediawiki site while putting a few pages on a white list of publicly accessible pages?

I have set up a Mediawiki using Bitnami through AWS, I have used the following in an attempt to restrict access unless a user logs in to the wiki. # Disable reading by anonymous users $...
1
vote
1answer
41 views

How to determine where a open_basedir restriction is coming from

We are trying to upgrade to Mediawiki 1.30 through Mediawiki's release tarball. upgrade.php is failing because the release tarball is missing components (for example, PHP Fatal error: Uncaught Error: ...
1
vote
1answer
24 views

Who is <admin> for install.php during Mediawiki install?

I'm installing Mediawiki 1.31 on CentOS 7. I'm following the instructions at Manual:Installing_MediaWiki. I'm having a trouble running install.php. An earlier step had me create the MySQL database ...
2
votes
0answers
79 views

500 error from Mediawiki for first request after an idle period: Premature end of script headers

So I've got a Mediawiki on a subdomain, and until fairly recently everything was fine (if occasionally a little slow). A few weeks ago we started occasionally getting 500 Internal Server errors. ...
0
votes
1answer
14 views

How do I clean up Recent Changes on MediaWiki 1.31.1

My Question is about Cleaning up MediaWiki Recent Changes This question came from many MediaWiki website admins who have already asked this question all over the internet.
1
vote
0answers
15 views

How to provide users with a private copy of a pre-populated mediawiki site?

What are some reasonably good ways to offer users their own private version of a pre-populated mediawiki site? By "good way", I mean the most common way or the technically easiest way to give them a ...
1
vote
0answers
27 views

ReCaptchaNoCaptcha support for VisualEditor in MediaWiki? [closed]

Need help with MediaWiki installation. I successfully installed MediaWiki. Added VisualEditor and Mobilefrontend. With this in place you can edit my site using visual editor but you cannot save it ...
4
votes
1answer
171 views

How to use Wikipedia templates on an outside MediaWiki?

I've set up a MediaWiki on a wiki farm, and want to have Wikipedia-style templates available, like {{reflist}}, {{merge from|article}}, {{cite book|...}}, etc. Following DRY principle, it would seem ...
1
vote
2answers
425 views

MediaWiki 1.31 and “Error: your composer.lock file is not up to date”

We are trying to upgrade from MediaWiki 1.30 to 1.31. We downloaded mediawiki-1.31.0.tar.gz from the MediaWiki site. The tarball was unpacked overtop of the old MediaWiki installation after backing up ...
0
votes
1answer
59 views

Restore a corrupted mediaWiki, to a newer verison of mediaWiki

A working installation of mediawiki was corrupted by a user "touching" all files under the dir structure, ending in all files having the same exact permissions, and modify dates. I'm not sure which of ...
1
vote
0answers
55 views

How to create sitemaps with only non-www URLs in MediaWiki website?

I usually prefer the non-www URL for my website (http://example.com, not http://www.example.com). While submitting the site to Google one needs to set a preferred domain by choosing either the www or ...
1
vote
2answers
47 views

How to use toggleToc() in a MediaWiki installation

I admin a wiki site running MediaWiki 1.29 and I have a problem collapsing the TOC on pages. I would be interesting in keeping the Contents box, but loading the page with it collapsed by default. It ...
0
votes
1answer
26 views

How to use mw.site.siteName in Module:Asbox

Exporting Template:Stub from Wikipedia for use on non-WMF wiki, it transcludes Scribunto Module:Asbox which has on line 233: ' is a [[Wikipedia:stub|stub]]. You can help Wikipedia by [', ...
3
votes
3answers
53 views

Page-specific skins in MediaWiki?

Is there a way to force a particular skin to be applied while displaying specific MediaWiki articles? In my wiki many articles will have a "flip" version with alternative content (think "good" and "...