Talk:MediaWiki

Jump to: navigation, search

About this discussion

This page is only for discussion of MediaWiki.org's main page.

Please use the SANDBOX to see how easy it is to edit a wiki.


By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Infobox is not displayed, template link shows instead; Chinese Localization problem

1
Iampkuhz (talkcontribs)

I want to build a local Chinese Wikipedia database recently. However, I came up with 2 questions.

Infobox not display

After enable Extension:Scribunto, some infoboxes are not in correct format, such as NBA player Yao ming's page Yao_ming_page1.png. All the page content are included inside infobox.

yao_ming.png

Then I found that if I change the value of $wgLanguageCode from zh-cn to en , it show a little bit more formated yao_ming_page2.png. however, it can't parse infobox template as https://zh.wikipedia.org/wiki/姚明 shows. It can't parse 'redirect template‘ (just show the template links).

By the way, I have import redirect.sql, templatelinks.sql and other dump files from https://dumps.wikimedia.org/zhwiki/20150602 .

Chinese localization chars not parsed

As shown in yao_ming_page2.png, there are wikitext like -{zh;zh-hans;zh-hant|本条目類似愛好者網頁。}- . How can I fix this?

Could anyone provide some advise or run into the same problem before?

Thanks a lot

Reply to "Infobox is not displayed, template link shows instead; Chinese Localization problem"

For a better video playback experience we recommend an HTML5 video browser.

1
Jasper Deng (talkcontribs)

This post by Jasper Deng was moved on 2015-06-17. You can find it at Thread:Talk:MediaWiki/For a better video playback experience we recommend an HTML5 video browser..

Reply to "For a better video playback experience we recommend an HTML5 video browser."
00maiser00 (talkcontribs)

I want to add some pre-made questions, were user just have to fill a box , make a click, and obtain the answer.

In order to do this i used semantic forms+templates, so that if for example i want to ask "Which are the contributions of a particular user (articles, links, extensions.... basically all in were user is tagged, can be accessed in a organized way just by putting his name in a box and clicking.


For this i converted the "preview" button, in something which takes the value of the box and launches the inline query (#ask) from the template without saving it as a page, obviously.


Problem is that upwards i get this message telling me that "this is a previsualization message....." which i want to get rid of.

Any way to do this? If possible, only in some particular pages, otherwhise, totally rid of.

Reply to "How to hide the "Preview" message."

Images missing after move wiki to another server

4
MichaelZ70 (talkcontribs)

Hello!

I want to move my wiki installation from a Windows 2008 Server with IIS:

Software Version
MediaWiki 1.24.1
PHP 5.5.8 (cgi-fcgi)
MySQL 5.5.25a-log

to a Windows 2012 Server with Apache:

Software Version
MediaWiki 1.24.1
PHP 5.6.8 (apache2handler)
MySQL 5.6.24

I exported the database on the old server and imported on the new one and copied the complete mediawiki directory to the new server. Most all is working fine but all images are not displayed. There is only the link (name of the image) shown and not the image itself:

Old Wiki:

New Wiki:

Imagemagick is installed on the new Server.

Does anyon have an idea what went wrong?

Thank you in advance

Michael

MichaelZ70 (talkcontribs)

Hallo!

I found out the reason for the problem. All pages (and internal links) on the new Server are like this:

<servername>/mediawiki/index.php/Startseite

if I change the URL to:

<servername>/mediawiki/index.php?Titel=Startseite

all works fine.

But how or where can I change this?

Thank you in advance

Michael

MichaelZ70 (talkcontribs)

ok I found the solution. I added the following two lines to the localsettings.php

$wgScript = "{$wgScriptPath}/index.php";
$wgArticlePath = "{$wgScript}?title=$1";

now all works fine like before :-)

12.53.16.147 (talkcontribs)

all of this is wrong. you have to change your url to hellokittypenis. duh

Reply to "Images missing after move wiki to another server"

The font size of new version mediawiki is different with the old.

1
Goddesschi (talkcontribs)

Hi Master, I upgraded the old version(1.22.3) to new(1.24.2) and I find the word size is different with the original word size. Could I edit the css(?) of new version to return to the original word size?

Please help me or provide more suggestion, thanks!!

old http://i.imgur.com/yKLJEHn.png

new http://i.imgur.com/b5eahhG.png

Reply to "The font size of new version mediawiki is different with the old."

CSS of mediawiki site looks different to users accessing site

1
216.2.50.97 (talkcontribs)

I created a Mediawiki page on a local VM behind my company's server with Windows 2008 R2 using apache 2, php5.6, and MySQL.


My page on my VM has the original skin and feel of the Mediawiki site, but if other people access the site internally in the company the page looses the skin and CSS and just looks like text.


How do I enable the site to maintain its skin and CSS when people access it?

Reply to "CSS of mediawiki site looks different to users accessing site"

LocalSettings.php not readable. Please correct file permissions and try again.

3
MichaelZ70 (talkcontribs)

I am running Mediawiki on a windows 2008 Server and sometime I receive the following error messageː

LocalSettings.php not readable. Please correct file permissions and try again.

After a reload of the page the message disappears and the page is loaded correctly. It appear not at special Wiki page and I haven't found when exactly the error message is displayed.

Anyone have an idea why it appears and how I can fix this problem.

Thank you in advance

Michael

193.47.168.10 (talkcontribs)

i've got the same problem, did you solved?

88.130.122.103 (talkcontribs)

Hard to believe that the permissions should suddenly be incorrect. I guess that what the error message tells you might not even be your problem.

Do you maybe have a race condition? The file is tried to be accessed by multiple processes at the same time. For the second one this fails and might give you this error?

Reply to "LocalSettings.php not readable. Please correct file permissions and try again."
Jasper Deng (talkcontribs)

This post by Jasper Deng was moved on 2015-04-13. You can find it at Thread:Talk:MediaWiki/Users of my Wiki getting kicked while editing but me not.

Reply to "google.com"

The best way (faster) to import a big data wikimedia.

1
Gbmoreira (talkcontribs)

I'm importing a MediaWiki database, in this case a metadata archive :

        Archive: enwiki-20150304-stub-meta-history.xml.gz 41.9 GB
        Download link: http://dumps.wikimedia.org/enwiki/20150304/

Currently I use mwdumper to do that, but now I need to import faster than this.

Anyone know which the best way to import metadata archive Mediawiki so fast?

Thanks in advance.

Reply to "The best way (faster) to import a big data wikimedia."

Extension de SPARQL pour l'interrogation en RDF

2
AbdelhediManel (talkcontribs)

Salut, je veux créer une extension de SPARQL pour l'interrogation en RDF, comment je peux intégrer un grammaire SPARQL dans une application Java?

Reply to "Extension de SPARQL pour l'interrogation en RDF"