Template:Incorrect: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
(Show the custom text *below* the standard message, not in the middle of it. Also, don't insert an extra newline after the box.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{alertbox|#ffc8c8|2=<div style="text-align:center">This example is '''incorrect'''. {{#if:{{{2|}}}||It does not accomplish the given task.}} Please fix the code and remove this message.</div>{{#if:{{{2|}}}|
{| class="messagebox" style="text-align: center; background-color: #ffc8c8"
<blockquote style="margin:0;font-size:90%">'''''Details:''''' {{{2|}}}</blockquote>}} }}<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]{{#set:example requires attention={{{1}}} }} }}[[Category:Examples needing attention]]</includeonly><noinclude>
| This example is '''incorrect'''. {{#if:{{{2|}}}|{{{2}}}|It does not accomplish the given task.}} Please fix the code and remove this message.

|}
Insert this message above a programming example using the text <tt><nowiki>{{incorrect|lang}}</nowiki></tt> or <tt><nowiki>{{incorrect|lang|Explanation of the problem.}}</nowiki></tt>, 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]].
<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]}}[[Category:Examples needing attention]]</includeonly>

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

Latest revision as of 15:16, 8 August 2016

This example is incorrect. It does not accomplish the given task. Please fix the code and remove this message.

Insert this message above a programming example using the text {{incorrect|lang}} or {{incorrect|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.