MyWikiBiz, Author Your Legacy — Tuesday May 14, 2024
Jump to navigationJump to search
1,392 bytes added
, 08:00, 16 July 2021
This module displays banner-style adverts for various Wikipedia projects, processes and pages. It implements [[Template:Wikipedia ads]].
== Example ==
{{Wikipedia ads}}
== Usage ==
=== From wikitext ===
From wikitext, usually this module should be used via [[Template:Wikipedia ads]]. However, it is also possible to use the syntax <code><nowiki>{{#invoke:wikipedia ads|main|...}}</nowiki></code>, where "..." are the template arguments. See the template page for documentation and for a list of available parameters.
=== From Lua ===
First, load the module:
<syntaxhighlight lang="lua">
local mWikipediaAds = require('Module:Wikipedia ads')
</syntaxhighlight>
Then you can generate Wikipedia ads using the "_main" function:
<syntaxhighlight lang="lua">
mWikipediaAds._main(args)
</syntaxhighlight>
<var>args</var> 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 ==
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]].
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Wikipedia advertisement templates|*]]
}}</includeonly>