Anonymous user
Template:Task heading: Difference between revisions
Make the headings bold, following discussion on the discussion page. Slightly decrease font size to compensate.
(default heading to "Task", and update description to reflect this and the name change) |
(Make the headings bold, following discussion on the discussion page. Slightly decrease font size to compensate.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1:
<includeonly><div id="{{#replace:{{{1|Task}}}| |_}}" style="margin:20px 0 10px 0; line-height:1.1; font-size:
This template can be used to show a heading
Multiple headings can also be used to break longer task descriptions up into logical subsections (see
===Advantages===
In the past, some Rosettacode editors have used the definition header syntax (e.g. <code>;Task:</code>) to to create such headings.<br>
Using this template instead, has the following advantages:
* It is styled more appropriately for a heading.
;Usage:▼
*: <small>''(i.e. larger font, and more spacing.)''</small>
* It has an edit link.
The first and only argument is the title of the heading to show. If it is not specified, it defaults to the word "Task".▼
*: <small>''(Only for the main "Task" heading, because due to technical limitations, it can't give you a specific subsection of the task to edit - it gives you the whole task description, or more precisely, everything above the first real heading.)''</small>
* It has a link anchor.
*: <small>''(E.g. to link to the "See also" section, you can write <tt><nowiki>[[#See_also]]</nowiki></tt>. Note that spaces have to be replaced by underscores.)''</small>
▲The first and only argument is the title of the heading to show.
If it is not specified, it defaults to the word "Task".
{| class=wikitable
|