Questions tagged [mediawiki]

MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other projects hosted by the non-profit Wikimedia Foundation and by many other wikis.

MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other Wikimedia projects and by many other wikis.

Related tags: , , , , , , , , , .

MediaWiki links:

3594 questions
8
votes
2 answers

Mediawiki table: "efficiently" applying different alignment for different column

How can I efficiently center-align some columns while left-align others? I want to do something like this. ------------------------- | A |B | ------------------------- | C |D | ------------------------- This…
user3123767
  • 1,115
  • 3
  • 13
  • 22
8
votes
1 answer

Old MediaWiki site broken in Chrome

On Chrome I have a MediaWiki 1.13 installation that works on Firefox and IE 11, but the left menu appears below the content in Chrome. How can I fix this without upgrading MediaWiki? EDIT: Found a similar question. Also found a compatibility page on…
Ruskin
  • 5,721
  • 4
  • 45
  • 62
8
votes
2 answers

Lua error on MediaWiki

I'm trying to set up a MediaWiki, and trying to use the Navbox template. I had everything working fine on my local machine, but when I copied it all to the server I get Lua script errors, specifically: Lua error at line 302: attempt to call field…
yedidyak
  • 1,964
  • 13
  • 26
8
votes
3 answers

Adding CSS or JS file to MediaWiki?

I've been following some tutorials at mediawiki.org but I didn't make it. I need to add a new CSS or JS code to be available in all my wiki (basically be cause I need to add some div tags). Can you guys help me? Appreciate that.
user2402509
8
votes
3 answers

Setting a non-binding space in a semantic record

Is there anyway to allow for a non-binding space   or other HTML encoded character to be used in a semantic record? The issue I am running into is that the ; character gets treated by the software as the end of a record. For example: Say I…
Zack
  • 2,377
  • 4
  • 25
  • 51
8
votes
5 answers

Does Caching always enhance performance?

I have a number of sites with PHP and MySQL, especially running MediaWiki, and I need to enhance the performance. However, I have only a limited percentage of CPU that I'm allowed to use. The best thing I can think about to improve performance is to…
Tamer Shlash
  • 9,314
  • 5
  • 44
  • 82
8
votes
3 answers

Can you easily configure MediaWiki to accept full HTML/CSS or even JS content?

I'd like to create a technical wiki site and it requires the full use of HTML/CSS and maybe Javascript when editing a page. Is this something I can easily configure in MediaWiki? If not, is there any other wiki software that you'd recommend? Thanks!
pixelfreak
  • 17,714
  • 12
  • 90
  • 109
8
votes
3 answers

How can I force MediaWiki to respect single line breaks?

By default, MediaWiki ignores single line breaks, treating them as a single space. To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph:

. It's also possible to insert

meetar
  • 7,443
  • 8
  • 42
  • 73
7
votes
5 answers

Is there a way automatically to resize MediaWiki images depending on screen size?

MediaWiki pictures can be set to a certain size with simple formatting. However, tables will resize on the fly depending on the browser / screen size. Can images be made to resize like tables? (Images inside tables does not work!)
7
votes
3 answers

How does one alter the sidebar of a MediaWiki site?

The default left sidebar for a MediaWiki powered sidebar contains such links as "Random Page" and "Current Events." I want to hide these. Is there a way to do this aside from using CSS (display:none;)? Correspondingly, is there a way to add pages to…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
7
votes
3 answers

Heredoc syntax error

For a mediawiki skin, I am getting an error for the following piece of code private $_sideboxf = <<%s EOD; The error is syntax error, unexpected T_START_HEREDOC . I…
yayu
  • 7,758
  • 17
  • 54
  • 86
7
votes
2 answers

Displaying a mediawiki within a iframe

First off... I don't really want to use iframes but I don't think I have a choice in this situation. I'm integrating some help docs into an already built system. The easiest thing for me to let other people write the help is to provide them with a…
ingh.am
  • 25,981
  • 43
  • 130
  • 177
7
votes
1 answer

Get total number of articles from a MediaWiki wiki programmatically

How can I get the total number of articles using the MediaWiki API? I couldn't find it in the docs: http://www.mediawiki.org/wiki/API:Search http://en.wikipedia.org/wiki/Help:Searching#Search_engine_features Even a rough approximation is fine.
Mulone
  • 3,603
  • 9
  • 47
  • 69
7
votes
2 answers

How to get wiki template's content?

Does anybody know how to get access to the template's body inside the page? I'm familiar with the API that returns the list of ALL templates that exist on the page, but how I can get access to the template's body? Is there any API for this? For now…
Mr. Pumpkin
  • 6,212
  • 6
  • 44
  • 60
7
votes
5 answers

Best approach to render MediaWiki in C#?

Question: I want to render MediaWiki syntax (and I mean MediaWiki syntax as used by WikiPedia, not some other wiki format from some other engine such as WikiPlex), and that in C#. Input: MediaWiki Markup string Output: HTML string There are some…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442