Template:Todo: Difference between revisions
ArrowHead294 (talk | contribs) recat |
cleanup redundant code; add category handler |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{inline|}}}|{{Mbox|type=notice|icon=Icon-Todo.png|text= | <includeonly>{{#if: {{{inline|}}} | {{Mbox | ||
'''Todo:''' {{#if: {{{1|}}}|{{{1}}} | | type = notice | ||
|, {{{2 | | icon = Icon-Todo.png | ||
|, {{{3}}} | | text = '''Todo:''' {{#if: {{{1|}}}| {{{1}}} }}{{#if: {{{2|}}}|, {{{2}}} }}{{#if: {{{3|}}}|, {{{3}}} }}{{#if: {{{4|}}}|, {{{4}}} }}{{#if: {{{5|}}}|, {{{5}}} }}{{#if: {{{6|}}}|, {{{6}}} }}{{#if: {{{7|}}}|, {{{7}}} }}{{#if: {{{8|}}}|, {{{8}}} }} | ||
|, | {{#if: {{{comment|{{{description|{{{text|}}}}}}}}}|{{{comment|{{{description|{{{text|}}}}}}}}}}} | ||
|, | }} | ||
|, {{{6}} | }} | ||
|, {{{7}}} | {{category handler | ||
|, {{{8}}} | | {{#if: {{{1|}}} | Todo:{{{1}}}}} | ||
| | | {{#if: {{{2|}}} | Todo:{{{2}}}}} | ||
{{{comment|{{{description|{{{text|}}}}}}}}}}} | | {{#if: {{{3|}}} | Todo:{{{3}}}}} | ||
| {{#if: {{{4|}}} | Todo:{{{4}}}}} | |||
}}|{{#if: {{{1|}}}| | | {{#if: {{{5|}}} | Todo:{{{5}}}}} | ||
| {{#if: {{{6|}}} | Todo:{{{6}}}}} | |||
| {{#if: {{{7|}}} | Todo:{{{7}}}}} | |||
| {{#if: {{{8|}}} | Todo:{{{8}}}}} | |||
| allowed_ns = user; talk; help; xenharmonic wiki; xenharmonic wiki talk | |||
| debug = {{{debug|}}} | |||
}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
[[Category:Message boxes]] | [[Category:Message boxes]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:51, 22 October 2025
| This template should not be substituted. |
This template applies up to eight Todo: categories to the page, or the main Category: Todo itself. When inline is present, it additionally places a visible notice in the page text. With or without that, you mark the specific place in need of attention.
Usage
Just write something like {{Todo|inline=1| expand }} and get this:
You can specify up to eight notes as unnamed arguments. {{Todo|inline=1| add color name | expand | unify precision }} gives:
Each unnamed argument adds the article to the same-name category. Make sure to check out Category: Todo for a catalogue of defined tasks. If you do not find a category the todo fits in, use this template without arguments: {{Todo}}.
You can add a comment, which appears with inline=1, using an optional argument comment, description, or text. You may want to end it with a full stop, which is not added automatically for this one.
{{Todo|inline=1| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. }}
| Todo: unify precision
An occasionally appearing surplus decimal place |
See also
- Template:Category handler, which prevents this template from categorizing /doc pages, when added to a template or module's /doc page.
- Template:Expert needed