Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OSAS/strapping-mediawiki
base skin for MediaWiki, based on Bootstrap — layer your own style (fonts, graphics, color) on top
https://github.com/OSAS/strapping-mediawiki
Last synced: 3 months ago
JSON representation
base skin for MediaWiki, based on Bootstrap — layer your own style (fonts, graphics, color) on top
- Host: GitHub
- URL: https://github.com/OSAS/strapping-mediawiki
- Owner: OSAS
- License: other
- Archived: true
- Created: 2013-01-16T14:27:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T10:35:29.000Z (over 8 years ago)
- Last Synced: 2024-05-15T04:33:23.161Z (6 months ago)
- Language: PHP
- Size: 1.03 MB
- Stars: 146
- Watchers: 37
- Forks: 35
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Strapping, a friendly starter theme for MediaWiki
Strapping is an elegant, responsive, and friendly starter skin for MediaWiki.
Its purpose is to provide a good base to build upon,
and was primarily created to provide a great default for wiki-as-a-website
— but it works well for standard wikis too.Strapping is built on top of a modified Vector theme from **[MediaWiki](http://mediawiki.org/)**
and utilizes **[Bootstrap](http://getbootstrap.com/)**
(currently Bootstrap 2; soon to be upgraded)
for base layout, typography, and additional widgets.Because Strapping uses Bootstrap with its responsive extension,
any site using this skin works well on desktop browsers
and scales down to display beautifully on hand-held devices
like tablets and smartphones.Strapping also has complete coverage for all of MediaWiki,
including the user preferences and admin pages.
All of MediaWiki's features are included, too.## Origin (and demo) of Strapping
Strapping was made from the need of reworking oVirt.org look attractive,
have one place for everyone to edit content
(instead of a mix of WordPress and MediaWiki),
and have an easy-to-work with site
so that anyone could either stick to MediaWiki marked up pages
or do some more advanced layout (with columns, etc.) using Bootstrap.You can see a (customized) instance of Strapping in action by visiting http://oVirt.org/
## Requirements
* Webserver with PHP (needed for MediaWiki)
* MediaWiki 1.18.1 or higher (1.18.1 was the first release with jQuery 1.7+, needed for Bootstrap)## Get started
1. Change to the "skins" subdirectory of your MediaWiki installation:
```
cd skins
```2. Clone the repository:
```
git clone https://github.com/OSAS/strapping-mediawiki strapping
```3. Add the following to `LocalSettings.php`:
```php
require_once( "$IP/skins/strapping/strapping.php" );
$wgDefaultSkin = "strapping";
```
(You may safely remove or comment out other mentions of
`$wgDefaultSkin`.)4. Edit the wiki page `MediaWiki:Sidebar` with your web browser
to change your navigation links.5. Customize the skin to make the site look how you'd want.
(See "Customization", below.)### Optional configuration
#### Wiki-as-a-website (no edit links or toolbar)
Strapping was originally designed to be used in a wiki-as-a-website mode,
where, to someone not signed in, it would be unable to notice
that the site is powered by MediaWiki.
(If someone is signed in and has access,
then "edit" links and the toolbar appear.)You can either leave full edit access available to anyone
(even anonymous editors), which is the default for MediaWiki,
or lock it down a bit.To operate in this mode, add the following to `LocalSettings.php`:
```php
$wgGroupPermissions['*']['edit'] = false;
```## Customization
It's easy to make the theme look however desired,
and there are several methods on achieving results.### Basic Bootstrap customization
Bootstrap has a customization page
where you can change several aspects of the Bootstrap theme.
Simply:1. Visit [the Bootstrap customizer page](http://getbootstrap.com/2.3.2/customize.html)
2. change values
3. click the giant button at the bottom of the page
4. replace Strapping's `bootstrap` directory with the one in your ZIP fileNote: Since Bootstrap is based on the LESS CSS preprocessor,
you can also achieve similar results from a command line.### Bootswatch
[Bootswatch](http://bootswatch.com/) is a project
that provides drop-in Bootstrap CSS replacements.Visit the site and grab a theme to start using it immediately.
### theme.css
This method can be used without any other customizations,
or in addition to altering Bootstrap themes.1. In the `screen.css` file, uncomment the `theme.css` import.
2. Add custom CSS to the `theme.css` file,
including any colors and fonts you'd like to use.#### Font sources
Custom fonts can be found on [Google Web Fonts](http://google.com/webfonts)
and you can make your own `@font-face`-ready fonts
(if you have the permission to do so)
with [FontSquirrel's generator](http://fontsquirrel.com/fontface/generator)## Markup reference
While plain vanilla MediaWiki markup can be used,
sites using Strapping can also utilize any of Bootstrap's CSS
for more advanced layout and markup.### Strapping-specific
There are a few Strapping-specific CSS classes you can use.
**FIXME: Elaborate on strapping-specific CSS classes here**
### Layout
Do **NOT** use tables for layout.
Instead, use Bootstrap's scaffolding to do layout.Bootstrap scaffolding is based on having rows
that are formed with 12 possible columns.
To span a column, you use a classname of `span`
plus the number of columns you'd like to span,
such as `span2` to use up 2 columns.
Everything should add up to 12
(or less, if there's going to be space on the right side).Make sure to wrap the spans into `row`s for everything to work correctly.
It looks something like this:
```html
```For more information,
please visit [Bootstrap's documentation](http://getbootstrap.com/2.3.2/scaffolding.html).### Documentation
Please consult [MediaWiki's formatting page](http://www.mediawiki.org/wiki/Help:Formatting)
for help with writing wiki text.If you're feeling adventurous and want to use some more advanced formatting,
you can attach any Bootstrap classes to `div`s.### Licensing, Copying, Usage
Strapping is open source, and built on open source projects.
Please check out the [LICENSE file](https://github.com/OSAS/strapping-mediawiki/blob/master/LICENSE) for details.