Template:Wikipedia ads

From Wikipedia, the free encyclopedia
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 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.

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.

Contact Svick if you need assistance with this.

Adding new ad

To create a new ad from an image you already uploaded and that satisfies the conditions above, edit this template following these steps:

  • Increase the first parameter (number of all ads) by one and remember the new value – it is the number of your ad.
  • Before the line full of numbers almost at the end of the code, add a line formatted like this:
| File:Qxz-ad1.gif | Wikipedia:Barnstars | [[User:Gurch|Gurch]]
  • The first part is the ad image you already uploaded (including the File: prefix).
  • The second part is the page on Wikipedia you want to link to.
  • The third part is your (the ad's author's) signature. (The signature can contain neither | nor = that aren't inside a link or a template tag. They have to be replaced by {{!}} and {{=}} respectively.)
  • Append | and the number of your ad at the end of the line full of numbers.

Removing ad

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

  • Increase the second parameter (the number of inactive ads) by one.
  • Find the line full of numbers, almost at the end of the code and delete the number of the ad you want to remove, including one of the neighbouring |.

See also
http://en.wikipedia.org/wiki/Template:Wikipedia_ads
en.wikipedia.org
crawl=CC-MAIN-2014-15
200930
application/http; msgtype=response
sha1:KV6E47SYPXTOJZXAXYFUX5DKBCNJRBNL
<urn:uuid:6730dddb-1017-4675-8cf9-4e9396011828>
2014-04-19T23:01:34Z
208.80.154.224
sha1:CZFC2PLZDXPUMNMQJ3Q3B6OZB36TPJP7
<urn:uuid:2e13c44c-da11-4be2-b8ac-2697ca46e44b>
http://en.wikipedia.org/wiki/Template:Wikipedia_ads
response
<urn:uuid:dcd331c9-926d-4f12-a8b2-bc8adc77e618>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf