Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Wikipedia ads/list/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This module contains ad data for [[Module:Wikipedia ads]]. To add or remove an ad, you need to edit this module. == Adding ads == To add a new banner ad, you first need to create the ad image, and upload it to the English Wikipedia or to [[c:|Wikimedia Commons]]. For instructions on how to do this, see [[Template:Wikipedia ads#Creating ads]]. Once you have created and uploaded the image, edit this module and add the following code on a new line just before the very last closing curly bracket on the page: {{#tag: syntaxhighlight | { id = {{#invoke:Wikipedia ads/next id|main}}, image = "My banner image filename.gif", link = "My project link", author = "[[User:The author's username|The author's username]]" }, |lang=lua }{{#tag: syntaxhighlight | { id = {{#invoke:Wikipedia ads/next id|main}}, image = "Wikipedian Peace Treatment Organization Ad.jpg", link = "Wikipedia:Wikipedian Peace Treatment Organization", author = "[[User:Copperwidth|Copperwidth]]" }, |lang=lua }}} Fields: * '''id''' - The ID displayed above is calculated from the current ad list, so you shouldn't need to change it. * '''image''' - The filename of the ad image, without "File:". * '''link''' - The page that the image should link to. You can use [[WP:INTERWIKI|interwiki]] prefixes, but you should not use square brackets. * '''author''' - A wikilink or wikilinks for the user(s) who created the ad. The input should go between the double quote marks (""). If any of your input contains double quotes, you can escape them by using a backslash, like this: <syntaxhighlight lang="lua"> author = "[[User:Austin \"Danger\" Powers|Austin \"Danger\" Powers]]" </syntaxhighlight> == Removing ads == To remove an ad, simply remove its table from the module. (That's the six lines including opening curly bracket, id, image, link, author, and closing curly bracket.) The other ads will be re-ordered automatically. Note that if any users have explicitly specified that ad in {{tl|Wikipedia ads}} then the module will generate an error of "ID '<i>id</i>' does not exist", and the transcluding page will show up in [[:Category:Wikipedia ads templates with errors]]. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:Wikipedia advertisement templates|List]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Tl
(
edit
)
Module:Wikipedia ads/list
(
edit
)
Module:Wikipedia ads/next id
(
edit
)