Difference between revisions of "Template:Difficulty"

From Underrail Wiki
Jump to navigation Jump to search
m
(using semantically correct abbr element)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Upper Caves]]</noinclude><sup title="{{{1|unknown}}} Difficulty" style="cursor:help; border-bottom:1px dotted; margin:0 2px">{{#switch: {{{1}}}
+
<noinclude>[[Upper Caves]]</noinclude><sup><abbr title="{{{1|Unknown}}} Difficulty" style="color:{{#switch: {{{1}}}
 +
| DOMINATING = #C9144C
 +
| Hard = #FA760B
 +
| Normal = #EBC142
 +
| Easy = #58EB73
 +
| #default = inherit}}; cursor:help; border-bottom:1px dotted; margin:1px;">{{#switch: {{{1}}}
 
| DOMINATING = D
 
| DOMINATING = D
 
| Hard = H
 
| Hard = H
 
| Normal = N
 
| Normal = N
 
| Easy = E
 
| Easy = E
| #default = ?}}</sup><noinclude>
+
| #default = ?}}</abbr></sup><noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 06:43, 12 January 2020

Upper Caves?

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Difficulty/doc to view this documentation. (edit) (How does this work?)
Description
This template is used for small inline difficulty notes. It is used by templates {{Easy}}, {{Normal}}, {{Hard}}, {{DOMINATING}}.
Syntax
Insert this template using one of the difficulty names: {{Easy}}, {{Normal}}, {{Hard}}, {{DOMINATING}}
Example
[[Upper Caves]]{{Easy}}{{Normal}}{{Hard}}{{DOMINATING}} results in Upper CavesENHD