Difference between revisions of "Widget:PledgeTracker"

From Nottinghack Wiki
Jump to navigation Jump to search
Line 39: Line 39:

Latest revision as of 15:59, 29 March 2019

This widget tracks the current amount pledged and collected for a pledge drive on a wiki page which makes use of table with specific columns.

Using this widget

You can insert a pledge tracker with the following wiki code:



The index of the table on the page containing the pledges (0 = the first table). Default: 0
The goal amount for the pledge drive. Default: 0
The index of the column within the pledges table which contains the pledge amount (0 = the first column). Default: 1
The index of the column within the table which indicates if the pledge amount has been paid (0 = the first column). If the column contains 'yes' or 'y' (case insensitive) then the pledge amount is considered to have been paid, any other content is considered as not paid. Default: 2


Who Amount Paid? Method Paid
Alice £30 Yes BACS
Bob £50 Yes CASH
Carol £25 No