Skin:Wima
Wima Release status: stable |
|
---|---|
MediaWiki | 1.25 - 1.35.x |
License | GNU General Public License 2.0 or later |
Download | GitHub: |
Example | Demo site |
Translate the Wima skin if it is available at translatewiki.net | |
Check usage and version matrix; |
Wima is a fork from the MonoBook skin. This skin is to be considered as a replacement for MonoBook rather than a supplement. It offers four additional advertising blocks and further extras for the Sidebar .
Use[edit]
One ad block is located at the top of the "MediaWiki:Sitenotice ", a second one below the article text in front of the category bar and two more ad blocks in the Sidebar .
By entering * AD1
and * AD2
in the MediaWiki:Sidebar , these can be placed individually.
If Sitenotice is defined, the TopBanner will be displayed randomly alternating with the Sitenotice message.
Installation[edit]
- Download and place the file(s) in a directory called
Wima
in yourskins/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'Wima' );
Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Configuration options[edit]
Banner
Set up the type of the banner
- wgTopBannerType, wgBottomBannerType, wgAdSidebarTopType, wgAdSidebarBottomType
Set up the banner itself
- wgTopBannerCode, wgBottomBannerCode, wgAdSidebarTopCode, wgAdSidebarBottomCode
Set up the css style
- wgTopBannerStyle, wgBottomBannerStyle
wgTopBannerType
- Set the type of the banner
- Possible values: 'advertising', 'eventnote', 'hint'
- Default value: 'advertising'
$wgTopBannerType = 'eventnote';
wgTopBannerCode
- Set a html snipet of the banner.
$wgTopBannerCode = '<a title="Uhren-Wiki" href="https://www.uhren-wiki.net"><img src="https://wikimannia.org/skins/werbung/Werbung - Oben.jpg" width="728" height="92" alt="Werbung" /></a>';
$wgAdSidebarTopCode = '<a title="Schwarzbuch Wikipedia" href="https://de.wikimannia.org/Schwarzbuch_Wikipedia"><img src="https://wikimannia.org/werbung/images/130px-Schwarzbuch_Wikipedia.jpg" alt="Schwarzbuch_Wikipedia.jpg" /></a> <p><b>Schwarzbuch Wikipedia</b></p><p class="small">Mobbing, Diffamierung und Falschinformation in der Online-Enzyklopädie, und was jetzt dagegen getan werden muss.</p><p>Im Februar 2020 im <i>Zeitgeist-Verlag</i> erschienen.</p>';
wgTopBannerStyle
- Set the CSS style specifications for the banner.
$wgTopBannerStyle = 'text-align:center;border:1px solid blue;';
$wgBottomBannerStyle = 'text-align:center;border:1px dotted red;';
DonationButton
wgDonationButton
- Enable or disable the DonationButton.
- true = enabled
- false = disabled
- 'not set' = disabled
$wgDonationButton = true;
wgDonationButtonURL
- Set a link to a donation page.
$wgDonationButtonURL = 'www.wikimannia.org/spende/spende.php?s=';
The link is automatically completed by the code of the language selected by the user or alternatively by the $wgLanguageCode variable.
wgDonationButtonIMG
- Set a donation button.
$wgDonationButtonIMG = $wgServer . '/images/Donate_Button.gif';
FacebookButton
wgFacebookButton
- Enable or disable the FacebookButton
- true = enabled
- false = disabled
- 'not set' = disabled
$wgFacebookButton = false;
wgFacebookButtonURL
- Set a link to your facebook page.
$wgDonationButtonURL = 'www.facebook.com/pages/WikiMANNia/446420928790151';
wgFacebookButtonIMG
- Set a facebook button image.
$wgFacebookButtonIMG = 'commons.wikimannia.org/images/Logo-Facebook.png';
AgeClassification
See also: age classification
wgAgeClassificationButton
- Enable or disable the AgeClassificationButton
- true = enabled
- false = disabled
- 'not set' = disabled
$wgAgeClassificationButton = false;
wgAgeClassificationButtonURL
- Set a link to your age classification page.
$wgAgeClassificationButtonURL = 'www.altersklassifizierung.de/';
wgAgeClassificationButtonIMG
- Set a age classification button image.
$wgAgeClassificationButtonIMG = 'wikimannia.org/skins/fsm-aks148.png';
AgeClassificationMetaData
- Set the age classification metadata.
$wgAgeClassificationMetaName = 'age-de-meta-label';
$wgAgeClassificationMetaContent = 'age=0 hash: yourdigitalcode v=1.0 kind=sl protocol=all';