Difference between revisions of "Template:Difficulty"
From sureai
m (Reduce Enderal ornament size) |
(Fix paragraph handling in the Enderal variant) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch: {{NAMESPACE}} | <onlyinclude><includeonly>{{#switch: {{NAMESPACE}} | ||
− | | Enderal = | + | | Enderal = [[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 1 |02|01}}.png|20px|link= |
− | [[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 1 |02|01}}.png| | + | ]][[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 2 |02|01}}.png|20px|link= |
− | [[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 2 |02|01}}.png| | + | ]][[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 3 |02|01}}.png|20px|link= |
− | [[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 3 |02|01}}.png| | + | ]][[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 4 |02|01}}.png|20px|link= |
− | [[File:EN-Quest-Ornament-Difficulty{{#ifexpr: {{{1}}} >= 4 |02|01}}.png| | + | ]] |
− | + | | #default = [[File:Quest-Difficulty-{{{1}}}.png|70px|link=]] | |
− | | #default = | + | |
− | [[File:Quest-Difficulty-{{{1}}}.png|70px|link=]] | + | |
− | + | ||
}}{{#ifeq: {{{text|0}}} | 1 | {{#switch: {{{1}}} | }}{{#ifeq: {{{text|0}}} | 1 | {{#switch: {{{1}}} | ||
| 0 = Very Easy | | 0 = Very Easy |
Latest revision as of 12:00, 20 December 2018
This template creates a difficulty meter that varies according to which namespace it is used on.
Parameters
- 1: The numeric value of the difficulty, from 0 to 4, inclusive
- text (Optional): If set to 1, adds a text describind the difficulty next to it
Examples
{{Difficulty|0|text=1}}
Very Easy
{{Difficulty|3}}
{{Difficulty|4|text=1}}
Very Hard