Template:Redback/doc
Jump to navigation
Jump to search
{{Redback |user level |required level |'fail level' |reqcol= |failcol= }}
Template for use in calculators: outputs style="background:#CD5C5C;"
(IndianRed - can be changed by the reqcol
parameter), if the first input is less than (exclusive) of the second.
Designed to be used to turn the background of a table row red if the user's level input is less than the level required for that action.
A third input can be used to add a 'fail level', where if the first input is less it changes the background to yellow (e.g. to show burn levels in cooking) - can be changed by the failcol
parameter. Can be left blank if it cannot be failed.
Changing the default colours is recommended to do via variables.
- Examples
{| class="wikitable" ! Current<br />level||Required<br />level||Fail level |- {{Redback|1|20|30}} | 1||20||30 |- {{Redback|42|10|20}} | 42||10||20 |- {{Redback|30|20|40}} | 30||20||40 |- {{Redback|99|99}} | 99||99||Cannot be failed |} |
gives |
|