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 470: Line 470:
 
{{!}} x1 {{I|Enchantment table}} x1 {{I|Diamond sword}}}}
 
{{!}} x1 {{I|Enchantment table}} x1 {{I|Diamond sword}}}}
 
|}<noinclude>
 
|}<noinclude>
 +
__NOTOC__
 
== Usage ==
 
== Usage ==
This template generates a table with the requested task(s)' info.
+
This template generates a table with the requested task(s)' info. The following code would display all achievements, each per generated row:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{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}}
+
{{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}}
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
(The result can be seen on the [[tasks]]' page).
  
 
== Example ==
 
== Example ==
 +
The template is pretty straightforward. You just add it along with <code>|a*=</code> where <code>*</code> 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:
 +
 
<code><nowiki>{{Tasks|a1=}}</nowiki></code>
 
<code><nowiki>{{Tasks|a1=}}</nowiki></code>
 +
 +
; Results in the "Tasks" section with a table containing the task/achievement number 1:
  
 
{{Tasks|a1=}}
 
{{Tasks|a1=}}
 +
 +
; And
 +
 +
<code><nowiki>{{Tasks|a1=|a10=|a20=|a30=|a40=|a46=}}</nowiki></code>
 +
 +
; Does the same, but with tasks number 1, 10, 20, 30, 40, and 46:
 +
 +
{{Tasks|a1=|a10=|a20=|a30=|a40=|a46=}}

Revision as of 18:24, 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