Jump to content

Template:WWTBAM question and Template:WWTBAM question/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Manu1400 (talk | contribs)
m add lang="" on A, B, C, D: not really in english => don't need translate
 
No edit summary
 
Line 1: Line 1:
<templatestyles src="WWTBAM question/styles.css" />
{| cellpadding="5" cellspacing="2" style="{{#if:{{{float|}}}|width:350px; float:{{{float}}}|width:500px;}}"
{| cellpadding="5" cellspacing="2" style="{{#if:{{{float|}}}|width:350px; float:{{{float}}}|width:500px;}}"
|- class="wwtbam-title"
|- style="text-align:center; background-color:#CFB53B;"
| colspan="2" | '''{{{value}}}'''
| colspan="2" | '''{{{value}}}'''
|- class="wwtbam-question"
|- style="text-align:center; background-color:#00008B;"
| colspan="2" style="color:white;" | '''{{{question}}}'''
| colspan="2" | '''{{{question}}}'''
|- class="wwtbam-answers"
|- style="text-align:left; background-color:#00008B;"
| {{#switch:{{{astyle|}}}
| {{#switch:{{{astyle|}}}
| correct = style="width:50%; background-color:green;" {{!}} <span style="color:white" lang="">'''⬥ A:'''</span> <span style="color: white">{{{a}}}</span>
| correct = class="wwtbam-correct-answer" {{!}} <span class="wwtbam-bullet">'''⬥ A:'''</span> <span class="wwtbam-answertext">{{{a}}}</span>
| chosen = style="width:50%; background-color:#FFA500;" {{!}} <span style="color:white">'''⬥ A:'''</span> <span style="color:#00008B">{{{a}}}</span>
| chosen = class="wwtbam-chosen-answer" {{!}} <span class="wwtbam-bullet">'''⬥ A:'''</span> <span class="wwtbam-answertext">{{{a}}}</span>
| 5050 = style="width:50%;" {{!}} <span style="color:white" lang="">'''⬥ A:'''</span> <span style="color:white">{{{a}}}</span>
| 5050 = class="wwtbam-5050-answer" {{!}} <span class="wwtbam-bullet">'''⬥ A:'''</span> <span class="wwtbam-answertext">{{{a}}}</span>
| #default = style="width:50%;" {{!}} <span style="color:#FFA500" lang="">'''⬥ A:'''</span> <span style="color:white">{{{a}}}</span>
| #default = class="wwtbam-default-answer" {{!}} <span class="wwtbam-bullet">'''⬥ A:'''</span> <span class="wwtbam-answertext">{{{a}}}</span>
}}
}}
| {{#switch:{{{bstyle|}}}
| {{#switch:{{{bstyle|}}}
| correct = style="background-color:green;" {{!}} <span style="color:white" lang="">'''⬥ B:'''</span> <span style="color: white">{{{b}}}</span>
| correct = class="wwtbam-correct-answer" {{!}} <span class="wwtbam-bullet">'''⬥ B:'''</span> <span class="wwtbam-answertext">{{{b}}}</span>
| chosen = style="background-color:#FFA500;" {{!}} <span style="color:white" lang="">'''⬥ B:'''</span> <span style="color:#00008B">{{{b}}}</span>
| chosen = class="wwtbam-chosen-answer" {{!}} <span class="wwtbam-bullet">'''⬥ B:'''</span> <span class="wwtbam-answertext">{{{b}}}</span>
| 5050 = <span style="color:white" lang="">'''⬥ B:'''</span> <span style="color:white">{{{b}}}</span>
| 5050 = class="wwtbam-5050-answer" {{!}} <span class="wwtbam-bullet">'''⬥ B:'''</span> <span class="wwtbam-answertext">{{{b}}}</span>
| #default = <span style="color:#FFA500" lang="">'''⬥ B:'''</span> <span style="color:white">{{{b}}}</span>
| #default = class="wwtbam-default-answer" {{!}} <span class="wwtbam-bullet">'''⬥ B:'''</span> <span class="wwtbam-answertext">{{{b}}}</span>
}}
}}
|- class="wwtbam-answers"
|- style="text-align: left; background-color: #00008B;"
| {{#switch:{{{cstyle|}}}
| {{#switch:{{{cstyle|}}}
| correct = style="background-color:green;" {{!}} <span style="color:white" lang="">'''⬥ C:'''</span> <span style="color: white">{{{c}}}</span>
| correct = class="wwtbam-correct-answer" {{!}} <span class="wwtbam-bullet">'''⬥ C:'''</span> <span class="wwtbam-answertext">{{{c}}}</span>
| chosen = style="background-color:#FFA500;" {{!}} <span style="color:white" lang="">'''⬥ C:'''</span> <span style="color:#00008B">{{{c}}}</span>
| chosen = class="wwtbam-chosen-answer" {{!}} <span class="wwtbam-bullet">'''⬥ C:'''</span> <span class="wwtbam-answertext">{{{c}}}</span>
| 5050 = <span style="color:white" lang="">'''⬥ C:'''</span> <span style="color:white">{{{c}}}</span>
| 5050 = class="wwtbam-5050-answer" {{!}} <span class="wwtbam-bullet">'''⬥ C:'''</span> <span class="wwtbam-answertext">{{{c}}}</span>
| #default = <span style="color:#FFA500" lang="">'''⬥ C:'''</span> <span style="color:white">{{{c}}}</span>
| #default = class="wwtbam-default-answer" {{!}} <span class="wwtbam-bullet">'''⬥ C:'''</span> <span class="wwtbam-answertext">{{{c}}}</span>
}}
}}
| {{#switch:{{{dstyle|}}}
| {{#switch:{{{dstyle|}}}
| correct = style="background-color:green;" {{!}} <span style="color:white" lang="">'''⬥ D:'''</span> <span style="color: white">{{{d}}}</span>
| correct = class="wwtbam-correct-answer" {{!}} <span class="wwtbam-bullet">'''⬥ D:'''</span> <span class="wwtbam-answertext">{{{d}}}</span>
| chosen = style="background-color:#FFA500;" {{!}} <span style="color:white" lang="">'''⬥ D:'''</span> <span style="color:#00008B">{{{d}}}</span>
| chosen = class="wwtbam-chosen-answer" {{!}} <span class="wwtbam-bullet">'''⬥ D:'''</span> <span class="wwtbam-answertext">{{{d}}}</span>
| 5050 = <span style="color:white" lang="">'''⬥ D:'''</span> <span style="color:white">{{{d}}}</span>
| 5050 = class="wwtbam-5050-answer" {{!}} <span class="wwtbam-bullet">'''⬥ D:'''</span> <span class="wwtbam-answertext">{{{d}}}</span>
| #default = <span style="color:#FFA500" lang="">'''⬥ D:'''</span> <span style="color:white">{{{d}}}</span>
| #default = class="wwtbam-default-answer" {{!}} <span class="wwtbam-bullet">'''⬥ D:'''</span> <span class="wwtbam-answertext">{{{d}}}</span>
}}
}}
{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
Line 41: Line 42:
"float": {
"float": {
"label": "Float position",
"label": "Float position",
"description": "Should the box float to the left or right?",
"description": "Does the box float to the left or right?",
"type": "string",
"type": "string",
"example": "left",
"example": "left",
Line 48: Line 49:
"value": {
"value": {
"label": "Question value",
"label": "Question value",
"description": "The value of the question - this can also include the question number and whether the question has a time limit",
"description": "The value of the question, could also include question number and if there is a time limit",
"example": "$1,000,000 (15 of 15) - no time limit",
"example": "$1,000,000 (15 of 15) - no time limit",
"type": "string",
"type": "string",
Line 55: Line 56:
"question": {
"question": {
"label": "Question",
"label": "Question",
"description": "The question",
"description": "The Question text",
"type": "string",
"type": "string",
"required": true,
"required": true,
Line 74: Line 75:
"bstyle": {
"bstyle": {
"label": "Answer B - style",
"label": "Answer B - style",
"description": "Style for answer B",
"description": "Style for Answer B",
"example": "chosen",
"example": "chosen",
"type": "string"
"type": "string"
Line 86: Line 87:
"cstyle": {
"cstyle": {
"label": "Answer C - style",
"label": "Answer C - style",
"description": "Style for answer C",
"description": "Style for Answer C",
"example": "5050",
"example": "5050",
"type": "string"
"type": "string"
Line 98: Line 99:
"dstyle": {
"dstyle": {
"label": "Answer D - style",
"label": "Answer D - style",
"description": "Style for answer D",
"description": "Style for Answer D",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 110: Line 111:
"caption": {
"caption": {
"label": "Caption",
"label": "Caption",
"description": "displayed at the bottom",
"description": "displayed at bottom",
"type": "line"
"type": "line"
}
}
Line 131: Line 132:
"description": "Shows a question box for a Who Wants To Be A Millionaire question."
"description": "Shows a question box for a Who Wants To Be A Millionaire question."
}
}
</templatedata>
</templatedata></noinclude>
</noinclude>