Template:Pledge: Difference between revisions

From London Hackspace Wiki
m (fix)
m (iff 1)
Line 4: Line 4:
{{#if: {{{name1|}}}|
{{#if: {{{name1|}}}|
{{!}}-
{{!}}-
{{!}} {{{name1}}} {{!}}{{!}} £{{{pledge1|}}}|}}
{{!}} {{{name1}}} {{!}}{{!}} £{{{pledge1|}}}
{{#if: {{{name2|}}}|
{{#if: {{{name2|}}}|
{{!}}-
{{!}}-
Line 45: Line 45:
{{!}}-
{{!}}-
{{!}} {{{name20}}} {{!}}{{!}} £{{{pledge20|}}}|}}
{{!}} {{{name20}}} {{!}}{{!}} £{{{pledge20|}}}|}}
|}
|}}|}
Target: '''£{{{target|0}}}'''
Target: '''£{{{target|0}}}'''



Revision as of 19:00, 28 April 2013

Name Pledged

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
Joe £10
Jane £15
John }

Target: £50

Total: £30

Needed: £20