Template:Pledge: Difference between revisions

From London Hackspace Wiki
(fix lines)
(fix lines)
Line 2: Line 2:
|-
|-
! Name !! Pledged
! Name !! Pledged
{{#if: {{{name1|}}}| {{!}}-
{{#if: {{{name1|}}}|
{{!}} {{{name1}}}{{!}}{{!}} £{{{pledge1|}}}|}}{{#if: {{{name2|}}}|
{{!}}-
{{!}}-
{{!}} {{{name2}}}{{!}}{{!}} £{{{pledge2|}}}|}}{{#if: {{{name3|}}}|
{{!}} {{{name1}}} {{!}}{{!}} £{{{pledge1|}}}|}}{{#if: {{{name2|}}}|
{{!}}-
{{!}}-
{{!}} {{{name3}}}{{!}}{{!}} £{{{pledge3|}}}|}}{{#if: {{{name4|}}}|
{{!}} {{{name2}}} {{!}}{{!}} £{{{pledge2|}}}|}}{{#if: {{{name3|}}}|
{{!}}-
{{!}}-
{{!}} {{{name4}}}{{!}}{{!}} £{{{pledge4|}}}|}}{{#if: {{{name5|}}}|
{{!}} {{{name3}}} {{!}}{{!}} £{{{pledge3|}}}|}}{{#if: {{{name4|}}}|
{{!}}-
{{!}}-
{{!}} {{{name5}}}{{!}}{{!}} £{{{pledge5|}}}|}}{{#if: {{{name6|}}}|
{{!}} {{{name4}}} {{!}}{{!}} £{{{pledge4|}}}|}}{{#if: {{{name5|}}}|
{{!}}-
{{!}}-
{{!}} {{{name6}}}{{!}}{{!}} £{{{pledge6|}}}|}}{{#if: {{{name7|}}}|
{{!}} {{{name5}}} {{!}}{{!}} £{{{pledge5|}}}|}}{{#if: {{{name6|}}}|
{{!}}-
{{!}}-
{{!}} {{{name7}}}{{!}}{{!}} £{{{pledge7|}}}|}}{{#if: {{{name8|}}}|
{{!}} {{{name6}}} {{!}}{{!}} £{{{pledge6|}}}|}}{{#if: {{{name7|}}}|
{{!}}-
{{!}}-
{{!}} {{{name8}}}{{!}}{{!}} £{{{pledge8|}}}|}}{{#if: {{{name9|}}}|
{{!}} {{{name7}}} {{!}}{{!}} £{{{pledge7|}}}|}}{{#if: {{{name8|}}}|
{{!}}-
{{!}}-
{{!}} {{{name9}}}{{!}}{{!}} £{{{pledge9|}}}|}}{{#if: {{{name10|}}}|
{{!}} {{{name8}}} {{!}}{{!}} £{{{pledge8|}}}|}}{{#if: {{{name9|}}}|
{{!}}-
{{!}}-
{{!}} {{{name10}}}{{!}}{{!}} £{{{pledge10|}}}|}}{{#if: {{{name11|}}}|
{{!}} {{{name9}}} {{!}}{{!}} £{{{pledge9|}}}|}}{{#if: {{{name10|}}}|
{{!}}-
{{!}}-
{{!}} {{{name11}}}{{!}}{{!}} £{{{pledge11|}}}|}}{{#if: {{{name12|}}}|
{{!}} {{{name10}}} {{!}}{{!}} £{{{pledge10|}}}|}}{{#if: {{{name11|}}}|
{{!}}-
{{!}}-
{{!}} {{{name12}}}{{!}}{{!}} £{{{pledge12|}}}|}}{{#if: {{{name13|}}}|
{{!}} {{{name11}}} {{!}}{{!}} £{{{pledge11|}}}|}}{{#if: {{{name12|}}}|
{{!}}-
{{!}}-
{{!}} {{{name13}}}{{!}}{{!}} £{{{pledge13|}}}|}}{{#if: {{{name14|}}}|
{{!}} {{{name12}}} {{!}}{{!}} £{{{pledge12|}}}|}}{{#if: {{{name13|}}}|
{{!}}-
{{!}}-
{{!}} {{{name14}}}{{!}}{{!}} £{{{pledge14|}}}|}}{{#if: {{{name15|}}}|
{{!}} {{{name13}}} {{!}}{{!}} £{{{pledge13|}}}|}}{{#if: {{{name14|}}}|
{{!}}-
{{!}}-
{{!}} {{{name15}}}{{!}}{{!}} £{{{pledge15|}}}|}}{{#if: {{{name16|}}}|
{{!}} {{{name14}}} {{!}}{{!}} £{{{pledge14|}}}|}}{{#if: {{{name15|}}}|
{{!}}-
{{!}}-
{{!}} {{{name16}}}{{!}}{{!}} £{{{pledge16|}}}|}}{{#if: {{{name17|}}}|
{{!}} {{{name15}}} {{!}}{{!}} £{{{pledge15|}}}|}}{{#if: {{{name16|}}}|
{{!}}-
{{!}}-
{{!}} {{{name17}}}{{!}}{{!}} £{{{pledge17|}}}|}}{{#if: {{{name18|}}}|
{{!}} {{{name16}}} {{!}}{{!}} £{{{pledge16|}}}|}}{{#if: {{{name17|}}}|
{{!}}-
{{!}}-
{{!}} {{{name18}}}{{!}}{{!}} £{{{pledge18|}}}|}}{{#if: {{{name19|}}}|
{{!}} {{{name17}}} {{!}}{{!}} £{{{pledge17|}}}|}}{{#if: {{{name18|}}}|
{{!}}-
{{!}}-
{{!}} {{{name19}}}{{!}}{{!}} £{{{pledge19|}}}|}}{{#if: {{{name20|}}}|
{{!}} {{{name18}}} {{!}}{{!}} £{{{pledge18|}}}|}}{{#if: {{{name19|}}}|
{{!}}-
{{!}}-
{{!}} {{{name20}}}{{!}}{{!}} £{{{pledge20|}}}|}}
{{!}} {{{name19}}} {{!}}{{!}} £{{{pledge19|}}}|}}{{#if: {{{name20|}}}|
{{!}}-
{{!}} {{{name20}}} {{!}}{{!}} £{{{pledge20|}}}|}}
|}
|}
Target: '''£{{{target|0}}}'''
Target: '''£{{{target|0}}}'''

Revision as of 18:46, 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 - Jane - John £5

Target: £50

Total: £30

Needed: £20