Template:Wikipedia ads

From Wikipedia, the free encyclopedia
  (Redirected from Wikipedia:BANNER)
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]
Shortcuts:

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 manuually 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.

Ads on your page

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:

Parameter and Value Description
ad=ad number Display only the specified ad. Or, to rotate at random only some of the ads, specify unnamed parameters like this: The first is the count of the ads you want to rotate and the rest are the numbers of these ads. E.g. if you want to rotate ads 1, 2, 10 and 50, use the code {{wikipedia ads|4|1|2|10|50}}.
linkcolor=color Change the color of the links.
color=color Change the color of the text.
background=color Change the background color; by default the template has a transparent background.
float=position Float the ads alongside any text that follows, e.g. float=right.
nolinks Hide the links at the bottom of the template. Please try to avoid this, as the "file info" link is the only way to see the licensing and authorship information for the image (normally, this can be done simply by clicking the image).
navbox Show table of all ads instead of one ad.

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:

.qxz-ads { display: none !important; }

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. m.o.p is almost always open to requests; check his talk page.

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 Mac OS X users, click here for instructions. Alternatively, for Microsoft Windows users, click here for instructions. In order 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 only 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 cannot be used.

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

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.

Editing this template

This template is a little complex. Bear in mind that it is used on many userpages, so try not to break it.

Adding new ad

To create a new ad from an image you already uploaded and that satisfies the conditions above, edit Module:Wikipedia ads/list following these steps:

  • Increase the first table value (number of all ads) by one and remember the new value – it is the number of your ad.
  • Before the table values full of numbers almost at the end of the code, add lines formatted like this:
        [3] = "File:Qxz-ad1.gif",
        [4] = "Wikipedia:Barnstars",
        [5] = "[[User:Gurch|Gurch]]",
  • Each line starts with an number inside of square brackets. The number in the first line is three times the number of your ad. In the second line add one to that number and so on.
  • The first line is the ad image you already uploaded (including the File: prefix).
  • The second line is the page on Wikipedia you want to link to.
  • The third line is your (the ad's author's) signature.
  • Append the number at the end of the line full of numbers. This is done by adding a line like this one [] = "", and adding a number within the square brackets where one has been added to the number in the square brackets of the line above. Finally add the number of your ad within the quotation marks.

Removing ad

To remove an ad, whose number you know, edit this template and:

  • Increase the second table value (the number of inactive ads) by one.
  • Find a line full of numbers, almost at the end of the code and delete the line with the number of the ad you want to remove.
  • Change the lines below so the numbers within the square brackets are in a correct numerical order.

See also