Template:Todo: Difference between revisions
big overhaul; thanks for examples Xenwolf; let’s see now how it renders… |
m styling and doc |
||
Line 1: | Line 1: | ||
<includeonly><div class="todo_plaque" style="background: aliceblue; color: darkslategray; font-style: italic; border: 1px solid lightblue; padding: | <includeonly><div class="todo_plaque" style="background: aliceblue; color: darkslategray; font-style: italic; border: 1px solid lightblue; margin: 15px; padding: 4px; text-align: center;"> | ||
'''Todo:''' {{#if: {{{1|}}} |{{{1}}} [[Category:Todo:{{trim| {{{1}}} }}]]| something obvious[[Category:Todo]]}}{{#if: {{{2|}}} | '''Todo:''' {{#if: {{{1|}}} |{{{1}}} [[Category:Todo:{{trim| {{{1}}} }}]]| something obvious[[Category:Todo]]}}{{#if: {{{2|}}} | ||
Line 27: | Line 27: | ||
{{ {{FULLPAGENAME}} | add color name | expand | unify precision }} | {{ {{FULLPAGENAME}} | add color name | expand | unify precision }} | ||
You can add a comment, using an optional argument named (alternatively) <code>comment</code>, <code>description</code>, or <code>text</code> | You can add a comment, using an optional argument named (alternatively) <code>comment</code>, <code>description</code>, or <code>text</code>. You may want to end it with a full stop, it’s not added automatically for this one. | ||
<code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy }}</nowiki></code> | <code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>| unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy. }}</nowiki></code> | ||
{{ {{FULLPAGENAME}} | unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy }} | {{ {{FULLPAGENAME}} | unify precision | comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy }} | ||
Line 36: | Line 36: | ||
{{ {{FULLPAGENAME}} }} | {{ {{FULLPAGENAME}} }} | ||
<!-- [[Category:Templates]] --> | <!-- [[Category:Templates]] --> | ||
</noinclude> | </noinclude> |
Revision as of 21:41, 5 November 2020
This template applies up to seven Todo:
categories to the page, or the main Category:Todo itself, as well as places a notice so you can mark the specific place in need of attention.
Usage
Just write something like {{Template:Todo| expand }}
and get this:
Todo: expand .
You can specify several notes, up to seven, adding them as additional arguments: {{Template:Todo| add color name | expand | unify precision }}
which gives:
Todo: add color name , expand , unify precision .
You can add a comment, using an optional argument named (alternatively) comment
, description
, or text
. You may want to end it with a full stop, it’s not added automatically for this one.
{{Template:Todo| 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 5
gives a deceptive impression of higher accuracy
Finally, if you deem obvious what is there to do, use this template without arguments: {{Template:Todo}}
leaves us with laconic
Todo: something obvious.