Template:Pledge/doc: Difference between revisions
From London Hackspace Wiki
(Created page with "== Usage == <nowiki>{{pledge| target=</nowiki><br /> |name1= | pledge1=<br /> |name2= | pledge2=<br /> |name3= | pledge3=<br /> |name4= | pledge4=<br /> |name5= | pledge5=<br ...") |
m (+john) |
||
Line 15: | Line 15: | ||
|name1=Joe | pledge1=10<br /> | |name1=Joe | pledge1=10<br /> | ||
|name2=Jane | pledge2=15<br /> | |name2=Jane | pledge2=15<br /> | ||
|name3= | pledge3=<br /> | |name3=John | pledge3=5<br /> | ||
|name4= | pledge4=<br /> | |name4= | pledge4=<br /> | ||
|name5= | pledge5=<br /> | |name5= | pledge5=<br /> | ||
Line 25: | Line 25: | ||
|name1=Joe | pledge1=10 | |name1=Joe | pledge1=10 | ||
|name2=Jane | pledge2=15 | |name2=Jane | pledge2=15 | ||
|name3= | pledge3= | |name3=John | pledge3=5 | ||
|name4= | pledge4= | |name4= | pledge4= | ||
|name5= | pledge5= | |name5= | pledge5= | ||
}} | }} |
Latest revision as of 18:50, 28 April 2013
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 |
---|---|
Joe | £10 |
Jane | £15 |
John | £5
|
Target | £50 |
Pledged | £30 |
Still required | £20 |