Inhoudsopgave

Template:Example

'''{{{title}}}'''{{#if: {{{explanation|}}} | <br />''{{{explanation}}}'' }}

<blockquote>

{{#if: {{{content|}}} | <blockquote>

{{{content}}}</blockquote> }}{{#if: {{{input|}}} | ''Input''<blockquote>

{{{input}}}</blockquote> }}{{#if: {{{wrong|}}} | ''Wrong''<blockquote>

<s>{{{wrong}}}</s></blockquote> }}{{#if: {{{correct|}}} | ''Correct''<blockquote>

{{{correct}}}</blockquote> }}{{#if: {{{display|}}} | ''Display''<blockquote>

{{{display}}}</blockquote> }}{{#if: {{{output|}}} | ''Output''<blockquote>

{{{output}}}</blockquote> }}</blockquote><noinclude>

__NONUMBEREDHEADINGS__

__NOTOC__

Purpose

Use this template to provide field data input and display examples.

Input

<nowiki>{{Example|title=Title|explanation=Explanation|input=InputExample|correct=CorrectExample|wrong=WrongExample|output=OutputExample|display=DisplayExample}}</nowiki>

Explanation

Bold items are required, the others are optional. Choose any that you need for your example

The display order of the components is fixed, regardless of their order in the code.

Example

<nowiki>{{Example|title=Date|explanation=Here's how to enter a date.|input=Century: <code>16</code><br>Year: <code>1599</code>|wrong=Century: <code>16th</code><br>Year: <code>1599-01-01</code>|correct=Century: <code>16</code><br>Year: <code>1599</code>|display=1599 (16th Century)|output=<code><date><br>&nbsp;&nbsp;<year>1599</year><br>&nbsp;&nbsp;<century n="16">16th Century</century><br></date></code>}}</nowiki>

Output

{{Example|title=Title|explanation=Explanation|input=InputExample|correct=CorrectExample|wrong=WrongExample|output=OutputExample|display=DisplayExample}}

Example

{{Example|title=Date|explanation=Here's how to enter a date.|input=Century: <code>16</code><br>Year: <code>1599</code>|wrong=Century: <code>16th</code><br>Year: <code>1599-01-01</code>|correct=Century: <code>16</code><br>Year: <code>1599</code>|display=1599 (16th Century)|output=<code><date><br>&nbsp;&nbsp;<year>1599</year><br>&nbsp;&nbsp;<century n="16">16th Century</century><br></date></code>}}

Category:Templates</noinclude>