Template:Quiz: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Merlin11188
Added to the Template category
>Merlin11188
Added 'explanation' parameter
Line 14: Line 14:
</div>
</div>


{{Switch|{{{explanation|false}}}
|true=
<div class="tabbertab" title="Explanation">
{{{3}}}
</div>
|false=
}}
</div>
</div>
</onlyinclude>
</onlyinclude>
Line 41: Line 48:
#HI
#HI
#5
#5
}}
Here's another:
<pre>
{{Template:Quiz|title=ExampleQuiz|explanation=true|
#How do I print "Ninja" to the output?
|
#print('"Ninja"')
|
#print is a function that prints a string to the output.
}}
</pre>
which is:
{{Quiz|title=ExampleQuiz|explanation=true|note=See the '''Explanation''' tab for reasons.|
#How do I print "Ninja" to the output?
|
#print('"Ninja"')
|
#print is a function that prints a string to the output.
}}
}}


[[Category:Templates]]
[[Category:Templates]]

Revision as of 03:40, 6 February 2012

Template

Quiz


{{{1}}}

Note: This is a quiz. The answers are not explained. If you don't understand, review this page, then ask in the forums. {{{2}}}



Example

Here is an example:

{{Template:Quiz|title=ExampleQuiz|
#What will the following code result in?<code lua> -- THESE MUST BE ON THE SAME LINE IF YOU WANT TO KEEP THE QUESTION NUMBERS
print("HI")
</code>
#What is 3 + 2?
| -- This separates the questions from the answers
#HI
#5
}}

which would result in:


ExampleQuiz


  1. What will the following code result in?

print("HI")

  1. What is 3 + 2?

Note: This is a quiz. The answers are not explained. If you don't understand, review this page, then ask in the forums.

  1. HI
  2. 5



Here's another:

{{Template:Quiz|title=ExampleQuiz|explanation=true|
#How do I print "Ninja" to the output?
|
#print('"Ninja"')
|
#print is a function that prints a string to the output.
}}

which is:

ExampleQuiz


  1. How do I print "Ninja" to the output?

See the Explanation tab for reasons.

  1. print('"Ninja"')
  1. print is a function that prints a string to the output.