Skin:VectorAd

From mediawiki.org
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎svenska • ‎日本語
MediaWiki skins manual - category
Crystal Clear device blockdevice.png
VectorAd
Release status: stable
MediaWiki 1.25 - 1.35.x
License GNU General Public License 2.0 or later
Download GitHub:
Translate the VectorAd skin if it is available at translatewiki.net
Check usage and version matrix;

VectorAd is a fork from the Vector skin. This skin is to be considered as a replacement for Vector rather than a supplement. It offers four additional advertising blocks and further extras for the Sidebar .

This project is abandoned in favor of WimaAdvertising and DonateButton.

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 VectorAd in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'VectorAd' );
  • Yes Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Configuration options[edit]

[edit]

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[edit]
  • 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[edit]
  • 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[edit]
  • 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[edit]

wgDonationButton[edit]
  • Enable or disable the DonationButton.
    • true = enabled
    • false = disabled
    • 'not set' = disabled
$wgDonationButton = true;
wgDonationButtonURL[edit]
  • 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[edit]
  • Set a donation button.
$wgDonationButtonIMG = $wgServer . '/images/Donate_Button.gif';

FacebookButton[edit]

wgFacebookButton[edit]
  • Enable or disable the FacebookButton
    • true = enabled
    • false = disabled
    • 'not set' = disabled
$wgFacebookButton = false;
wgFacebookButtonURL[edit]
  • Set a link to your facebook page.
$wgDonationButtonURL = 'www.facebook.com/pages/WikiMANNia/446420928790151';
wgFacebookButtonIMG[edit]
  • Set a facebook button image.
$wgFacebookButtonIMG = 'commons.wikimannia.org/images/Logo-Facebook.png';

AgeClassification[edit]

See also: age classification

wgAgeClassificationButton[edit]
  • Enable or disable the AgeClassificationButton
    • true = enabled
    • false = disabled
    • 'not set' = disabled
$wgAgeClassificationButton = false;
wgAgeClassificationButtonURL[edit]
  • Set a link to your age classification page.
$wgAgeClassificationButtonURL = 'www.altersklassifizierung.de/';
wgAgeClassificationButtonIMG[edit]
  • Set a age classification button image.
$wgAgeClassificationButtonIMG = 'wikimannia.org/skins/fsm-aks148.png';
AgeClassificationMetaData[edit]
  • Set the age classification metadata.
$wgAgeClassificationMetaName = 'age-de-meta-label';
$wgAgeClassificationMetaContent = 'age=0 hash: yourdigitalcode v=1.0 kind=sl protocol=all';