Template:Task heading: Difference between revisions

From Rosetta Code
(expand description)
m (Smls moved page Template:Introheader to Template:Task heading: make its intended purpose more clear (and "heading" is the correct word, not "header".))
(No difference)

Revision as of 11:01, 20 August 2016

This template can be used to show a section heading inside the introduction of a task page (i.e. the part above the table of contents), in order to break up long task descriptions into multiple sections.
Even if the task description is short, adding a single {{introheader|Task}} above it can be valuable for the edit link.

Details:

  • The heading is styled exactly the same way as the header of the TOC, which makes it look nice and tidy.
  • It doesn'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 section of it. But that's still better than getting the whole article with all solutions.)
Usage
The first argument is the heading title to show.
Example
{{introheader|The task}}
...
{{introheader|Test cases}}
...
{{introheader|See also}}
...

Which renders as:

...
...
...



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