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 support for custom titles and pre-table text)
Line 1: Line 1:
== Tasks ==
+
== {{{title|Tasks}}} ==
 +
{{{text|}}}
 +
 
 
{| class="wikitable tasks-table"
 
{| class="wikitable tasks-table"
 
! Number
 
! Number
Line 475: Line 477:
  
 
<pre><nowiki>
 
<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}}
+
{{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>
 
</nowiki></pre>
  
(The result can be seen on the [[tasks]]' page).
+
(The result can be seen on the [[tasks]]' page [without the <code>title</code> and <code>text</code> parameters]).
  
 
== Example ==
 
== 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 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.
 
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 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:
+
:In other words:
  
 
<code><nowiki>{{Tasks|1=}}</nowiki></code>
 
<code><nowiki>{{Tasks|1=}}</nowiki></code>
  
; 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|1=}}
 
{{Tasks|1=}}
  
; And
+
:And
  
 
<code><nowiki>{{Tasks|1=|10=|20=|30=|40=|46=}}</nowiki></code>
 
<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:
+
:Does the same, but with tasks number 1, 10, 20, 30, 40, and 46:
  
 
{{Tasks|1=|10=|20=|30=|40=|46=}}
 
{{Tasks|1=|10=|20=|30=|40=|46=}}

Revision as of 19:22, 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|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 [without the title and text parameters]).

Example

The template is pretty straightforward. You just add it along with |n= where n 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|1=}}

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|1=|10=|20=|30=|40=|46=}}

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