Module:Wikipedia ads/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>John123521 at 23:38, 1 December 2025 (Undid revision 1268059367 by 68.45.243.153 (talk)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module displays banner-style adverts for various Wikipedia projects, processes and pages. It implements Template:Wikipedia ads.

Example

[edit source]

From wikitext

[edit source]

From wikitext, usually this module should be used via Template:Wikipedia ads. However, it is also possible to use the syntax {{#invoke:wikipedia ads|main|...}}, where "..." are the template arguments. See the template page for documentation and for a list of available parameters.

From Lua

[edit source]

First, load the module:

local mWikipediaAds = require('Module:Wikipedia ads')

Then you can generate Wikipedia ads using the "_main" function:

mWikipediaAds._main(args)

args is a table of arguments that can be used by the module. See Template:Wikipedia ads for a complete list of arguments and for other documentation.

Adding and removing ads

[edit source]

For instructions on creating the animated GIF files used in the ads, see Template:Wikipedia ads#Creating ads. For instructions on adding and removing images from the module, see Module:Wikipedia ads/list.