Template:Wikipedia ads/doc

This template displays web banner-style advertisements, almost all of which are animated, for various Wikipedia maintenance collaborations, WikiProjects, policies, guidelines, processes and practices, such as barnstars, featured articles and edit summaries. The ads rotate at random each time the page is changed, and can be cycled manually by clicking the "show another" button in the bottom-right corner of the box. Clicking on the ad will take you to a relevant page; to view the image description page, click the "file info" link.

To include the ad box on your userpage or talk page, simply edit your page and add Wikipedia ads in the appropriate place. This will produce:

Parameters
By default, the template will show ads taken at random from the entire collection. The following parameters are supported:

Hiding the ads
If you do not wish to see these ads, you may hide them by adding the following code to your common.css file:

Current ads
This template was conceived and implemented by Gurch and later rewritten by Svick. The images were created by many different users, as detailed below. (Individual images may have been edited by more than one user.)

If you would like an ad to be created for a particular page or project, one of the users listed below may wish to create it for you.


 * Berrely is happy to help with any requests, which can be made on his talk.

Bear in mind that there are already dozens of ads in use; if the project you wish to promote already has one, feel free to suggest improvements or make your own replacement, but try to stick to one ad per project.

Click the [ show ] button in the box below to expand the list of all ads.

Creating ads
If you wish to create ads yourself, you are welcome to do so. For Apple macOS users, click here for instructions. Alternatively, for Microsoft Windows users, click here for instructions. So that the template works properly, however, please ensure that the image is 468 pixels wide by 60 high.

Additionally, the following requirements must be met to ensure copyright and Wikipedia's image use policy are not violated:


 * If the image includes other images (a derivative work), it must include images under a free license or in the public domain.
 * The image itself must be released under a free license or into the public domain.
 * Some free licenses specify that derivative works must also use that license (for example, Creative Commons Attribution Share-Alike 2.0). If an ad contains images under such a license, the ad itself must also be released under that license.
 * Non-free images.

The image may be uploaded locally or to Commons, but in either case the local image description page should exist and contain.

Bear in mind when creating animations that they can have large file sizes, and many contributors do not access Wikipedia through a high-speed connection. Try to keep each image to no more than a few hundred kilobytes in size.

Adding and removing ads
To add and remove ads, please see the instructions at Module:Wikipedia ads/list.

Errors
Errors are tracked using the Category:Wikipedia ads templates with errors category.

ID '123' does not exist

 * Wikipedia ads error: ID '123' does not exist (help).

There are two likely causes for this error. The first is a misspelling of the ad ID. Check the list of current ads to see if you have typed in the ad ID correctly. The second is that the ID is for a previously existing banner that has been removed from Module:Wikipedia ads/list. Ads are sometimes removed for projects that have become defunct or are otherwise no longer relevant. Check the ad list history to see if this is the case. Usually in this case it is best to remove the ad ID from your Wikipedia ads template, but if you think the ad was removed from the ad list in error you can start a discussion about it at Template talk:Wikipedia ads.

TemplateData
{	"description": "Advertisements for all sorts of Wikipedia collaborations and policies.", "params": { "1": {			"type": "number", "description": "Number of a rotated ad." },		"2": {			"inherits": "2", "description": "Number of a rotated ad.", "type": "number" },		"3": {			"inherits": "2", "description": "Number of a rotated ad.", "type": "number" },		"4": {			"inherits": "2", "description": "Number of a rotated ad.", "type": "number" },		"5": {			"inherits": "2", "description": "Number of a rotated ad. Subsequent ads can be added with parameters 6, 7, 8, etc.", "type": "number" },		"ad": { "type": "number", "description": "Display the specified ad only.", "default": "rotates randomly" },		"linkcolor": { "type": "string", "description": "Color of the links.", "default": "#002bb8", "label": "Link color" },		"color": { "type": "string", "description": "Color of the text.", "default": "#555555" },		"background": { "type": "string", "description": "Background color." },		"float": { "type": "string", "description": "Position of the template. Can be \"left\", \"right\" or \"both\"." },		"margin": { "type": "string", "description": "A custom CSS margin for the template. Default to \"0 auto\" if the float parameter is not set.", "default": "0 auto" },		"nolinks": { "type": "string", "description": "Hide all links. Not recommended.", "label": "No links" },		"showpurge": { "label": "Show purge link", "description": "Display a \"show another\" link even if only one ad can be shown.", "type": "string" }	},	"paramOrder": [ "1",		"2",		"3",		"4",		"5",		"ad", "linkcolor", "color", "background", "float", "margin", "nolinks", "showpurge" ] }