Extension:WikidataPageBanner

The WikidataPageBanner extension adds pagewide banners on every page of specified namespaces of the wiki. Pagewide banners are extensively used on Wikivoyage projects and this extension is inspired majorly from pagebanner

Usage
The extension automatically adds a banner image on pages of specified namespaces. To use a custom banner image, use   with a set of parameters explained below. If the wiki is connected to wikidata, it can also fetch banners from there

Parameters to the function
The following parameters are supported to the   parser function:
 * pgname - Adds a custom title to the banner.
 * To add custom icons, add the parameter icons=icon1,icon2,... to  . Then define a background-image on .oo-ui-icon-icon1, .oo-ui-icon-icon2, in Mediawiki:Common.css to use as the icon.
 * caption - Use caption=description to add a caption to the banner image.
 * tooltip - Use tooltip=image-caption to show image description on hovering over image.

Required Settings
$wgPBImage is used to set the default banner image to be used. Add image name without prefixing 'File:' namespace $wgBannerProperty (Essential if Wikidata is enabled) - Banner property on wikidata which holds commons media file

Optional Settings
$wgBannerNamespaces array of namespaces on which to dispaly the banner. Default is Main namespace $wgStandardSizes is an array of standard predefined screen widths in increasing order of size