Utseende:Wima

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Skin:Wima and the translation is 86% complete.
Other languages:
Deutsch • ‎English • ‎svenska • ‎日本語
MediaWiki-manual för utseenden - kategori
Crystal Clear device blockdevice.png
Wima
Utgivningsstatus: stabil
MediaWiki 1.25 - 1.35.x
Licens GNU General Public License 2.0 eller senare
Ladda ner GitHub:
Översätt utseendet $2 om det finns tillgängligt på translatewiki.net
Kontrollera användning och versionsmatris;

Wima är en avgrening från utseendet MonoBook . This skin is to be considered as a replacement for MonoBook rather than a supplement. Den erbjuder ytterligare fyra reklamblock och annat för Sidospalt .

This project is abandoned in favor of WimaAdvertising and DonateButton.

Användning

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 Sidospalt . 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

  • Ladda ner och placera filen/filerna i en katalog som heter Wima i din skins/-mapp.
  • Lägg till följande kod längst ner i dina LocalSettings.php:
wfLoadSkin( 'Wima' );
  • Yes Klart - Ta dig till Special:Version på din wiki för att bekräfta att tillägget har installerats ordentligt.

Konfigurationsalternativ

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';
This will be translated into: de, en, es, fr, it, nl, pt, ru
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 = aktiverad
    • false = avaktiverad
    • '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';