Template:Todo/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
remove categories from example mboxes
Ganaram inukshuk (talk | contribs)
todo self-categorizes based on subpage and namespace; todos placed on documentation will categorize the transcluding page, not the doc subpage
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:


{{Mbox|type=notice|icon=Icon-Todo.png|text=
{{Todo|inline=1| expand }}
'''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 />
}}
 
}}


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:


{{Mbox|type=notice|icon=Icon-Todo.png|text=
{{Todo|inline=1| add color name | expand | unify precision }}
'''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 />
}}
 
}}


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 41: Line 17:
:<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>


{{Mbox|type=notice|icon=Icon-Todo.png|text=
{{Todo|inline=1| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. }}
'''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.}}


}}
Note: placing this template on a template or module's documentation (/doc) will categorize that page when transcluded, but not the actual documentation page.


=== See also ===
=== See also ===
* [[Template:Expert needed]]
* [[Template:Expert needed]]