Open main menu

MediaWiki β

Project:Support desk

About this board

vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Johnywhy (talkcontribs)

How to transclude all namespaces (including custom namespaces)?

thx

Ciencia Al Poder (talkcontribs)

You transclude pages, not namespaces. Do you mean transcluding a page on a specific namespace? Or transclude a list of namespace names?

Johnywhy (talkcontribs)

A list of namespace names

Reply to "Transclude All Namespaces?"

After upgrading the WikiEditor toolbar is gone

3
62.224.139.109 (talkcontribs)

Mediawiki version 1.30.0

PHP 7.2.4

SQLite version 3.23.0

After upgrading from 1.27.4 and PHP56 the WikiEditor toolbar does no more appear.

In LocalSettings.php I have

# WikiEditorwfLoadExtension( 'WikiEditor' );$wgDefaultUserOptions['usebetatoolbar'] = 1;$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;$wgDefaultUserOptions['wikieditor-preview'] = 1;$wgDefaultUserOptions['wikieditor-publish'] = 1;

I scanned logfiles and enabeled debugging, but cannot find any hints.

星耀晨曦 (talkcontribs)

Are these configurations on the same line? # WikiEditorwfLoadExtension( 'WikiEditor' );$wgDefaultUserOptions['usebetatoolbar'] = 1;$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;$wgDefaultUserOptions['wikieditor-preview'] = 1;$wgDefaultUserOptions['wikieditor-publish'] = 1;

Because # at the beginning of the line, the code after # will not work.

62.224.139.109 (talkcontribs)

No. That have been scrumbled after sending the form.

Reply to "After upgrading the WikiEditor toolbar is gone"
JohnTreeHunt (talkcontribs)

I have MW ver. 1.26.2 and become problems with api.php?action=userrights&user=aaTestname3&add=moderator&format=json

Response says: {"userrights":{"user":"AaTestname3","userid":515,"removed":[],"added":[]}}

But no moderator right was added when i look in User-admin. I am currently logged in with a sysop user. I am pretty sure I have enough access in the RestSharp context.

Is that a well known problem in 1.26.2?

The token did not work from the querystring for action=userrights. This was not documentet in API documentation. For other methods it worked direct in querystring.

I got thist result: And in order to remove:

<error code="mustposttoken" info="The token parameter was found in the query string, but must be in the POST body" xml:space="preserve">

...i tried adding the token to request body, but that did not work.

After testing different methods, I found this method that worked:

request.AddParameter("token", userrightstoken.ToLower(), ParameterType.GetOrPost);

Here is also my HTTP Request and Response

-############### = censored

RestSharp request:

Postman-Token=c50a89a4-7738-###############

Cache-Control=no-cache

Accept=application/json, application/xml, text/json, text/x-json, text/javascript, text/xml

Postman-Token=d67f0f62-a98b-4f9b-#################

Cache-Control=no-cache

token=267de0fd01f191498#################

RestSharp response:

X-Content-Type-Options=nosniff

X-Frame-Options=SAMEORIGIN

Content-Encoding=

Vary=Accept-Encoding

Transfer-Encoding=chunked

Cache-Control=private, must-revalidate, max-age=0

Content-Type=application/json; charset=utf-8

Date=Thu, 26 Apr 2018 07:22:15 GMT

Server=Apache

JohnTreeHunt (talkcontribs)

I found the solution my self. I had to be bureaucrat. sysop was not enought.

37.191.228.227 (talkcontribs)

Hello! How can I make my table sort much better?

https://yourosongcontest.miraheze.org/wiki/Julbrendsen_Isles_in_the_Youro_Song_Contest

On this page you see 12, 18 and 2, 21 etc. but i want it to be like 2, 12, 18 and 21.

Like it is on this page:

https://yourosongcontest.miraheze.org/wiki/Youro_Song_Contest_21

Here all numbers sort perfectl

When I try to do this:

!data-sort-type="number"| Place !data-sort-type="number" |Points !data-sort-type="number"|Semi !data-sort-type="number"|Points

Then it sorts good but the text will be above and not on the bottom

http://escforumwiki.com/index.php?title=Kimmystan_in_the_Outernatia_Song_Contest

On this page it looks good but i dont know what is the difference in the tables :( Can anyone help?

Here is my wiki version

https://yourosongcontest.miraheze.org/wiki/Special:Version

Reply to "Sorting"

indian 1st prime minister showing narendra modi pls correct it & make it jawaharlal neheru ok ! Thanks

1
103.242.198.240 (talkcontribs)

Pls correct the following error in wikipedia showing 1st prime minister of india ...Thanyou!

Reply to "indian 1st prime minister showing narendra modi pls correct it & make it jawaharlal neheru ok ! Thanks"
PWRBET (talkcontribs)

How could i change my username? Or delete my user account?

Reply to "change the user name"

Export sql file, modify offline, import again = good idea?

2
Stefahn (talkcontribs)

I need to do complex regex replacements in my wikitext (which I can't do via Extension:ReplaceText). Is it a good idea to export the sql file, modify it offline (via Notepad++), and import the altered file again in my database?
Or do I corrupt the database doing so?

Ciencia Al Poder (talkcontribs)

You're going to corrupt your database. Also, that massive replace will do the replaces also on old versions of pages, not only the current one, without giving any hint on the page history.

You should try to use Pywikibot. It's relatively easy to set up and comes with scripts to do replacements.

Reply to "Export sql file, modify offline, import again = good idea?"
Raied85 (talkcontribs)

Hello

I am new user, and i am still facing few questions about using the wiki, so i hope someone can help me

1- How to add more items to the editor box? because its shows only this now

https://www.screencast.com/t/h5ei5OJGk

2-is it ok to use the wiki software to publish news like news websites, and information like Wikipedia ?

3- Is there a control panel?? How to manege the website?

4- IS there a program or plugin that can update wiki articles automatically?

5- How to add this kind of information box?

https://www.screencast.com/t/sV0BdiunEcM

https://www.screencast.com/t/czVmKVqjWF1

This is for now, thanks in advance

Malyacko (talkcontribs)
Raied85 (talkcontribs)

Thanks a lot my friend.

regarding #4, lets say i have article or page that contain information about football team, and that team win the league, or formula 1 team win a race, is there any plugin that able to update teams status Automatically? biased on settings i saved earlier?

I hope you get the point.

what makes me ask about that is what i see on Wikipedia itself after the event finished, the status updated Automatically in seconds, that why i think its a plugin or something

Thank you again

Ciencia Al Poder (talkcontribs)

The status is updated manually by someone that edits the article, that's why anyone can edit.

Reply to "Few question"
Johnywhy (talkcontribs)

I'm making hub-pages for each namespace.

Which URL is best?

  • MyWiki/MyNamespace (this one's my favorite. Why not?)
  • MyWiki/MyNamespace:MyNamespace
  • MyWiki/Namespace:MyNamespace
  • MyWiki/MyNamespace:Namespace
  • MyWiki/MyNamespace:Hub
Reply to "Best URL for Namespace Pages?"
Johnywhy (talkcontribs)

How does Flow behave Without Parsoid? It doesn't seem to do anything. Pages don't look or act differently.

AhmadF.Cheema (talkcontribs)

I think Parsoid allows for Visual Editing such as using Ctrl+I for italics and Ctrl+B for bold.

Johnywhy (talkcontribs)

i think i won't get the VisualEditor, correct?

what's left?

Reply to "Flow Without Parsoid?"