User:Merlin11188/Templates/Draft: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Merlin11188
Updated do not edit template
>Merlin11188
Can't be used on ROBLOX template
Line 2: Line 2:
==Template==
==Template==
<onlyinclude>
<onlyinclude>
<div class="tabber">
{{{1}}}<sup><font color<nowiki>=</nowiki>"blue">'''You cannot use this feature on [[Roblox|ROBLOX]].'''</font></sup>
'''{{{title|Quiz}}}'''
----
 
<div class="tabbertab" title="Questions">
{{{1}}}
</div>
 
<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]}}}
{{{2}}}
}}
</div>
 
{{if|{{{3|}}}|<div class<nowiki>=</nowiki>"tabbertab" title<nowiki>=</nowiki>"Explanations">
{{{3}}}
</div>
}}
</div>
</onlyinclude>
</onlyinclude>
==Example==
Here is an example:
<pre>
{{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
}}
</pre>
which would result in:
{{Quiz|title=ExampleQuiz|
#What will the following code result in?<code lua>
print("HI")
</code>
#What is 3 + 2?
|
#HI
#5
}}
----
Here's another:
<pre>
{{Quiz|title=ExampleQuiz|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.
}}
</pre>
which is:
{{User:Merlin11188/Templates/Draft|title=ExampleQuiz|
#How do I print "Ninja" to the output?
|
#print('"Ninja"')
|
#print is a function that prints a string to the output.
}}
{{ifeq|
|nil
[[Category:Templates]]

Revision as of 04:34, 8 February 2012

Do not edit!
The creator of this subpage does not want it to be edited without permission. Please discuss any changes that you think are relevant on the talk page.

Template

{{{1}}}You cannot use this feature on ROBLOX.