Template:Todo/doc: Difference between revisions
substitute example templates to remove categories |
|||
| Line 5: | Line 5: | ||
Just write something like <code><nowiki>{{Todo|inline=1| expand }}</nowiki></code> and get this: | Just write something like <code><nowiki>{{Todo|inline=1| expand }}</nowiki></code> and get this: | ||
{{{{ | {{#if: 1|{{Mbox|type=notice|icon=Icon-Todo.png|text= | ||
'''Todo:''' {{#if: expand | expand [[Category:Todo:{{trim| expand }}]]|[[Category:Todo]]}}{{#if: | |||
|, {{{2}}}[[Category:Todo:{{trim| {{{2}}} }}]]}}{{#if: | |||
|, {{{3}}}[[Category:Todo:{{trim| {{{3}}} }}]]}}{{#if: | |||
|, {{{4}}}[[Category:Todo:{{trim| {{{4}}} }}]]}}{{#if: | |||
|, {{{5}}}[[Category:Todo:{{trim| {{{5}}} }}]]}}{{#if: | |||
|, {{{6}}}[[Category:Todo:{{trim| {{{6}}} }}]]}}{{#if: | |||
|, {{{7}}}[[Category:Todo:{{trim| {{{7}}} }}]]}}{{#if: | |||
|, {{{8}}}[[Category:Todo:{{trim| {{{8}}} }}]]}}{{#if: | |||
|<br /> | |||
}} | |||
}}|{{#if: expand |[[Category:Todo:{{trim| expand }}]]}}{{#if: |[[Category:Todo:{{trim|{{{2}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{3}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{4}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{5}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{6}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{7}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{8}}}}}]]}}}} | |||
You can specify up to eight notes as unnamed arguments. <code><nowiki>{{Todo|inline=1| add color name | expand | unify precision }}</nowiki></code> gives: | You can specify up to eight notes as unnamed arguments. <code><nowiki>{{Todo|inline=1| add color name | expand | unify precision }}</nowiki></code> gives: | ||
{{{{ | {{#if: 1|{{Mbox|type=notice|icon=Icon-Todo.png|text= | ||
'''Todo:''' {{#if: add color name | add color name [[Category:Todo:{{trim| add color name }}]]|[[Category:Todo]]}}{{#if: expand | |||
|, expand [[Category:Todo:{{trim| expand }}]]}}{{#if: unify precision | |||
|, unify precision [[Category:Todo:{{trim| unify precision }}]]}}{{#if: | |||
|, {{{4}}}[[Category:Todo:{{trim| {{{4}}} }}]]}}{{#if: | |||
|, {{{5}}}[[Category:Todo:{{trim| {{{5}}} }}]]}}{{#if: | |||
|, {{{6}}}[[Category:Todo:{{trim| {{{6}}} }}]]}}{{#if: | |||
|, {{{7}}}[[Category:Todo:{{trim| {{{7}}} }}]]}}{{#if: | |||
|, {{{8}}}[[Category:Todo:{{trim| {{{8}}} }}]]}}{{#if: | |||
|<br /> | |||
}} | |||
}}|{{#if: add color name |[[Category:Todo:{{trim| add color name }}]]}}{{#if: expand |[[Category:Todo:{{trim| expand }}]]}}{{#if: unify precision |[[Category:Todo:{{trim| unify precision }}]]}}{{#if: |[[Category:Todo:{{trim|{{{4}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{5}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{6}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{7}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{8}}}}}]]}}}} | |||
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: <code><nowiki>{{Todo}}</nowiki></code>. | 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: <code><nowiki>{{Todo}}</nowiki></code>. | ||
| Line 17: | Line 41: | ||
:<code><nowiki>{{Todo|inline=1| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. }}</nowiki></code> | :<code><nowiki>{{Todo|inline=1| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. }}</nowiki></code> | ||
{{{{ | {{#if: 1|{{Mbox|type=notice|icon=Icon-Todo.png|text= | ||
'''Todo:''' {{#if: unify precision | unify precision [[Category:Todo:{{trim| unify precision }}]]|[[Category:Todo]]}}{{#if: | |||
|, {{{2}}}[[Category:Todo:{{trim| {{{2}}} }}]]}}{{#if: | |||
|, {{{3}}}[[Category:Todo:{{trim| {{{3}}} }}]]}}{{#if: | |||
|, {{{4}}}[[Category:Todo:{{trim| {{{4}}} }}]]}}{{#if: | |||
|, {{{5}}}[[Category:Todo:{{trim| {{{5}}} }}]]}}{{#if: | |||
|, {{{6}}}[[Category:Todo:{{trim| {{{6}}} }}]]}}{{#if: | |||
|, {{{7}}}[[Category:Todo:{{trim| {{{7}}} }}]]}}{{#if: | |||
|, {{{8}}}[[Category:Todo:{{trim| {{{8}}} }}]]}}{{#if: An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. | |||
|<br /> | |||
An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy.}} | |||
}}|{{#if: unify precision |[[Category:Todo:{{trim| unify precision }}]]}}{{#if: |[[Category:Todo:{{trim|{{{2}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{3}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{4}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{5}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{6}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{7}}}}}]]}}{{#if: |[[Category:Todo:{{trim|{{{8}}}}}]]}}}} | |||
=== See also === | === See also === | ||
* [[Template:Expert needed]] | * [[Template:Expert needed]] | ||
Revision as of 05:26, 7 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 |