From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: beta
Implementation Parser function
Description Enables use of Masonry blocks
Author(s) Daren Welsh (Darenwelshtalk)
Latest version 0.3.0 (2018-11-13)
MediaWiki 1.25+
PHP 5.4+
Database changes No
License GNU General Public License 3.0 or later
Check usage and version matrix.

The MasonryMainPage extension allows users to format the body of a wiki page using Masonry blocks. These blocks will dynamically relocate upon initial load and browser resize to more efficiently fill the space.

The Masonry script is developed by David DeSandro and information about that script can be found at masonry.desandro.com.


  • Download and place the file(s) in a directory called MasonryMainPage in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'MasonryMainPage' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'MasonryMainPage' );, you need to use:

require_once "$IP/extensions/MasonryMainPage/MasonryMainPage.php";


See the README file for further information on this.