Template:Todo: Difference between revisions

Arseniiv (talk | contribs)
big overhaul; thanks for examples Xenwolf; let’s see now how it renders…
ArrowHead294 (talk | contribs)
recat
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><div class="todo_plaque" style="background: aliceblue; color: darkslategray; font-style: italic; border: 1px solid lightblue; padding: 6px; text-align: center;">
<includeonly>{{#if: {{{inline|}}}|{{Mbox|type=notice|icon=Icon-Todo.png|text=
 
'''Todo:''' {{#if: {{{1|}}}|{{{1}}} [[Category:Todo:{{trim|{{{1}}}}}]]|[[Category:Todo]]}}{{#if: {{{2|}}}
'''Todo:''' {{#if: {{{1|}}} |{{{1}}} [[Category:Todo:{{trim| {{{1}}} }}]]| something obvious[[Category:Todo]]}}{{#if: {{{2|}}}
|, {{{2}}}[[Category:Todo:{{trim| {{{2}}} }}]]}}{{#if: {{{3|}}}
|, {{{2}}}[[Category:Todo:{{trim| {{{2}}} }}]]}}{{#if: {{{3|}}}
|, {{{3}}}[[Category:Todo:{{trim| {{{3}}} }}]]}}{{#if: {{{4|}}}
|, {{{3}}}[[Category:Todo:{{trim| {{{3}}} }}]]}}{{#if: {{{4|}}}
Line 7: Line 6:
|, {{{5}}}[[Category:Todo:{{trim| {{{5}}} }}]]}}{{#if: {{{6|}}}
|, {{{5}}}[[Category:Todo:{{trim| {{{5}}} }}]]}}{{#if: {{{6|}}}
|, {{{6}}}[[Category:Todo:{{trim| {{{6}}} }}]]}}{{#if: {{{7|}}}
|, {{{6}}}[[Category:Todo:{{trim| {{{6}}} }}]]}}{{#if: {{{7|}}}
|, {{{7}}}[[Category:Todo:{{trim| {{{7}}} }}]]}}.{{#if: {{{comment|{{{description|{{{text|}}}}}}}}}
|, {{{7}}}[[Category:Todo:{{trim| {{{7}}} }}]]}}{{#if: {{{8|}}}
|<br>
|, {{{8}}}[[Category:Todo:{{trim| {{{8}}} }}]]}}{{#if: {{{comment|{{{description|{{{text|}}}}}}}}}
 
|<br />
{{{comment|{{{description|{{{text|}}}}}}}}}}}
{{{comment|{{{description|{{{text|}}}}}}}}}}}


</div></includeonly><noinclude>
}}|{{#if: {{{1|}}}|[[Category:Todo:{{trim|{{{1}}}}}]]}}{{#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}}}}}]]}}}}</includeonly><noinclude>
This template applies up to seven [[:Category:Todo|<code>Todo:</code> 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.
{{documentation}}
 
== Usage ==
 
<!-- Don’t forget to change the name in the example if migrated to the templates namespace -->
 
Just write something like <code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>| expand }}</nowiki></code> and get this:
 
{{ {{FULLPAGENAME}} | expand }}
 
You can specify several notes, up to seven, adding them as additional arguments: <code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>| add color name | expand | unify precision }}</nowiki></code> which gives:
 
{{ {{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>:
 
<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 }}
 
Finally, if you deem obvious what is there to do, use this template without arguments: <code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>}}</nowiki></code> leaves us with laconic
 
{{ {{FULLPAGENAME}} }}
 
 


<!-- [[Category:Templates]] -->
[[Category:Message boxes]]
</noinclude>
</noinclude>