Difference between revisions of "FundraisingThermometer"

From No Subject - Encyclopedia of Psychoanalysis
Jump to: navigation, search
(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...")
 
(The LinkTitles extension automatically added links to existing pages (https://github.com/bovender/LinkTitles).)
 
Line 6: Line 6:
 
|status=active
 
|status=active
 
}}
 
}}
This widget allows you to add a FundraisingThermometer to your wiki page.
+
This widget allows you to add a FundraisingThermometer to your [[wiki]] page.
  
To insert this widget, use the following code:
+
To insert this widget, use the following [[code]]:
  
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 
|currentTotal=1000
 
|currentTotal=1000
|goal=8900
+
|[[goal]]=8900
 
|width=100
 
|width=100
 
|height=400
 
|height=400
|framed=true
+
|framed=[[true]]
 
|asof=08/04/2016
 
|asof=08/04/2016
 
}}</nowiki>
 
}}</nowiki>
Line 21: Line 21:
 
== Parameters ==
 
== Parameters ==
 
* '''percentage''' - The percentage of the thermometer. If omitted, you must include the currentTotal and goal params
 
* '''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
+
* '''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
 
* '''goal''' - The overall cash goal. This parameter is only used if percentage is omitted
 
* '''width''' - The width of the widget in pixels
 
* '''width''' - The width of the widget in pixels
 
* '''height''' - The height 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.
+
* '''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
+
* '''asof''' - A string, usually a date, which will be inserted into the frame [[header]] if framed is true
  
 
== Sample result ==
 
== Sample result ==

Latest revision as of 08:16, 24 May 2019

FundraisingThermometer widget
Description: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:{{#arraymap:Grahams,|,|@@@|@@@}}
Provider:grahams [[Widget Provider::grahams|]]
Code:Widget Code Page::Widget:FundraisingThermometer
Status:active
Updated:{{#show: Widget:FundraisingThermometer |?Modification date#-F[F j, Y] }} {{#info: If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken. |note }}
Security:Widget Security::unknown
Template:AddThis
Inv-Icon tools.png

To copy this widget to your wiki, cut and paste the entire source of the FundraisingThermometer widget code page into a page called Widget:FundraisingThermometer on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.


{{#set:

Widget Name=FundraisingThermometer
|Widget Added On={{#show: FundraisingThermometer |?Creation date }}
|Widget Updated On={{#show: Widget:FundraisingThermometer |?Modification date#ISO }}
|Widget Status=active|+sep=,
|Meta element keywords=MediaWiki, Widget, Widgets, FundraisingThermometer|+sep=,
|Meta element description=This site is hosting a public collection of MediaWiki Widgets to be used with the Widgets extension. This page is about the FundraisingThermometer widget.

}}

This widget allows you to add a FundraisingThermometer to your wiki page.

To insert this widget, use the following code:

{{#widget:FundraisingThermometer
|currentTotal=1000
|[[goal]]=8900
|width=100
|height=400
|framed=[[true]]
|asof=08/04/2016
}}

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

11% (as of 08/04/2016)

Template:Comments