Template:Output?: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Grammar)
(Added property "Example requires attention" and updated template documentation)
 
Line 1: 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>
{{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]]{{#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>

Latest revision as of 08:54, 22 March 2014

This example does not show the output mentioned in the task description on this page (or a page linked to from here). Please ensure that it meets all task requirements and remove this message.
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.

Insert this message above a programming example using the text {{output?|lang|reason}}, 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.


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