Difference between revisions of "Template:Tasks"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

(Added better documentation.)
Line 10: Line 10:
 
! Requirements
 
! Requirements
 
|-
 
|-
{{#ifeq: {{{a1}}}||
+
{{#ifeq: {{{1}}}||
 
! 1
 
! 1
 
{{!}} <span class="tasks" style="background-position: -104px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -104px;"></span>
Line 19: Line 19:
 
{{!}} 5}}
 
{{!}} 5}}
 
|-
 
|-
{{#ifeq: {{{a2}}}||
+
{{#ifeq: {{{2}}}||
 
! 2
 
! 2
 
{{!}} <span class="tasks" style="background-position: -260px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -104px;"></span>
Line 29: Line 29:
 
{{!}} Any block}}
 
{{!}} Any block}}
 
|-
 
|-
{{#ifeq: {{{a3}}}||
+
{{#ifeq: {{{3}}}||
 
! 3
 
! 3
 
{{!}} <span class="tasks" style="background-position: -208px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -104px;"></span>
Line 39: Line 39:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a4}}}||
+
{{#ifeq: {{{4}}}||
 
! 4
 
! 4
 
{{!}} <span class="tasks" style="background-position: -156px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px 0;"></span>
Line 49: Line 49:
 
{{!}} x4 {{I|Wooden Planks}}}}
 
{{!}} x4 {{I|Wooden Planks}}}}
 
|-
 
|-
{{#ifeq: {{{a5}}}||
+
{{#ifeq: {{{5}}}||
 
! 5
 
! 5
 
{{!}} <span class="tasks" style="background-position: 0 -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -156px;"></span>
Line 59: Line 59:
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Wooden Planks}}}}
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Wooden Planks}}}}
 
|-
 
|-
{{#ifeq: {{{a6}}}||
+
{{#ifeq: {{{6}}}||
 
! 6
 
! 6
 
{{!}} <span class="tasks" style="background-position: -364px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -104px;"></span>
Line 69: Line 69:
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Cobblestone}}}}
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Cobblestone}}}}
 
|-
 
|-
{{#ifeq: {{{a7}}}||
+
{{#ifeq: {{{7}}}||
 
! 7
 
! 7
 
{{!}} <span class="tasks" style="background-position: 0 -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -52px;"></span>
Line 79: Line 79:
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Iron ingot}}}}
 
{{!}} x1 {{I|Crafting Table}} x2 {{I|Stick}} x3 {{I|Iron ingot}}}}
 
|-
 
|-
{{#ifeq: {{{a8}}}||
+
{{#ifeq: {{{8}}}||
 
! 8
 
! 8
 
{{!}} <span class="tasks" style="background-position: -416px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px 0;"></span>
Line 89: Line 89:
 
{{!}} x1 {{I|Crafting Table}} x8 {{I|Cobblestone}}}}
 
{{!}} x1 {{I|Crafting Table}} x8 {{I|Cobblestone}}}}
 
|-
 
|-
{{#ifeq: {{{a9}}}||
+
{{#ifeq: {{{9}}}||
 
! 9
 
! 9
 
{{!}} <span class="tasks" style="background-position: -572px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px 0;"></span>
Line 99: Line 99:
 
{{!}} x1 {{I|Furnace}} x1 {{I|Iron ore}} x1 {{I|Coal}}}}
 
{{!}} x1 {{I|Furnace}} x1 {{I|Iron ore}} x1 {{I|Coal}}}}
 
|-
 
|-
{{#ifeq: {{{a10}}}||
+
{{#ifeq: {{{10}}}||
 
! 10
 
! 10
 
{{!}} <span class="tasks" style="background-position: -520px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px -104px;"></span>
Line 109: Line 109:
 
{{!}} x1 {{I|Stick}} x1 {{I|Coal}}}}
 
{{!}} x1 {{I|Stick}} x1 {{I|Coal}}}}
 
|-
 
|-
{{#ifeq: {{{a11}}}||
+
{{#ifeq: {{{11}}}||
 
! 11
 
! 11
 
{{!}} <span class="tasks" style="background-position: -468px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px 0;"></span>
Line 119: Line 119:
 
{{!}} x1 {{I|Sapling}}}}
 
{{!}} x1 {{I|Sapling}}}}
 
|-
 
|-
{{#ifeq: {{{a12}}}||
+
{{#ifeq: {{{12}}}||
 
! 12
 
! 12
 
{{!}} <span class="tasks" style="background-position: -416px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -104px;"></span>
Line 129: Line 129:
 
{{!}} {{I|Bone}}}}
 
{{!}} {{I|Bone}}}}
 
|-
 
|-
{{#ifeq: {{{a13}}}||
+
{{#ifeq: {{{13}}}||
 
! 13
 
! 13
 
{{!}} <span class="tasks" style="background-position: -364px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -52px;"></span>
Line 139: Line 139:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a14}}}||
+
{{#ifeq: {{{14}}}||
 
! 14
 
! 14
 
{{!}} <span class="tasks" style="background-position: -104px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -52px;"></span>
Line 149: Line 149:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a15}}}||
+
{{#ifeq: {{{15}}}||
 
! 15
 
! 15
 
{{!}} <span class="tasks" style="background-position: -416px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -52px;"></span>
Line 159: Line 159:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a16}}}||
+
{{#ifeq: {{{16}}}||
 
! 16
 
! 16
 
{{!}} <span class="tasks" style="background-position: 0 -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -104px;"></span>
Line 169: Line 169:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a17}}}||
+
{{#ifeq: {{{17}}}||
 
! 17
 
! 17
 
{{!}} <span class="tasks" style="background-position: -468px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px -52px;"></span>
Line 179: Line 179:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a18}}}||
+
{{#ifeq: {{{18}}}||
 
! 18
 
! 18
 
{{!}} <span class="tasks" style="background-position: -572px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px -52px;"></span>
Line 189: Line 189:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a19}}}||
+
{{#ifeq: {{{19}}}||
 
! 19
 
! 19
 
{{!}} <span class="tasks" style="background-position: -312px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -52px;"></span>
Line 199: Line 199:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a20}}}||
+
{{#ifeq: {{{20}}}||
 
! 20
 
! 20
 
{{!}} <span class="tasks" style="background-position: -52px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -52px;"></span>
Line 209: Line 209:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a21}}}||
+
{{#ifeq: {{{21}}}||
 
! 21
 
! 21
 
{{!}} <span class="tasks" style="background-position: -104px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -156px;"></span>
Line 219: Line 219:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a22}}}||
+
{{#ifeq: {{{22}}}||
 
! 22
 
! 22
 
{{!}} <span class="tasks" style="background-position: -156px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -52px;"></span>
Line 229: Line 229:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a23}}}||
+
{{#ifeq: {{{23}}}||
 
! 23
 
! 23
 
{{!}} <span class="tasks" style="background-position: -208px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -52px;"></span>
Line 239: Line 239:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a24}}}||
+
{{#ifeq: {{{24}}}||
 
! 24
 
! 24
 
{{!}} <span class="tasks" style="background-position: -520px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px 0;"></span>
Line 249: Line 249:
 
{{!}} x1 {{I|Wooden hoe}} x1 {{I|Seeds}}}}
 
{{!}} x1 {{I|Wooden hoe}} x1 {{I|Seeds}}}}
 
|-
 
|-
{{#ifeq: {{{a25}}}||
+
{{#ifeq: {{{25}}}||
 
! 25
 
! 25
 
{{!}} <span class="tasks" style="background-position: -156px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -156px;"></span>
Line 259: Line 259:
 
{{!}} x1 {{I|Crafting Table}} x3 {{I|Bucket of milk}} x2 {{I|Sugar}} x1 {{I|Egg}} x3 {{I|Wheat}}}}
 
{{!}} x1 {{I|Crafting Table}} x3 {{I|Bucket of milk}} x2 {{I|Sugar}} x1 {{I|Egg}} x3 {{I|Wheat}}}}
 
|-
 
|-
{{#ifeq: {{{a26}}}||
+
{{#ifeq: {{{26}}}||
 
! 26
 
! 26
 
{{!}} <span class="tasks" style="background-position: -208px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px 0;"></span>
Line 269: Line 269:
 
{{!}} Any food}}
 
{{!}} Any food}}
 
|-
 
|-
{{#ifeq: {{{a27}}}||
+
{{#ifeq: {{{27}}}||
 
! 27
 
! 27
 
{{!}} <span class="tasks" style="background-position: -572px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px -104px;"></span>
Line 279: Line 279:
 
{{!}} x1 {{I|Bed}}}}
 
{{!}} x1 {{I|Bed}}}}
 
|-
 
|-
{{#ifeq: {{{a28}}}||
+
{{#ifeq: {{{28}}}||
 
! 28
 
! 28
 
{{!}} <span class="tasks" style="background-position: -364px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -156px;"></span>
Line 289: Line 289:
 
{{!}} x1 {{I|Diamond pickaxe}}}}
 
{{!}} x1 {{I|Diamond pickaxe}}}}
 
|-
 
|-
{{#ifeq: {{{a29}}}||
+
{{#ifeq: {{{29}}}||
 
! 29
 
! 29
 
{{!}} <span class="tasks" style="background-position: -312px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -156px;"></span>
Line 299: Line 299:
 
{{!}} x1 {{I|Iron pickaxe}}}}
 
{{!}} x1 {{I|Iron pickaxe}}}}
 
|-
 
|-
{{#ifeq: {{{a30}}}||
+
{{#ifeq: {{{30}}}||
 
! 30
 
! 30
 
{{!}} <span class="tasks" style="background-position: -260px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -156px;"></span>
Line 309: Line 309:
 
{{!}} x1 {{I|Iron pickaxe}}}}
 
{{!}} x1 {{I|Iron pickaxe}}}}
 
|-
 
|-
{{#ifeq: {{{a31}}}||
+
{{#ifeq: {{{31}}}||
 
! 31
 
! 31
 
{{!}} <span class="tasks" style="background-position: -208px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -156px;"></span>
Line 319: Line 319:
 
{{!}} x1 {{I|Crafting Table}} x8 {{I|Odd rock}} x1 {{I|Obsidian}}}}
 
{{!}} x1 {{I|Crafting Table}} x8 {{I|Odd rock}} x1 {{I|Obsidian}}}}
 
|-
 
|-
{{#ifeq: {{{a32}}}||
+
{{#ifeq: {{{32}}}||
 
! 32
 
! 32
 
{{!}} <span class="tasks" style="background-position: -52px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -156px;"></span>
Line 329: Line 329:
 
{{!}} x6 {{I|Portal stone}}}}
 
{{!}} x6 {{I|Portal stone}}}}
 
|-
 
|-
{{#ifeq: {{{a33}}}||
+
{{#ifeq: {{{33}}}||
 
! 33
 
! 33
 
{{!}} <span class="tasks" style="background-position: -156px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -104px;"></span>
Line 339: Line 339:
 
{{!}} x1 {{I|Iron Door}} x1 {{I|Redstone Block}} x1 {{I|Pressure Plate}} x1 {{I|Lever}}}}
 
{{!}} x1 {{I|Iron Door}} x1 {{I|Redstone Block}} x1 {{I|Pressure Plate}} x1 {{I|Lever}}}}
 
|-
 
|-
{{#ifeq: {{{a34}}}||
+
{{#ifeq: {{{34}}}||
 
! 34
 
! 34
 
{{!}} <span class="tasks" style="background-position: -312px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px 0;"></span>
Line 349: Line 349:
 
{{!}} x1 {{I|Bow}} x1 {{I|Arrow}}}}
 
{{!}} x1 {{I|Bow}} x1 {{I|Arrow}}}}
 
|-
 
|-
{{#ifeq: {{{a35}}}||
+
{{#ifeq: {{{35}}}||
 
! 35
 
! 35
 
{{!}} <span class="tasks" style="background-position: -468px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px -104px;"></span>
Line 359: Line 359:
 
{{!}} x1 {{I|Ender pearl}}}}
 
{{!}} x1 {{I|Ender pearl}}}}
 
|-
 
|-
{{#ifeq: {{{a36}}}||
+
{{#ifeq: {{{36}}}||
 
! 36
 
! 36
 
{{!}} <span class="tasks" style="background-position: -416px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -156px;"></span>
Line 369: Line 369:
 
{{!}} x7 {{I|Portal Frame}} x7 {{I|Eye of ender}}}}
 
{{!}} x7 {{I|Portal Frame}} x7 {{I|Eye of ender}}}}
 
|-
 
|-
{{#ifeq: {{{a37}}}||
+
{{#ifeq: {{{37}}}||
 
! 37
 
! 37
 
{{!}} <span class="tasks" style="background-position: -458px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -458px -156px;"></span>
Line 379: Line 379:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a38}}}||
+
{{#ifeq: {{{38}}}||
 
! 38
 
! 38
 
{{!}} <span class="tasks" style="background-position: -520px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px -52px;"></span>
Line 389: Line 389:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a39}}}||
+
{{#ifeq: {{{39}}}||
 
! 39
 
! 39
 
{{!}} <span class="tasks" style="background-position: -260px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -52px;"></span>
Line 399: Line 399:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a40}}}||
+
{{#ifeq: {{{40}}}||
 
! 40
 
! 40
 
{{!}} <span class="tasks" style="background-position: -364px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px 0;"></span>
Line 409: Line 409:
 
{{!}} x1 {{I|Fishing Rod}}}}
 
{{!}} x1 {{I|Fishing Rod}}}}
 
|-
 
|-
{{#ifeq: {{{a41}}}||
+
{{#ifeq: {{{41}}}||
 
! 41
 
! 41
 
{{!}} <span class="tasks" style="background-position: 0 0;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 0;"></span>
Line 419: Line 419:
 
{{!}} x1 {{I|Anvil}}}}
 
{{!}} x1 {{I|Anvil}}}}
 
|-
 
|-
{{#ifeq: {{{a42}}}||
+
{{#ifeq: {{{42}}}||
 
! 42
 
! 42
 
{{!}} <span class="tasks" style="background-position: -52px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -104px;"></span>
Line 429: Line 429:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a43}}}||
+
{{#ifeq: {{{43}}}||
 
! 43
 
! 43
 
{{!}} <span class="tasks" style="background-position: -312px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -104px;"></span>
Line 439: Line 439:
 
|}}
 
|}}
 
|-
 
|-
{{#ifeq: {{{a44}}}||
+
{{#ifeq: {{{44}}}||
 
! 44
 
! 44
 
{{!}} <span class="tasks" style="background-position: -104px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px 0;"></span>
Line 449: Line 449:
 
{{!}} x1 {{I|Brewing Stand}} x1 {{I|Bottle of Water}} <!-- More here -->}}
 
{{!}} x1 {{I|Brewing Stand}} x1 {{I|Bottle of Water}} <!-- More here -->}}
 
|-
 
|-
{{#ifeq: {{{a45}}}||
+
{{#ifeq: {{{45}}}||
 
! 45
 
! 45
 
{{!}} <span class="tasks" style="background-position: -52px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px 0;"></span>
Line 460: Line 460:
 
}}
 
}}
 
|-
 
|-
{{#ifeq: {{{a46}}}||
+
{{#ifeq: {{{46}}}||
 
! 46
 
! 46
 
{{!}} <span class="tasks" style="background-position: -260px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px 0;"></span>
Line 490: Line 490:
 
; Results in the "Tasks" section with a table containing the task/achievement number 1:
 
; Results in the "Tasks" section with a table containing the task/achievement number 1:
  
{{Tasks|a1=}}
+
{{Tasks|1=}}
  
 
; And
 
; And
Line 498: Line 498:
 
; Does the same, but with tasks number 1, 10, 20, 30, 40, and 46:
 
; Does the same, but with tasks number 1, 10, 20, 30, 40, and 46:
  
{{Tasks|a1=|a10=|a20=|a30=|a40=|a46=}}
+
{{Tasks|1=|10=|20=|30=|40=|46=}}

Revision as of 18:51, 20 December 2021

Tasks

Number Icon[ng] Name Newgrounds name Description [ng] Objective Points[ng] Requirements

Usage

This template generates a table with the requested task(s)' info. The following code would display all achievements, each per generated row:

{{Tasks|a1=|a2=|a3=|a4=|a5=|a6=|a7=|a8=|a9=|a10=|a11=|a12=|a13=|a14=|a15=|a16=|a17=|a18=|a19=|a20=|a21=|a22=|a23=|a24=|a25=|a26=|a27=|a28=|a29=|a30=|a31=|a32=|a33=|a34=|a35=|a36=|a37=|a38=|a39=|a40=|a41=|a42=|a43=|a44=|a45=|a46}}
}}

(The result can be seen on the tasks' page).

Example

The template is pretty straightforward. You just add it along with |a*= where * is the number of the achievement you want to add. It automatically generates a new section called "Tasks" with the table's header by default, and then you can start adding rows as you wish with that method.

In other words

{{Tasks|a1=}}

Results in the "Tasks" section with a table containing the task/achievement number 1

Tasks

Number Icon[ng] Name Newgrounds name Description [ng] Objective Points[ng] Requirements
1 Mine a block of wood Mine Wood Wood is used in the most important crafting recipes! Destroy a wood block 5
And

{{Tasks|a1=|a10=|a20=|a30=|a40=|a46=}}

Does the same, but with tasks number 1, 10, 20, 30, 40, and 46

Tasks

Number Icon[ng] Name Newgrounds name Description [ng] Objective Points[ng] Requirements
1 Mine a block of wood Mine Wood Wood is used in the most important crafting recipes! Destroy a wood block 5
10 Make some torches Torches Torches will light up the dark Make at least one torch 5 x1 Stick x1 Coal
20 Slay a blaze Kill a Blaze They will shoot fireballs at you like crazy! Kill a blaze 5
30 Mine diamonds Mine Diamonds You can't bre much fancier than a diamond pickaxe! Destroy a diamond ore block 10 x1 Iron pickaxe
40 Fish a fish Fish a Fish Catch a fish with a fishing rod! Fish a fish with the fishing rod 5 x1 Fishing Rod
46 Enchant an item Enchant an Item Use an enchantment table! Use the enchantment table to enchant a item 5 x1 Enchantment table x1 Diamond sword