Template:Quiz: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Merlin11188 The solution must be mind-numbingly obvious. |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
<div class="tabbertab" title="Answers"> | <div class="tabbertab" title="Answers"> | ||
{{ | {{ifeq|{{{note|'''Note:''' This is a quiz. The answers are not explained. If you don't understand, review this page, then ask in the [http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 forums]}}} | ||
|nil | |||
|{{{2}}} | |||
|{{{note|'''Note:''' This is a quiz. The answers are not explained. If you don't understand, review this page, then ask in the [http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 forums]}}} | |{{{note|'''Note:''' This is a quiz. The answers are not explained. If you don't understand, review this page, then ask in the [http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 forums]}}} | ||
{{{2}}} | {{{2}}} | ||
}} | }} | ||
</div> | </div> | ||
{{if|{{{3|}}}| | {{if|{{{3|}}}|<div class<nowiki>=</nowiki>"tabbertab" title<nowiki>=</nowiki>"Explanations"> | ||
<div class="tabbertab" title="Explanations"> | |||
{{{3}}} | {{{3}}} | ||
</div> | </div> | ||
}} | }} | ||
</div> | </div> | ||
Line 31: | Line 29: | ||
<pre> | <pre> | ||
{{Quiz|title=ExampleQuiz| | {{Quiz|title=ExampleQuiz| | ||
#What will the following code result in?< | #What will the following code result in?<syntaxhighlight lang="lua"> -- THESE MUST BE ON THE SAME LINE IF YOU WANT TO KEEP THE QUESTION NUMBERS | ||
print("HI") | print("HI") | ||
</ | </syntaxhighlight> | ||
#What is 3 + 2? | #What is 3 + 2? | ||
| -- This separates the questions from the answers | | -- This separates the questions from the answers | ||
Line 44: | Line 42: | ||
{{Quiz|title=ExampleQuiz| | {{Quiz|title=ExampleQuiz| | ||
#What will the following code result in?< | #What will the following code result in?<syntaxhighlight lang="lua"> | ||
print("HI") | print("HI") | ||
</ | </syntaxhighlight> | ||
#What is 3 + 2? | #What is 3 + 2? | ||
| | | | ||
Line 57: | Line 55: | ||
Here's another: | Here's another: | ||
<pre> | <pre> | ||
{{Quiz|title=ExampleQuiz|note=See the ''' | {{Quiz|title=ExampleQuiz|note=See the '''Explanations''' tab for reasons.| | ||
#How do I print "Ninja" to the output? | #How do I print "Ninja" to the output? | ||
| | | | ||
Line 66: | Line 64: | ||
</pre> | </pre> | ||
which is: | which is: | ||
{{Quiz|title=ExampleQuiz|note=See the ''' | {{Quiz|title=ExampleQuiz|note=See the '''Explanations''' tab for reasons.| | ||
#How do I print "Ninja" to the output? | #How do I print "Ninja" to the output? | ||
| | | |
Latest revision as of 06:07, 27 April 2023
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:
{{Quiz|title=ExampleQuiz| #What will the following code result in?<syntaxhighlight lang="lua"> -- THESE MUST BE ON THE SAME LINE IF YOU WANT TO KEEP THE QUESTION NUMBERS print("HI") </syntaxhighlight> #What is 3 + 2? | -- This separates the questions from the answers #HI #5 }}
which would result in:
ExampleQuiz
- What will the following code result in?
print("HI")
- 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
- HI
- 5
Here's another:
{{Quiz|title=ExampleQuiz|note=See the '''Explanations''' tab for reasons.| #How do I print "Ninja" to the output? | #print('"Ninja"') | #print is a function that prints a string to the output. }}
which is:
ExampleQuiz
- How do I print "Ninja" to the output?
See the Explanations tab for reasons.
- print('"Ninja"')
- print is a function that prints a string to the output.