Changes

Jump to: navigation, search

FundraisingThermometer

1,338 bytes added, 11:35, 19 April 2019
Created page with "{{Widget |description=Inserts a Fundraising Thermometer into your wiki. It is drawn using HTML5 canvas, so it will work in all modern browsers without plugins. |author=Grahams..."
{{Widget
|description=Inserts a Fundraising Thermometer into your wiki. It is drawn using HTML5 canvas, so it will work in all modern browsers without plugins.
|author=Grahams,
|provider=grahams
|providerurl=https://github.com/grahams/wikiwidgets
|status=active
}}
This widget allows you to add a FundraisingThermometer to your wiki page.

To insert this widget, use the following code:

<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|currentTotal=1000
|goal=8900
|width=100
|height=400
|framed=true
|asof=08/04/2016
}}</nowiki>

== Parameters ==
* '''percentage''' - The percentage of the thermometer. If omitted, you must include the currentTotal and goal params
* '''currentTotal''' - The current cash total. This parameter is only used if percentage is omitted
* '''goal''' - The overall cash goal. This parameter is only used if percentage is omitted
* '''width''' - The width of the widget in pixels
* '''height''' - The height of the widget in pixels
* '''framed''' - If true, will wrap the thermometer in a frame with a title indicating the percentage and the "As of" date.
* '''asof''' - A string, usually a date, which will be inserted into the frame header if framed is true

== Sample result ==
{{#widget:{{PAGENAME}}
|currentTotal=1000
|goal=8900
|width=100
|height=400
|framed=true
|asof=08/04/2016
}}

{{Comments}}
Root Admin, Bots, Bureaucrats, flow-bot, oversight, Administrators, Widget editors
24,656
edits

Navigation menu