Difference between revisions of "Template:Bounty box"

From QBWiki
Jump to navigation Jump to search
m
m
Line 8: Line 8:
 
|-
 
|-
 
|'''Task:'''
 
|'''Task:'''
{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|4}}}}
+
{{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|5}}}}
 
|-
 
|-
|'''Reward:''' {{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|6}}| |}}
+
|'''Reward:''' {{#replace:{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|7}}| |}}
 
|-
 
|-
|'''Available:''' {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|8}}}} out of {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}}
+
|'''Available:''' {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}} out of {{trim|{{#explode:{{QBWiki:WikiProject Bounties/{{{1|1}}}}}|{{!}}|9}}}}
 
|-
 
|-
 
|<center>''[[QBWiki:WikiProject Bounties|View all]]''</center>
 
|<center>''[[QBWiki:WikiProject Bounties|View all]]''</center>
 
|}
 
|}
 
<noinclude>Format for this box largely borrowed from [[Template:Bounties]].
 
<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>
 
</noinclude>

Revision as of 11:29, 7 September 2022

Bounty!

ID: 1

Task:

Create 5 wanted articles

Reward: $6
Available: 8 out of 8
View all

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

ID Task Reward Remaining claims Total claims Instructions
#1 Create 5 wanted articles $ 6 8 10 To complete this task:
  • Create five new pages from the first few pages of the list of Wanted pages.
{{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