Template:Difficulty
This template uses Lua: |
The {{Difficulty}}
template will output the difficulty icon and text when used on an article.
Usage
Standard
{{Difficulty|1}}
→ Trivial
{{Difficulty|2}}
→ Easy
{{Difficulty|3}}
→ Medium
{{Difficulty|4}}
→ Challenging
{{Difficulty|5}}
→ Hard
{{Difficulty|6}}
→ Extreme
{{Difficulty|7}}
→ Suicide Mission
{{Difficulty|8}}
→ Impossible
{{Difficulty|9}}
→ Helldive
No Text
{{Difficulty|5|noText=1}}
→
No Icon
{{Difficulty|5|noIcon=1}}
→ Hard
Error case
{{Difficulty|orange}}
→ Invalid difficulty number
Description
This template displays an image representing the game difficulty level, along with the word "Difficulty" and the provided difficulty number.
Parameters
1=
- A number from 1 to 9 representing the difficulty level (1 being the easiest, 9 being the hardest).noText
- An optional boolean parameter that will remove the text from the template, leaving just the icon.noIcon
- An optional boolean parameter that will remove the icon from the template, leaving just the text.
Note that if both noText
and noIcon
are set, the output will be blank.
Template Data
Difficulty template will provide image and difficulty name based on the number provided. noText and noIcon can be used to disable text and icon respectively.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Difficulty Number | 1 | Select a number from 1 (Trivial) to 9 (Helldive) representing the difficulty level | String | required |
noText | noText | Optional boolean to remove the text from generating
| Boolean | optional |
noIcon | noIcon | Optional boolean to prevent the icon from generating
| Boolean | optional |
The above documentation is transcluded from Template:Difficulty/doc. (edit | history)