Difference between revisions of "Template:Bounty row"

From QBWiki
Jump to navigation Jump to search
m
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{!-}}
 
<includeonly>{{!-}}
{{!}} {{{id|{{#expr:{{#var:id}}+1}}}}}
+
{{!}} style="text-align:center;" {{!}} [[QBWiki:WikiProject Bounties/{{#vardefineecho:id|{{{id|{{#expr:{{#var:id}}+1}}}}}}}|#{{#var:id}}]]
 
{{!}} {{{1}}}
 
{{!}} {{{1}}}
 
{{!}} bgcolor={{Hex interpolate|ffd700|ffffff|fraction={{#expr:{{{2|1}}}/50}}}}{{!}}${{{2|0}}}
 
{{!}} bgcolor={{Hex interpolate|ffd700|ffffff|fraction={{#expr:{{{2|1}}}/50}}}}{{!}}${{{2|0}}}
 
{{!}} bgcolor={{Hex interpolate|56d43d|e7722a|fraction={{#expr:{{{3|1}}}/{{{4|1}}}}}}}{{!}}{{{3|}}}
 
{{!}} bgcolor={{Hex interpolate|56d43d|e7722a|fraction={{#expr:{{{3|1}}}/{{{4|1}}}}}}}{{!}}{{{3|}}}
{{!}} {{{4}}}
+
{{!}} {{{4}}}{{#vardefine:active_bounty_flag|{{#ifexpr:{{{3|0}}}>0|1|0}}}}
 
{{!}} {{{5}}}
 
{{!}} {{{5}}}
{{!-}}</includeonly><noinclude>
+
{{!-}}{{#vardefine:available_money|{{#expr:({{{2|0}}}*{{{4|0}}})}}}}{{#vardefine:remaining_money|{{#expr:({{{2|0}}}*{{{3|0}}})}}}}</includeonly><noinclude>
 
{| class=wikitable
 
{| class=wikitable
 +
! ID
 
! Task
 
! Task
 
! Reward
 
! Reward
Line 14: Line 15:
 
! Instructions
 
! Instructions
 
|-
 
|-
{{Bounty row| Contribute to the wiki | 23 | 1 | 120 | Just do it }}
+
{{Bounty row|id=15| Contribute to the wiki | 23 | 1 | 120 | Just do it }}
 
|}
 
|}
  
 +
Uses the following variables:
 +
{| class="wikitable"
 +
! Variable name
 +
! Description
 +
! Value in this example
 +
|-
 +
|available_money
 +
|The money offered by this bounty (reward * total claims)
 +
|{{#var:available_money}}
 +
|-
 +
|remaining_money
 +
|The money still available from this bounty (reward * remaining claims)
 +
|{{#var:remaining_money}}
 +
|-
 +
|active_bounty_flag
 +
|1 if active (>0 remaining claims), 0 if not
 +
|{{#var:active_bounty_flag}}
 +
|}
 +
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 10:19, 7 September 2022

ID Task Reward Remaining claims Total claims Instructions
#15 Contribute to the wiki $ 23 1 120 Just do it

Uses the following variables:

Variable name Description Value in this example
available_money The money offered by this bounty (reward * total claims) 2760
remaining_money The money still available from this bounty (reward * remaining claims) 23
active_bounty_flag 1 if active (>0 remaining claims), 0 if not 1