Help:Adding a new programming task: Difference between revisions

→‎Task Template: Added directions for the new category argument
(→‎Task Template: Added directions for the new category argument)
Line 29:
===Task Template===
 
The first line of any Programming Task should be the task template. The task template describes the page as a programming task, and gives cursory instructions on how to add a programming example. It also adds the page to the Programming Tasks category, so that Rosetta Code users who wish to see all of Rosetta Code's programming tasks may navigate to the Programming Tasks category index page.
 
To add the task template to your page, add the text <nowiki>{{task}}</nowikInowiki> to the top.
 
The task template can also accept an argument for the name of the subcategory it should go in. For example, adding <nowiki>{{task|Mathematical operations}}</nowiki> will put this task in the [[:Category:Mathematical operations|Mathematical operations category]]. This helps to keep the Solutions by Programming Task page organized. Only one task template is needed (you don't need to add <nowiki>{{task}} and {{task|Mathematical operations}}</nowiki>). If your task should go in more than one category, add the first one as an argument to the task template and add the rest like normal category links.
 
===Task Body, First Example===
Anonymous user