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!

(Test)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
! Requirements
 
! Requirements
 
|-
 
|-
{{#if: {{{1|}}}|
+
{{#ifeq: {{{1}}}||
 
! 1
 
! 1
 
{{!}} <span class="tasks" style="background-position: -104px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -104px;"></span>
Line 18: Line 18:
 
{{!}} 5}}
 
{{!}} 5}}
 
|-
 
|-
{{#if: {{{2|}}}|
+
{{#ifeq: {{{2}}}||
 
! 2
 
! 2
 
{{!}} <span class="tasks" style="background-position: -260px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -104px;"></span>
Line 28: Line 28:
 
{{!}} Any block}}
 
{{!}} Any block}}
 
|-
 
|-
{{#if: {{{3|}}}|
+
{{#ifeq: {{{3}}}||
 
! 3
 
! 3
 
{{!}} <span class="tasks" style="background-position: -208px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -104px;"></span>
Line 38: Line 38:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{4|}}}|
+
{{#ifeq: {{{4}}}||
 
! 4
 
! 4
 
{{!}} <span class="tasks" style="background-position: -156px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px 0;"></span>
Line 48: Line 48:
 
{{!}} ×4 {{I|Wooden Planks}}}}
 
{{!}} ×4 {{I|Wooden Planks}}}}
 
|-
 
|-
{{#if: {{{5|}}}|
+
{{#ifeq: {{{5}}}||
 
! 5
 
! 5
 
{{!}} <span class="tasks" style="background-position: 0 -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -156px;"></span>
Line 58: Line 58:
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Wooden Planks}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Wooden Planks}}}}
 
|-
 
|-
{{#if: {{{6|}}}|
+
{{#ifeq: {{{6}}}||
 
! 6
 
! 6
 
{{!}} <span class="tasks" style="background-position: -364px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -104px;"></span>
Line 68: Line 68:
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Cobblestone}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Cobblestone}}}}
 
|-
 
|-
{{#if: {{{7|}}}|
+
{{#ifeq: {{{7}}}||
 
! 7
 
! 7
 
{{!}} <span class="tasks" style="background-position: 0 -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -52px;"></span>
Line 78: Line 78:
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Iron ingot}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×2 {{I|Stick}} ×3 {{I|Iron ingot}}}}
 
|-
 
|-
{{#if: {{{8|}}}|
+
{{#ifeq: {{{8}}}||
 
! 8
 
! 8
 
{{!}} <span class="tasks" style="background-position: -416px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px 0;"></span>
Line 88: Line 88:
 
{{!}} ×1 {{I|Crafting Table}} ×8 {{I|Cobblestone}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×8 {{I|Cobblestone}}}}
 
|-
 
|-
{{#if: {{{9|}}}|
+
{{#ifeq: {{{9}}}||
 
! 9
 
! 9
 
{{!}} <span class="tasks" style="background-position: -572px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px 0;"></span>
Line 98: Line 98:
 
{{!}} ×1 {{I|Furnace}} ×1 {{I|Iron Ore}} ×1 {{I|Coal}}}}
 
{{!}} ×1 {{I|Furnace}} ×1 {{I|Iron Ore}} ×1 {{I|Coal}}}}
 
|-
 
|-
{{#if: {{{10|}}}|
+
{{#ifeq: {{{10}}}||
 
! 10
 
! 10
 
{{!}} <span class="tasks" style="background-position: -520px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px -104px;"></span>
Line 108: Line 108:
 
{{!}} ×1 {{I|Stick}} ×1 {{I|Coal}}}}
 
{{!}} ×1 {{I|Stick}} ×1 {{I|Coal}}}}
 
|-
 
|-
{{#if: {{{11|}}}|
+
{{#ifeq: {{{11}}}||
 
! 11
 
! 11
 
{{!}} <span class="tasks" style="background-position: -468px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px 0;"></span>
Line 118: Line 118:
 
{{!}} ×1 {{I|Sapling}}}}
 
{{!}} ×1 {{I|Sapling}}}}
 
|-
 
|-
{{#if: {{{12|}}}|
+
{{#ifeq: {{{12}}}||
 
! 12
 
! 12
 
{{!}} <span class="tasks" style="background-position: -416px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -104px;"></span>
Line 128: Line 128:
 
{{!}} {{I|Bone}}}}
 
{{!}} {{I|Bone}}}}
 
|-
 
|-
{{#if: {{{13|}}}|
+
{{#ifeq: {{{13}}}||
 
! 13
 
! 13
 
{{!}} <span class="tasks" style="background-position: -364px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -52px;"></span>
Line 138: Line 138:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{14|}}}|
+
{{#ifeq: {{{14}}}||
 
! 14
 
! 14
 
{{!}} <span class="tasks" style="background-position: -104px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -52px;"></span>
Line 148: Line 148:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{15|}}}|
+
{{#ifeq: {{{15}}}||
 
! 15
 
! 15
 
{{!}} <span class="tasks" style="background-position: -416px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -52px;"></span>
Line 158: Line 158:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{16|}}}|
+
{{#ifeq: {{{16}}}||
 
! 16
 
! 16
 
{{!}} <span class="tasks" style="background-position: 0 -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 -104px;"></span>
Line 168: Line 168:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{17|}}}|
+
{{#ifeq: {{{17}}}||
 
! 17
 
! 17
 
{{!}} <span class="tasks" style="background-position: -468px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px -52px;"></span>
Line 178: Line 178:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{18|}}}|
+
{{#ifeq: {{{18}}}||
 
! 18
 
! 18
 
{{!}} <span class="tasks" style="background-position: -572px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px -52px;"></span>
Line 188: Line 188:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{19|}}}|
+
{{#ifeq: {{{19}}}||
 
! 19
 
! 19
 
{{!}} <span class="tasks" style="background-position: -312px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -52px;"></span>
Line 198: Line 198:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{20|}}}|
+
{{#ifeq: {{{20}}}||
 
! 20
 
! 20
 
{{!}} <span class="tasks" style="background-position: -52px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -52px;"></span>
Line 208: Line 208:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{21|}}}|
+
{{#ifeq: {{{21}}}||
 
! 21
 
! 21
 
{{!}} <span class="tasks" style="background-position: -104px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px -156px;"></span>
Line 218: Line 218:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{22|}}}|
+
{{#ifeq: {{{22}}}||
 
! 22
 
! 22
 
{{!}} <span class="tasks" style="background-position: -156px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -52px;"></span>
Line 228: Line 228:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{23|}}}|
+
{{#ifeq: {{{23}}}||
 
! 23
 
! 23
 
{{!}} <span class="tasks" style="background-position: -208px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -52px;"></span>
Line 238: Line 238:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{24|}}}|
+
{{#ifeq: {{{24}}}||
 
! 24
 
! 24
 
{{!}} <span class="tasks" style="background-position: -520px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px 0;"></span>
Line 248: Line 248:
 
{{!}} ×1 {{I|Wooden hoe}} ×1 {{I|Seeds}}}}
 
{{!}} ×1 {{I|Wooden hoe}} ×1 {{I|Seeds}}}}
 
|-
 
|-
{{#if: {{{25|}}}|
+
{{#ifeq: {{{25}}}||
 
! 25
 
! 25
 
{{!}} <span class="tasks" style="background-position: -156px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -156px;"></span>
Line 258: Line 258:
 
{{!}} ×1 {{I|Crafting Table}} ×3 {{I|Bucket of milk}} ×2 {{I|Sugar}} ×1 {{I|Egg}} ×3 {{I|Wheat}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×3 {{I|Bucket of milk}} ×2 {{I|Sugar}} ×1 {{I|Egg}} ×3 {{I|Wheat}}}}
 
|-
 
|-
{{#if: {{{26|}}}|
+
{{#ifeq: {{{26}}}||
 
! 26
 
! 26
 
{{!}} <span class="tasks" style="background-position: -208px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px 0;"></span>
Line 268: Line 268:
 
{{!}} Any food}}
 
{{!}} Any food}}
 
|-
 
|-
{{#if: {{{27|}}}|
+
{{#ifeq: {{{27}}}||
 
! 27
 
! 27
 
{{!}} <span class="tasks" style="background-position: -572px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -572px -104px;"></span>
Line 278: Line 278:
 
{{!}} ×1 {{I|Bed}}}}
 
{{!}} ×1 {{I|Bed}}}}
 
|-
 
|-
{{#if: {{{28|}}}|
+
{{#ifeq: {{{28}}}||
 
! 28
 
! 28
 
{{!}} <span class="tasks" style="background-position: -364px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px -156px;"></span>
Line 288: Line 288:
 
{{!}} ×1 {{I|Diamond pickaxe}}}}
 
{{!}} ×1 {{I|Diamond pickaxe}}}}
 
|-
 
|-
{{#if: {{{29|}}}|
+
{{#ifeq: {{{29}}}||
 
! 29
 
! 29
 
{{!}} <span class="tasks" style="background-position: -312px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -156px;"></span>
Line 298: Line 298:
 
{{!}} ×1 {{I|Iron pickaxe}}}}
 
{{!}} ×1 {{I|Iron pickaxe}}}}
 
|-
 
|-
{{#if: {{{30|}}}|
+
{{#ifeq: {{{30}}}||
 
! 30
 
! 30
 
{{!}} <span class="tasks" style="background-position: -260px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -156px;"></span>
Line 308: Line 308:
 
{{!}} ×1 {{I|Iron pickaxe}}}}
 
{{!}} ×1 {{I|Iron pickaxe}}}}
 
|-
 
|-
{{#if: {{{31|}}}|
+
{{#ifeq: {{{31}}}||
 
! 31
 
! 31
 
{{!}} <span class="tasks" style="background-position: -208px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -208px -156px;"></span>
Line 318: Line 318:
 
{{!}} ×1 {{I|Crafting Table}} ×8 {{I|Odd rock}} ×1 {{I|Obsidian}}}}
 
{{!}} ×1 {{I|Crafting Table}} ×8 {{I|Odd rock}} ×1 {{I|Obsidian}}}}
 
|-
 
|-
{{#if: {{{32|}}}|
+
{{#ifeq: {{{32}}}||
 
! 32
 
! 32
 
{{!}} <span class="tasks" style="background-position: -52px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -156px;"></span>
Line 328: Line 328:
 
{{!}} ×6 {{I|Portal stone}}}}
 
{{!}} ×6 {{I|Portal stone}}}}
 
|-
 
|-
{{#if: {{{33|}}}|
+
{{#ifeq: {{{33}}}||
 
! 33
 
! 33
 
{{!}} <span class="tasks" style="background-position: -156px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -156px -104px;"></span>
Line 338: Line 338:
 
{{!}} ×1 {{I|Iron Door}} ×1 <nowiki>[</nowiki>{{I|Redstone Torch}} / {{I|Button}} / {{I|Pressure Plate}} / {{I|Lever}}]}}
 
{{!}} ×1 {{I|Iron Door}} ×1 <nowiki>[</nowiki>{{I|Redstone Torch}} / {{I|Button}} / {{I|Pressure Plate}} / {{I|Lever}}]}}
 
|-
 
|-
{{#if: {{{34|}}}|
+
{{#ifeq: {{{34}}}||
 
! 34
 
! 34
 
{{!}} <span class="tasks" style="background-position: -312px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px 0;"></span>
Line 348: Line 348:
 
{{!}} ×1 {{I|Bow}} ×1 {{I|Arrow}}}}
 
{{!}} ×1 {{I|Bow}} ×1 {{I|Arrow}}}}
 
|-
 
|-
{{#if: {{{35|}}}|
+
{{#ifeq: {{{35}}}||
 
! 35
 
! 35
 
{{!}} <span class="tasks" style="background-position: -468px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -468px -104px;"></span>
Line 358: Line 358:
 
{{!}} ×1 {{I|Ender pearl}}}}
 
{{!}} ×1 {{I|Ender pearl}}}}
 
|-
 
|-
{{#if: {{{36|}}}|
+
{{#ifeq: {{{36}}}||
 
! 36
 
! 36
 
{{!}} <span class="tasks" style="background-position: -416px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -416px -156px;"></span>
Line 368: Line 368:
 
{{!}} ×7 {{I|Portal Frame}} ×7 {{I|Eye of ender}}}}
 
{{!}} ×7 {{I|Portal Frame}} ×7 {{I|Eye of ender}}}}
 
|-
 
|-
{{#if: {{{37|}}}|
+
{{#ifeq: {{{37}}}||
 
! 37
 
! 37
 
{{!}} <span class="tasks" style="background-position: -458px -156px;"></span>
 
{{!}} <span class="tasks" style="background-position: -458px -156px;"></span>
Line 378: Line 378:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{38|}}}|
+
{{#ifeq: {{{38}}}||
 
! 38
 
! 38
 
{{!}} <span class="tasks" style="background-position: -520px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -520px -52px;"></span>
Line 388: Line 388:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{39|}}}|
+
{{#ifeq: {{{39}}}||
 
! 39
 
! 39
 
{{!}} <span class="tasks" style="background-position: -260px -52px;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px -52px;"></span>
Line 398: Line 398:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{40|}}}|
+
{{#ifeq: {{{40}}}||
 
! 40
 
! 40
 
{{!}} <span class="tasks" style="background-position: -364px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -364px 0;"></span>
Line 408: Line 408:
 
{{!}} ×1 {{I|Fishing Rod}}}}
 
{{!}} ×1 {{I|Fishing Rod}}}}
 
|-
 
|-
{{#if: {{{41|}}}|
+
{{#ifeq: {{{41}}}||
 
! 41
 
! 41
 
{{!}} <span class="tasks" style="background-position: 0 0;"></span>
 
{{!}} <span class="tasks" style="background-position: 0 0;"></span>
Line 418: Line 418:
 
{{!}} ×1 {{I|Anvil}}}}
 
{{!}} ×1 {{I|Anvil}}}}
 
|-
 
|-
{{#if: {{{42|}}}|
+
{{#ifeq: {{{42}}}||
 
! 42
 
! 42
 
{{!}} <span class="tasks" style="background-position: -52px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px -104px;"></span>
Line 428: Line 428:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{43|}}}|
+
{{#ifeq: {{{43}}}||
 
! 43
 
! 43
 
{{!}} <span class="tasks" style="background-position: -312px -104px;"></span>
 
{{!}} <span class="tasks" style="background-position: -312px -104px;"></span>
Line 438: Line 438:
 
|}}
 
|}}
 
|-
 
|-
{{#if: {{{44|}}}|
+
{{#ifeq: {{{44}}}||
 
! 44
 
! 44
 
{{!}} <span class="tasks" style="background-position: -104px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -104px 0;"></span>
Line 448: Line 448:
 
{{!}} ×1 {{I|Brewing Stand}} ×1 {{I|Bottle of Water}} <!-- More here -->}}
 
{{!}} ×1 {{I|Brewing Stand}} ×1 {{I|Bottle of Water}} <!-- More here -->}}
 
|-
 
|-
{{#if: {{{45|}}}|
+
{{#ifeq: {{{45}}}||
 
! 45
 
! 45
 
{{!}} <span class="tasks" style="background-position: -52px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -52px 0;"></span>
Line 459: Line 459:
 
}}
 
}}
 
|-
 
|-
{{#if: {{{46|}}}|
+
{{#ifeq: {{{46}}}||
 
! 46
 
! 46
 
{{!}} <span class="tasks" style="background-position: -260px 0;"></span>
 
{{!}} <span class="tasks" style="background-position: -260px 0;"></span>
Line 469: Line 469:
 
{{!}} ×1 {{I|Enchantment table}} ×1 {{I|Diamond sword}}}}
 
{{!}} ×1 {{I|Enchantment table}} ×1 {{I|Diamond sword}}}}
 
|}<noinclude>
 
|}<noinclude>
== Usage ==
+
{{Documentation}}
This template generates a table with the requested task(s)' info. The following code would display all achievements, each per generated row:
+
<!-- Put categories/interwiki on the documentation page. -->
 
+
</noinclude>
<pre><nowiki>
 
{{Tasks|1=|2=|3=|4=|5=|6=|7=|8=|9=|10=|11=|12=|13=|14=|15=|16=|17=|18=|19=|20=|21=|22=|23=|24=|25=|26=|27=|28=|29=|30=|31=|32=|33=|34=|35=|36=|37=|38=|39=|40=|41=|42=|43=|44=|45=|46=|title=|text=}}
 
}}
 
</nowiki></pre>
 
 
 
(The result can be seen on the [[tasks]]' page).
 
 
 
== Example ==
 
The template is pretty straightforward. You just add it along with <code>|n=</code> where <code>n</code> is the number of the achievement you want to add. It automatically generates the table's header by default, and then you can start adding rows as you wish with that method.
 
 
 
:In other words:
 
 
 
<code><nowiki>{{Tasks|1=}}</nowiki></code>
 
 
 
:Results in the "Tasks" section with a table containing the task/achievement number 1:
 
 
 
{{Tasks|1=}}
 
 
 
:And
 
 
 
<code><nowiki>{{Tasks|1=|10=|20=|30=|40=|46=}}</nowiki></code>
 
 
 
:Does the same, but with tasks number 1, 10, 20, 30, 40, and 46:
 
 
 
{{Tasks|1=|10=|20=|30=|40=|46=}}
 

Latest revision as of 19:57, 7 July 2023

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

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

{{Tasks}} generates a table with the requested task(s)' information.

Usage

The following code would display all achievements, each per generated row:

{{Tasks|1=|2=|3=|4=|5=|6=|7=|8=|9=|10=|11=|12=|13=|14=|15=|16=|17=|18=|19=|20=|21=|22=|23=|24=|25=|26=|27=|28=|29=|30=|31=|32=|33=|34=|35=|36=|37=|38=|39=|40=|41=|42=|43=|44=|45=|46=|title=|text=}}
}}

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

Example

The template is pretty straightforward. You just add it along with unnamed parameters whose variables is |n= where n is the number of the achievement you want to add. The template automatically generates the table's header by default, and each row is a different achievement.

A short example is:
{{Tasks|1=}}
which results in the "Tasks" section with a table containing the task/achievement number 1:
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|1=|10=|20=|30=|40=|46=}} does the same, but, in this case, it displays the tasks number 1, 10, 20, 30, 40, and 46:
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 ×1 Stick ×1 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 ×1 Iron pickaxe
40 Fish a fish Fish a Fish Catch a fish with a fishing rod! Fish a fish with the fishing rod 5 ×1 Fishing Rod
46 Enchant an item Enchant an Item Use an enchantment table! Use the enchantment table to enchant a item 5 ×1 Enchantment table ×1 Diamond sword