Template:Needs-review: Difference between revisions

m
Added property "Example requires attention"
(apply the same inset style I created for Template:Field attention)
m (Added property "Example requires attention")
 
(5 intermediate revisions by 4 users not shown)
Line 1:
{{alertbox|#ffffd8| This example '''may be incorrect'''{{#if:{{{2|}}}|.
{| class="messagebox" style="text-align: center; background-color: #ffffd8"
<div class="messagebox-inset" style="border: 1px solid #aaa; background: white; color: black; font-size: 89%; padding: 2px;">{{{2}}}</div><!-- messagebox-usertext is a class I made up; if it becomes real then move the hardwired styling here into a stylesheet. -->
| This example '''may be incorrect'''{{#if:{{{2|}}}|.
<div class="messagebox-inset" style="border: 1px solid #aaa; background: white; color: black; font-size: 89%; padding: 2px;">{{{3}}}</div><!-- messagebox-usertext is a class I made up; if it becomes real then move the hardwired styling here into a stylesheet. -->|&nbsp;due to a recent change in the task requirements or a lack of testing.}} Please verify it and remove this message. If the example does not match the requirements or does not work, replace this message with [[Template:incorrect]] or &nbsp;fix the code yourself.}}<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 <includeonlytt><nowiki>{{#if:{{{1needs-review|lang}}}|</nowiki></tt>, where ''lang'' is the programming language used. This will put the page in [[:Category:{{{1}}} examplesExamples needing attention]]}} and [[:Category:ExamplesLang examples needing attention]]</includeonly> and sets [[Property:Example requires attention]].
</noinclude><noinclude>{{template}}[[Category:Example{{att attention templates]]temp}}</noinclude>
<noinclude>
Insert this message above a programming example using the text <tt><nowiki>{{needs-review|lang}}</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>