Difference between revisions of "Template:Bounty box"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) m |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {| cellspacing="5" style="width: | + | {{Save|total_available_money|total_remaining_money|available_money|remaining_money}}{| cellspacing="5" style="width: 14em; float: right; text-align: left; font-size: 88%; line-height: 1.5em; border: solid 1px grey; background: #f9f9f9; padding: 3px; margin: 0 0 0 12px;" |
|- | |- | ||
| colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; background: gold;" | | | colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; background: gold;" | | ||
− | Bounty | + | Bounty! |
|- | |- | ||
|<center>[[QBWiki:WikiProject Bounties/{{{1|1}}}|ID: {{{1|1}}}]]</center> | |<center>[[QBWiki:WikiProject Bounties/{{{1|1}}}|ID: {{{1|1}}}]]</center> | ||
<hr/> | <hr/> | ||
|- | |- | ||
− | |Task: {{{ | + | |'''Task:''' |
+ | {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|5}}}} | ||
|- | |- | ||
− | |Reward: | + | |'''Reward:''' {{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|7}}| |}} |
|- | |- | ||
− | |Available: {{{ | + | |'''Available:''' {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}} out of {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|10}}}} |
+ | |- | ||
+ | |<center>''[[QBWiki:WikiProject Bounties|View all]]''</center> | ||
+ | |}{{Load|total_available_money|total_remaining_money|available_money|remaining_money}}<noinclude>Format for this box largely borrowed from [[Template:Bounties]]. | ||
+ | |||
+ | Note that the entries in this table are extracted from the transcluded text of the corresponding bounty page and hence uses several "magic values" for where key information is located. Any major changes to the formatting of [[Template:Bounty row]] should involve corresponding changes to this template. | ||
+ | |||
+ | Debugging table: | ||
+ | {| class="wikitable" | ||
+ | ! Input | ||
+ | ! Output | ||
+ | |- | ||
+ | |<nowiki>{{QBWiki:WikiProject Bounties/{{{1|1}}}}}</nowiki> | ||
+ | + wrapped in a table | ||
+ | | | ||
+ | {| class="wikitable" | ||
+ | ! ID | ||
+ | ! Task | ||
+ | ! Reward | ||
+ | ! Remaining claims | ||
+ | ! Total claims | ||
+ | ! Instructions | ||
+ | |- | ||
+ | {{QBWiki:WikiProject Bounties/{{{1|1}}}}} | ||
|} | |} | ||
− | < | + | |- |
+ | |<nowiki>{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|5}}}}</nowiki> | ||
+ | |{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|5}}}} | ||
+ | |- | ||
+ | |<nowiki>{{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|7}}| |}}</nowiki> | ||
+ | |{{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|7}}| |}} | ||
+ | |- | ||
+ | |<nowiki>{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}}</nowiki> | ||
+ | |{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}} | ||
+ | |} | ||
+ | </noinclude> |
Latest revision as of 07:58, 13 March 2023
Bounty! | |
Task:
Create 5 wanted articles | |
Reward: $6 | |
Available: 8 out of 10 | |
Format for this box largely borrowed from Template:Bounties.
Note that the entries in this table are extracted from the transcluded text of the corresponding bounty page and hence uses several "magic values" for where key information is located. Any major changes to the formatting of Template:Bounty row should involve corresponding changes to this template.
Debugging table:
Input | Output | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{QBWiki:WikiProject Bounties/{{{1|1}}}}}
+ wrapped in a table |
| ||||||||||||
{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|5}}}} | Create 5 wanted articles | ||||||||||||
{{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|7}}| |}} | $6 | ||||||||||||
{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}} | 8 |