Template:Task heading: Difference between revisions

From Rosetta Code
Content added Content deleted
(default heading to "Task", and update description to reflect this and the name change)
mNo edit summary
Line 3: Line 3:
This template can be used to show a heading with an edit link above the task description on a [[:Category:Programming Tasks|task page]].
This template can be used to show a heading with an edit link above the task description on a [[:Category:Programming Tasks|task page]].


Multiple headings can also be used to break longer task descriptions up into logical subsections (see examples below).
Multiple headings can also be used to break longer task descriptions up into logical subsections (see example below).


;Details:
;Details:

Revision as of 11:31, 20 August 2016


This template can be used to show a heading with an edit link above the task description on a task page.

Multiple headings can also be used to break longer task descriptions up into logical subsections (see example below).

Details
  • The heading is styled exactly the same way as the header of the TOC (table of contents), which makes it look nice and tidy.
  • It won't appear in the TOC itself.
  • It has an edit link. (Due to technical limitations, it will give you the whole task description to edit, not just the specific subsection of it. But that's still better than getting the whole article, including all solutions, to edit.)
Usage

The first and only argument is the title of the heading to show. If it is not specified, it defaults to the word "Task".

Usage example Renders as
{{task heading}}

...

{{task heading|Test cases}}

...

{{task heading|See also}}

...

...

...

...



This is a template. There are many others. See Category:RCTemplates for a complete list of templates.