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
 * The icon parameters explained below in the optional settings section
 * caption - Use caption=description to add a caption to the banner 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 $wgBannerIcons is an array of icons definitions where each icon is defined by a key(parameter name to be used in as argument) and value is an array of: In the above example, if you want to use star icon, the parser function will be called like $wgBannerIconSize is the standard size of the icons used in banner.
 * Icon filename
 * Icon name
 * Link to article containing info about the icon.