Template:Calcredback

From Darkan
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Calcredback/doc.

This template displays an output to style="background:#CD5C5C;" (IndianRed), 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 left blank if it cannot be failed.

Usage

This template can be used by entering the following onto a relevant page

{{Calcredback|current level|level required|fail level}}

Current level

This parameter takes the current level of the skill. Note that the words "current level" are not needed.

Level required

This parameter takes the required level of the skill. Note that the words "required level" are not needed.

Fail level

This parameter takes the fail level of the skill which is needed in the case if something can be failed. Note that the words "fail level" are not needed.