Template:Todo: Difference between revisions

Arseniiv (talk | contribs)
m bug in the example
Arseniiv (talk | contribs)
move docs out bye bye
Line 13: Line 13:


</div></includeonly><noinclude>
</div></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.
{{/Doc}}
 
[[Category:Templates]]
== 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>. 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>
 
{{ {{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]] -->
</noinclude>
</noinclude>