Template:Pledge: Difference between revisions

From London Hackspace Wiki
m (930913 moved page User:930913/Pledge to Template:Pledge)
(box the totals)
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|-
|-
! Name !! Pledged
! Name !! Pledged
{{#if: {{{name1|}}}| {{!}}-
{{#if: {{{name1|}}}|
{{!}} {{{name1}}}{{!}}{{!}} £{{{pledge1|}}}|}}{{#if:
{{!}}-
{{{name2|}}}| {{!}}-
{{!}} [[User:{{{name1}}}|{{{name1}}}]] {{!}}{{!}} £{{{pledge1|}}}|}}
{{!}} {{{name2}}}{{!}}{{!}} £{{{pledge2|}}}|}}{{#if:
{{#if: {{{name2|}}}|
{{{name3|}}}| {{!}}-
{{!}}-
{{!}} {{{name3}}}{{!}}{{!}} £{{{pledge3|}}}|}}{{#if:
{{!}} [[User:{{{name2}}}|{{{name2}}}]] {{!}}{{!}} £{{{pledge2|}}}|}}
{{{name4|}}}| {{!}}-
{{#if: {{{name3|}}}|
{{!}} {{{name4}}}{{!}}{{!}} £{{{pledge4|}}}|}}{{#if:
{{!}}-
{{{name5|}}}| {{!}}-
{{!}} [[User:{{{name3}}}|{{{name3}}}]] {{!}}{{!}} £{{{pledge3|}}}|}}
{{!}} {{{name5}}}{{!}}{{!}} £{{{pledge5|}}}|}}{{#if:
{{#if: {{{name4|}}}|
{{{name6|}}}| {{!}}-
{{!}}-
{{!}} {{{name6}}}{{!}}{{!}} £{{{pledge6|}}}|}}{{#if:
{{!}} [[User:{{{name4}}}|{{{name4}}}]] {{!}}{{!}} £{{{pledge4|}}}|}}
{{{name7|}}}| {{!}}-
{{#if: {{{name5|}}}|
{{!}} {{{name7}}}{{!}}{{!}} £{{{pledge7|}}}|}}{{#if:
{{!}}-
{{{name8|}}}| {{!}}-
{{!}} [[User:{{{name5}}}|{{{name5}}}]] {{!}}{{!}} £{{{pledge5|}}}|}}
{{!}} {{{name8}}}{{!}}{{!}} £{{{pledge8|}}}|}}{{#if:
{{#if: {{{name6|}}}|
{{{name9|}}}| {{!}}-
{{!}}-
{{!}} {{{name9}}}{{!}}{{!}} £{{{pledge9|}}}|}}{{#if:
{{!}} [[User:{{{name6}}}|{{{name6}}}]] {{!}}{{!}} £{{{pledge6|}}}|}}
{{{name10|}}}| {{!}}-
{{#if: {{{name7|}}}|
{{!}} {{{name10}}}{{!}}{{!}} £{{{pledge10|}}}|}}{{#if:
{{!}}-
{{{name11|}}}| {{!}}-
{{!}} [[User:{{{name7}}}|{{{name7}}}]] {{!}}{{!}} £{{{pledge7|}}}|}}
{{!}} {{{name11}}}{{!}}{{!}} £{{{pledge11|}}}|}}{{#if:
{{#if: {{{name8|}}}|
{{{name12|}}}| {{!}}-
{{!}}-
{{!}} {{{name12}}}{{!}}{{!}} £{{{pledge12|}}}|}}{{#if:
{{!}} [[User:{{{name8}}}|{{{name8}}}]] {{!}}{{!}} £{{{pledge8|}}}|}}
{{{name13|}}}| {{!}}-
{{#if: {{{name9|}}}|
{{!}} {{{name13}}}{{!}}{{!}} £{{{pledge13|}}}|}}{{#if:
{{!}}-
{{{name14|}}}| {{!}}-
{{!}} [[User:{{{name9}}}|{{{name9}}}]] {{!}}{{!}} £{{{pledge9|}}}|}}
{{!}} {{{name14}}}{{!}}{{!}} £{{{pledge14|}}}|}}{{#if:
{{#if: {{{name10|}}}|
{{{name15|}}}| {{!}}-
{{!}}-
{{!}} {{{name15}}}{{!}}{{!}} £{{{pledge15|}}}|}}{{#if:
{{!}} [[User:{{{name10}}}|{{{name10}}}]] {{!}}{{!}} £{{{pledge10|}}}|}}
{{{name16|}}}| {{!}}-
{{#if: {{{name11|}}}|
{{!}} {{{name16}}}{{!}}{{!}} £{{{pledge16|}}}|}}{{#if:
{{!}}-
{{{name17|}}}| {{!}}-
{{!}} [[User:{{{name11}}}|{{{name11}}}]] {{!}}{{!}} £{{{pledge11|}}}
{{!}} {{{name17}}}{{!}}{{!}} £{{{pledge17|}}}|}}{{#if:
{{#if: {{{name12|}}}|
{{{name18|}}}| {{!}}-
{{!}}-
{{!}} {{{name18}}}{{!}}{{!}} £{{{pledge18|}}}|}}{{#if:
{{!}} [[User:{{{name12}}}|{{{name12}}}]] {{!}}{{!}} £{{{pledge12|}}}|}}
{{{name19|}}}| {{!}}-
{{#if: {{{name13|}}}|
{{!}} {{{name19}}}{{!}}{{!}} £{{{pledge19|}}}|}}{{#if:
{{!}}-
{{{name20|}}}| {{!}}-
{{!}} [[User:{{{name13}}}|{{{name13}}}]] {{!}}{{!}} £{{{pledge13|}}}|}}
{{!}} {{{name20}}}{{!}}{{!}} £{{{pledge20|}}}|}}
{{#if: {{{name14|}}}|
{{!}}-
{{!}} [[User:{{{name14}}}|{{{name14}}}]] {{!}}{{!}} £{{{pledge14|}}}|}}
{{#if: {{{name15|}}}|
{{!}}-
{{!}} [[User:{{{name15}}}|{{{name15}}}]] {{!}}{{!}} £{{{pledge15|}}}|}}
{{#if: {{{name16|}}}|
{{!}}-
{{!}} [[User:{{{name16}}}|{{{name16}}}]] {{!}}{{!}} £{{{pledge16|}}}|}}
{{#if: {{{name17|}}}|
{{!}}-
{{!}} [[User:{{{name17}}}|{{{name17}}}]] {{!}}{{!}} £{{{pledge17|}}}|}}
{{#if: {{{name18|}}}|
{{!}}-
{{!}} [[User:{{{name18}}}|{{{name18}}}]] {{!}}{{!}} £{{{pledge18|}}}|}}
{{#if: {{{name19|}}}|
{{!}}-
{{!}} [[User:{{{name19}}}|{{{name19}}}]] {{!}}{{!}} £{{{pledge19|}}}|}}
{{#if: {{{name20|}}}|
{{!}}-
{{!}} [[User:{{{name20}}}|{{{name20}}}]] {{!}}{{!}} £{{{pledge20|}}}|}}
|}}
|}
|}
Target: '''£{{{target|0}}}'''
{| class="wikitable"
 
|-
Total: '''£{{#expr: {{{pledge1|0}}}+{{{pledge2|0}}}+{{{pledge3|0}}}+{{{pledge4|0}}}+{{{pledge5|0}}}+{{{pledge6|0}}}+{{{pledge7|0}}}+{{{pledge8|0}}}+{{{pledge9|0}}}+{{{pledge10|0}}}+{{{pledge11|0}}}+{{{pledge12|0}}}+{{{pledge13|0}}}+{{{pledge14|0}}}+{{{pledge15|0}}}+{{{pledge16|0}}}+{{{pledge17|0}}}+{{{pledge18|0}}}+{{{pledge19|0}}}+{{{pledge20|0}}} }}'''
||Target||'''£{{{target|0}}}'''
 
|-
Needed: '''£{{#expr: {{{target|0}}}-({{{pledge1|0}}}+{{{pledge2|0}}}+{{{pledge3|0}}}+{{{pledge4|0}}}+{{{pledge5|0}}}+{{{pledge6|0}}}+{{{pledge7|0}}}+{{{pledge8|0}}}+{{{pledge9|0}}}+{{{pledge10|0}}}+{{{pledge11|0}}}+{{{pledge12|0}}}+{{{pledge13|0}}}+{{{pledge14|0}}}+{{{pledge15|0}}}+{{{pledge16|0}}}+{{{pledge17|0}}}+{{{pledge18|0}}}+{{{pledge19|0}}}+{{{pledge20|0}}}) }}'''
||Pledged|| '''£{{#expr: {{{pledge1|0}}}+{{{pledge2|0}}}+{{{pledge3|0}}}+{{{pledge4|0}}}+{{{pledge5|0}}}+{{{pledge6|0}}}+{{{pledge7|0}}}+{{{pledge8|0}}}+{{{pledge9|0}}}+{{{pledge10|0}}}+{{{pledge11|0}}}+{{{pledge12|0}}}+{{{pledge13|0}}}+{{{pledge14|0}}}+{{{pledge15|0}}}+{{{pledge16|0}}}+{{{pledge17|0}}}+{{{pledge18|0}}}+{{{pledge19|0}}}+{{{pledge20|0}}} }}'''
|-
||Still required|| '''£{{#expr: {{{target|0}}}-({{{pledge1|0}}}+{{{pledge2|0}}}+{{{pledge3|0}}}+{{{pledge4|0}}}+{{{pledge5|0}}}+{{{pledge6|0}}}+{{{pledge7|0}}}+{{{pledge8|0}}}+{{{pledge9|0}}}+{{{pledge10|0}}}+{{{pledge11|0}}}+{{{pledge12|0}}}+{{{pledge13|0}}}+{{{pledge14|0}}}+{{{pledge15|0}}}+{{{pledge16|0}}}+{{{pledge17|0}}}+{{{pledge18|0}}}+{{{pledge19|0}}}+{{{pledge20|0}}}) }}'''
|}
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:39, 1 May 2013

Name Pledged






Target £0
Pledged £0
Still required £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 £5





Target £50
Pledged £30
Still required £20