Difference between revisions of "Template:CortexTest"

From Starlight Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{CortexTest
 
|difficulty=h
 
}}
 
</noinclude><diff>{{{difficulty}}}</diff>
 
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"difficulty": {
+
"diff": {
 
"label": "Difficulty Level",
 
"label": "Difficulty Level",
 
"description": "The level of difficulty, 've','e','c','h','vh'",
 
"description": "The level of difficulty, 've','e','c','h','vh'",
 
"example": "c",
 
"example": "c",
"type": "wiki-template-name",
+
"type": "line",
 
"default": "c",
 
"default": "c",
 
"required": true
 
"required": true
Line 20: Line 16:
 
}
 
}
 
</templatedata>
 
</templatedata>
</noinclude>
+
{{CortexTest
 +
|diff=h
 +
}}
 +
 
 +
{{CortexTest
 +
|diff=f
 +
}}
 +
 
 +
{{CortexTest
 +
|diff=e
 +
}}
 +
[[Category:Templates]][[Category:Cortex]]
 +
</noinclude>{{#if:{{{diff|}}}|
 +
{{#switch: {{{diff}}}
 +
| ve = <span class='hed'>Very Easy {{#die:4}}{{#die:4}}</span>
 +
| e = <span class='hed'>Easy {{#die:6}}{{#die:6}}</span>
 +
| c = <span class='hed'>Challenging {{#die:8}}{{#die:8}}</span>
 +
| h = <span class='hed'>Hard {{#die:10}}{{#die:10}}</span>
 +
| vh = <span class='hed'>Very Hard {{#die:12}}{{#die:12}}</span>
 +
| #default = <span class='err'>{{{diff}}} is not a valid value. only 've','e','c','h','vh' are valid.</span>
 +
}}|<span class='err'>Cortex Difficulty needs a difficulty value</span>}}

Latest revision as of 02:40, 15 December 2022

Create test difficulty

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Difficulty Leveldiff

The level of difficulty, 've','e','c','h','vh'

Default
c
Example
c
Linerequired

Hard

f is not a valid value. only 've','e','c','h','vh' are valid.

Easy Cortex Difficulty needs a difficulty value