Hello! Kindly help me customize the URL from 'mydomain.com/main_page' to 'mydomain.com' so that the home page does not redirect to 'main_page'. I would like to create a dashboard similar to Wikipedia on the home page. I have already used the code '$wgArticlePath = "/$1";' which helped customize the URLs, but the home page URL, which is supposed to be 'mydomain.com', is automatically redirecting to 'mydomain.com/main_page'. How can I modify the configuration to achieve the desired setup? Thank you!
Project:Support desk
Hello, i kindly request you to help me protect some of my pages like home page and privacy policy to be only editable by admins only. i used this code
$wgNamespaceProtection[NS_MAIN] = ['sysop'];
$wgGroupPermissions['sysop']['edit'] = false;
in my local setting php and it locked me for editing anything that is already in the site.
this code does not work either
$wgFlaggedRevsProtection = array('sysop' => true);
kindly help.
Rgds
Davis Wanyonyi
You'll want to look at Help:Protecting and unprotecting pages
Thank You!!!!
Hi all,
We've just upgraded our wikis from 1.35 to 1.39. I've noticed that internal links now behave differently.
Let's say we have a page containing a person's information: People/Patrul Rinpoche
We have some redirects setup for that page including the page: Patrul Rinpoche
Now when referencing that page on other pages, we'd like to just write: [[Patrul Rinpoche]] and have it stay that way, showing the link without the People/ part. But it automatically changes the text of the link to People/Patrul Rinpoche.
Any way to prevent that behavior?
Thanks in advance!
That's odd. That is not something mediawiki does. Do you have any extensions installed that might affect that. (E.g. maybe displaytitle extension might affect that, not sure)
Oh interesting. It happened recently, we assumed it was core but it was maybe one of the extension updates that did it. Thanks!
That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set
$wgDisplayTitleFollowRedirects = false;
Thanks for the help!
Any african Americans interested in posting on this topic with content created prior to the year2020, January. I will be posting within the next 24. Hours in the event of an absence of contributors on this topic from the african american community.10:53 pm.2024 april.
This is not a place for posting articles.
I want to make it so that only logged-in users can download the files I uploaded on MediaWiki. How can I do that?
How do i fix this
Deprecated: Caller from MediaWiki\Revision\RevisionStore::getRevisionSizes ignored an error originally raised from Flow\Formatter\ContributionsQuery::queryRevisions: [1146] Table 'path_wiki.flow_revision' doesn't exist in /home/path/public_html/mydomain.com/includes/debug/MWDebug.php on line 386
Either disable the flow extension, or make sure that all its tables are created (presumably with update.php)
i removed the extension and the error was gone. Thank you!
Im creating a table, it has values and color associated with each value like:
{| class="wikitable"
| style="background-color:#fcff2f;" | 1
| style="background-color:#67fd9a;" | 2
| style="background-color:#34cdf9;" | 3
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
| style="background-color:#fcff2f;" | 1
| style="background-color:#fcff2f;" 1
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
|}
There is a way to create "macro" variables or something like that to store the style, so i can store color value and change it only one time. the way im doing now is changing manualy each value. im looking to a way like this:
variable yellow-> style="background-color:#fcff2f;"
variable green-> style="background-color:#67fd9a;"
variable blue-> style="background-color:#34cdf9;"
{| class="wikitable"
| yellow | 1
| green | 2
| blue | 3
etc...
|}
I am using MediaWiki version 1.41.1, and I added a infobox template. My problem is, whenever a section is not filled with text, it will still appear but blank, (but I want it to be not visible completely). I have figured out a bit, but still cannot get the full picture. Here is a wiki page of mine for reference and code: Germany - Heterodontosaurus Balls (heterodontosaurus-balls.com)
All help is appreciated greatly ❤️
Probably you want the #if parser function. See help:Extension:ParserFunctions
thank you, but I have another problem now with this
I applied the #if function to a couple of bars in my infobox, but only the right side disappears and the left side is still visible in a tiny stripe, as seen here:
Template:CountryInfo - Heterodontosaurus Balls (heterodontosaurus-balls.com)
is it a problem with the #if function or a problem with the infobox itself?
I just wanted to say thank you for all the years you have been providing me/us/the community with so much valid information. I have been using Wikipedia for years to gain information on education, receive knowledge, no how, history, music artists, movie artists and so so much more. This is a brilliant site and I hope you continue all the hard work you put into this page, it is magnificent. I actually just read up on the Georgia Guidestones, very interesting article. Thank you, thank you, thank you for your information,. Blessings.
Is there a way to assign the rights to upload different types based on the user group?
For example to let "user" can only upload .jpg while "sysop" can upload .jpg and .pdf
Can I do something like this in the LocalSettings.php?
You could maybe do it with extension:AbuseFilter
I was wondering the same but except for “defaultuser” to view webpages normally and “defaultadmin” to be able to edit the webpage after a login via a login Ul panel that if “defaultadmin” logs into, it puts it in a user action log and gives the permissions temporarily until the “defaultadmin” logs out or closes the webpage with a browser cookie to store the permissions until the browser (or webpage) is closed.