Template:Improve: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Change category link to att temp)
(Added property "example requires attention")
 
Line 1: Line 1:
{{alertbox|lightgray|{{#if:{{{2|}}}|<div style="text-align:center">This example is '''in need of improvement:'''</div>
{{alertbox|lightgray|{{#if:{{{2|}}}|<div style="text-align:center">This example is '''in need of improvement:'''</div>
<blockquote>{{{2}}}</blockquote>|<div style="text-align:center">This example is '''in need of improvement'''.</div>}} }}<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]}}[[Category:Examples needing attention]]</includeonly><noinclude>
<blockquote>{{{2}}}</blockquote>|<div style="text-align:center">This example is '''in need of improvement'''.</div>}} }}<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]{{#set:example requires attention={{{1}}} }} }}[[Category:Examples needing attention]]</includeonly><noinclude>


Use this message box template when an example '''meets the task requirements''', but could be improved in some way. If the example does not meet the task requirements, use [[Template:incorrect]] instead.
Use this message box template when an example '''meets the task requirements''', but could be improved in some way. If the example does not meet the task requirements, use [[Template:incorrect]] instead.


Insert this message above a programming example using the text <code><nowiki>{{improve|lang|Explanation of the problem.}}</nowiki></code>, where ''lang'' is the programming language used. This will put the page in [[:Category:Examples needing attention]] and [[:Category:Lang examples needing attention]].
Insert this message above a programming example using the text <code><nowiki>{{improve|lang|Explanation of the problem.}}</nowiki></code>, where ''lang'' is the programming language used. This will put the page in [[:Category:Examples needing attention]] and [[:Category:Lang examples needing attention]], and apply [[Property:example requires attention]].
{{template}}{{att temp}}</noinclude>
{{template}}{{att temp}}</noinclude>

Latest revision as of 21:04, 19 March 2014

This example is in need of improvement.

Use this message box template when an example meets the task requirements, but could be improved in some way. If the example does not meet the task requirements, use Template:incorrect instead.

Insert this message above a programming example using the text {{improve|lang|Explanation of the problem.}}, where lang is the programming language used. This will put the page in Category:Examples needing attention and Category:Lang examples needing attention, and apply Property:example requires attention.


This is a template. There are many others. See Category:RCTemplates for a complete list of templates.