Template:Update: Difference between revisions

From Rosetta Code
Content added Content deleted
(Add the custom text *below* the standard message, not in the middle of it.)
(Use "Details:" instead of "Reason:")
 
Line 1: Line 1:
{{alertbox|#ffc8c8|2=<div style="text-align:center">This example needs '''updating''' due to a modification in the task. Please examine and fix the code if needed, then remove this message.</div>{{#if:{{{2|}}}|
{{alertbox|#ffc8c8|2=<div style="text-align:center">This example needs '''updating''' due to a modification in the task. Please examine and fix the code if needed, then remove this message.</div>{{#if:{{{2|}}}|
<blockquote style="margin:0;font-size:90%">'''''Reason:''''' {{{2|}}}</blockquote>}} }}<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]{{#set:example requires attention={{{1}}} }} }}[[Category:Examples needing attention]]</includeonly><noinclude>
<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>
Insert this message above a programming example using the text <tt><nowiki>{{update|Lang}}</nowiki></tt> or <tt><nowiki>{{update|Lang|Explanation of the problem.}}</nowiki></tt>, where ''Lang'' is the programming language used.
Insert this message above a programming example using the text <tt><nowiki>{{update|Lang}}</nowiki></tt> or <tt><nowiki>{{update|Lang|Explanation of the problem.}}</nowiki></tt>, where ''Lang'' is the programming language used.



Latest revision as of 12:54, 7 August 2016

This example needs updating due to a modification in the task. Please examine and fix the code if needed, then remove this message.

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