Template:Output?: Difference between revisions

Added property "Example requires attention" and updated template documentation
m (Grammar)
(Added property "Example requires attention" and updated template documentation)
 
Line 1:
{{alertbox|#ffc8c8|This example does not show the output mentioned in the task description '''on this page''' (or a page linked to from here). {{#if:{{{2|}}}|{{{2}}}|}} Please ensure that it meets all task requirements and remove this message. <br><small>Note that phrases in task descriptions such as ''"print and display"'' and ''"print and show"'' for example, indicate that (reasonable length) output be a part of a language's solution.</small>}}<includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]}}[[Category:Examples needing attention]]</includeonly><noinclude>
<includeonly>
 
{{#if:{{{1|}}}|[[Category:{{{1}}} examples needing attention]]{{#set:Example requires attention={{{1}}} }} }}
Insert this message above a programming example using the text <tt><nowiki>{{output?|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]].
[[Category:Examples needing attention]]
 
</includeonly>
{{template}}{{att temp}}</noinclude>
<noinclude>Insert this message above a programming example using the text <tt><nowiki>{{output?|lang|reason}}</nowiki></tt>, where ''lang'' is the programming language used and ''reason'' an optional description of the problem. This will put the page in [[:Category:Examples needing attention]] and [[:Category:Lang examples needing attention]], and sets [[Property:Example requires attention]].
{{template}}
{{att temp}}
</noinclude>