Template:Pledge

From London Hackspace Wiki

Revision as of 17:25, 1 May 2013 by AlisonW (talk | contribs) (revised version (doesn't need talk links))

Name Pledged

{{#if: |

[[User:{{{name1}}}|{{{name1}}}]] £






Target: £0

Total: £0

Needed: £0

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

{{pledge| target=
|name1= | pledge1=
|name2= | pledge2=
|name3= | pledge3=
|name4= | pledge4=
|name5= | pledge5=
}}

This template can currently handle 20 pledges, though it can be extended for more.

Example

{{pledge| target=50
|name1=Joe | pledge1=10
|name2=Jane | pledge2=15
|name3=John | pledge3=5
|name4= | pledge4=
|name5= | pledge5=
}}

will result in this:

Name Pledged

{{#if: Joe|

Joe £10
Jane £15
John £5





Target: £50

Total: £30

Needed: £20