WikiMANNia / MediaWiki-Extension-WimaAdvertising

Adds four possible advertising spaces for the Skins Cologne Blue, Modern, MonoBook, and Vector that are filled by LocalSettings.php. - MediaWiki is hostile to Men, see https://phabricator.wikimedia.org/T323956
GNU General Public License v2.0
3 stars 0 forks source link

MediaWiki Wima-Advertising

Die Pflege der MediaWiki-Erweiterung WimaAdvertising wird von WikiMANNia verwaltet.

The maintenance of the MediaWiki extension WimaAdvertising is managed by WikiMANNia.

El mantenimiento de la extensión de MediaWiki WimaAdvertising está gestionado por WikiMANNia.

Description

Adds four possible advertising spaces for the Skins Cologne Blue, Modern, MonoBook, Minerva, Timeless, and Vector/Vector-2022 that are filled by LocalSettings.php.

The advertising space 1 alternates randomly with Sitenotice. Advertising space 2 is located at the bottom of the article content. The advertising spaces 3 and 4 are located in the Sidebar. The exact positioning is determined with the entries * AD1 and * AD2 in the Sidebar.

Custom Advertising

Enable advertising. Default is false.

Disable advertising for logged-in users. Default is false.

The slots can be labelled as Advert, Eventnote, Hint or let be blank. These variables have to be set:

The default value is advertising. These variables can therefore be omitted for advertising insertions.

HTML code must be assigned to these variables:

If a variable is not set or contains its string of zero length, the corresponding ad space remains unoccupied.

These variables must be assigned CSS style specifications, for example:

The advertising space 1 alternates randomly with Sitenotice. Advertising space 2 is located at the bottom of the article content. The advertising spaces 3 and 4 are located in the sitenotice. The exact positioning is determined with the entries * AD1 and * AD2 in the Sidebar.

Enable advertising. Default is false.

Disable advertising for logged-in users. Default is false.

The extension is localized for the languages "de", "en", "es", "fr", "it", "nl", "pt", and "ru".

Currently, this extension supports the skins Cologne Blue, Modern, MonoBook and Vector. Further skins may require additional adjustments, which would have to be made in resources/css/myskin.css.

Google AdSense

Enable advertising. Default is false.

Disable advertising for logged-in users. Default is false.

Mandatory parameters

Replace this with your own publisher ID (google_ad_client / data-ad-client)

Ad units

Define up to four ad units:

Also specify the width and the height of the AdSense unit, specified in your AdSense account (google_ad_width / data-ad-width, google_ad_height / data-ad-height). Values such as 'auto', '100%', '60%' etc. are accepted.

Optional parameters

Add any of the optional settings below – if your settings deviate from the defaults:

Source URL of the AdSense script. No need to change – it can't deviate from the defaults.

GoogleAdSenseMode. Default is normal.

Compatibility

This extension works from REL1_35 and has been tested up to MediaWiki version 1.35.14, 1.39.8 and 1.42.1.

Version history

1.0.0

2.0.0

2.0.1

2.0.2

2.0.3

2.1.0

2.2.0

2.3.0

2.4.0

2.4.1

2.5.0

2.6.0

2.7.0

2.7.1

2.8.0

2.8.2

2.8.3

2.8.4

2.8.5