Jump to content

Template:V

From CinderRPG Wiki

Shows a live value from the mod. The number updates by itself whenever the mod changes, so pages never go out of date.

  • {{V|food.slots}} shows the value with its unit.
  • {{V|food.keg.duration|unit=no}} leaves the unit off.
  • {{V|food.keg.duration|raw=1}} gives the exact number from the code.
  • {{V|item.ashenblade.damage}} and {{V|spell.firebolt.mana}} show item and spell stats.

Every name you can use is on Project:Variables. Capitals do not matter. A mistyped name shows a red message with the closest match.

Shows a live value from the mod, such as a buff amount, a duration or an item stat. It updates by itself when the mod changes. All names are listed on Project:Variables.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Variable1

Name from Project:Variables, or item.<id>.<stat> or spell.<key>.<stat>. Capitals do not matter.

Example
food.keg.duration
Stringrequired
Unitunit

Set to no to leave the unit off ("8m" stays "8m", "3 blocks" becomes "3").

Suggested values
no
Stringoptional
Raw numberraw

Set to 1 to show the exact number from the code instead of the formatted value.

Booleanoptional