MediaWiki Notes

From Wiki
Jump to navigationJump to search

Various notes on Wikipedia configuration, etc.

Clean-up

  • From maintenance directory:
php deleteOldRevisions.php --delete
php deleteArchivedFiles.php --delete
php rebuildrecentchanges.php
php refreshLinks.php
  • To clear page cache
touch LocalSettings.php

Notes

Starting in MW 1.14, a blacklisting for application/zip MIME types was added ([1]). To fix this, add the following two lines to LocalSettings.php. Note that there is a security implication to this.

unset ($wgMimeTypeBlacklist [array_search ('application/zip', $wgMimeTypeBlacklist)]);
$wgMimeTypeBlacklist = array_values ($wgMimeTypeBlacklist);

Presentation

  • To modify the default table behavior, edit MediaWiki:Monobook.css
/* CSS placed here will affect users of the Monobook skin */

#ca-talk { display:none!important; }

pre { 
  margin-left: 1%; 
  padding: 0.5em; 
  font-family: courier new, monospace; 
  color: black; 
  background-color: #eeeeff; 
  line-height: 1.1em; 
  border: 1px dashed #aaaaaa;
} 

code { 
  padding: 0.5em; 
  margin-left: 1%; 
  font-family: courier new, monospace;
}

blockquote { 
  padding: 1em; 
  font-size: medium;
  font-family: "Comic Sans MS", cursive; 
  background-color: #e0e0ff; 
  line-height: 1.1em;
  border: 1px solid #e0e0ff; 
}

h3 { 
  padding-left: 1em; 
  color: rgb(119, 0, 0);
}

h4 { 
  padding-left: 2em; 
  color: navy; 
}

table { 
  border-width: 1px solid gray;
  border-collapse: collapse;
  border-spacing: 0px;
  padding: 3px;	
}

th { 
  border: 1px solid gray;
  background: rgb(166, 202, 240) ;
  border-spacing: 0px;
  padding: 3px;
}

td { 
  border: 1px solid gray;
  border-spacing: 0px;
  padding: 3px;
}