Difference between revisions of "Template:Bounty row"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) m |
||
Line 1: | Line 1: | ||
<includeonly>{{!-}} | <includeonly>{{!-}} | ||
− | {{!}} [[QBWiki:WikiProject Bounties/{{#vardefineecho:id|{{{id|{{#expr:{{#var:id}}+1}}}}}}}|{{#var:id}}]] | + | {{!}} [[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}}}{{#vardefine:active_bounty_flag|{{#ifexpr:{{{ | + | {{!}} {{{4}}}{{#vardefine:active_bounty_flag|{{#ifexpr:{{{3|0}}}>0|1|0}}}} |
{{!}} {{{5}}} | {{!}} {{{5}}} | ||
{{!-}}{{#vardefine:available_money|{{#expr:({{{2|0}}}*{{{4|0}}})}}}}{{#vardefine:remaining_money|{{#expr:({{{2|0}}}*{{{3|0}}})}}}}</includeonly><noinclude> | {{!-}}{{#vardefine:available_money|{{#expr:({{{2|0}}}*{{{4|0}}})}}}}{{#vardefine:remaining_money|{{#expr:({{{2|0}}}*{{{3|0}}})}}}}</includeonly><noinclude> | ||
Line 19: | Line 19: | ||
Uses the following variables: | Uses the following variables: | ||
− | + | {| class="wikitable" | |
− | available_money | + | ! Variable name |
− | remaining_money | + | ! Description |
− | + | ! Value in this example | |
− | active_bounty_flag | + | |- |
+ | |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> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 11:16, 28 July 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 |