⚠️ Warning: This is a draft ⚠️

This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.

If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.

;{{#if: {{{1|}}} | {{{1}}} | Output}}{{#if: {{{note|}}} | <i style="font-weight:normal> ({{{note}}}) |}}{{#if: {{{case|}}}{{{input|}}} | <span style="font-weight:normal> — {{{case|for input {{{input|}}}}}} |}}{{#if: {{{text|}}} | <span style="font-weight:normal>{{{text}}} | :}}

This template is used to introduce the output of a programming example.

Usage

Write {{out}} just above the

...

block that lists a code example's output.

It also accepts these optional parameters:

{| class="wikitable" |- ! Parameter ! Purpose ! Example ! Renders as |- | | | {{out}} | {{out}} |- | 1 | Text to show instead of the word "Output". | {{out|Return value}} |

{{out|Return value}}
|- | case | The test-case/condition which produces this output. | {{out|case=test case 3}} |
{{out|case=test case 3}}
|- | input | The (single-line) input which produces this output. | {{out|input=Hello world}} |
{{out|input=Hello world}}
|- | note | A remark to show in parentheses. | {{out|note=elided}} |
{{out|note=elided}}
|- | text | Free-form text to follow instead of a colon. | {{out|text=...}} |
{{out|text=...}}
|}

You can combine multiple parameters, except that case and input are mutually exclusive.

{{template}}