Command constant

${ constant color="red(orange, yellow, green, blue, purple)" bold="true(false)" italic="true(false)"strikethrough="true(false)" underline="true(false)" inline=”number” : constantName }

This command we use when we want to include some constant in template structure.

Example:

${constant color="red" italic="true" underline="true" :constantName}

Result:

constanName

If we want to show constantName and parameters, we have to include inline properties in combination with constant command.

${ constant color="red(orange, yellow, green, blue, purple)" bold="true(false)" italic="true(false)" strikethrough="true(false)" underline="true(false)" inline=”number” : constantName }  ${paragraph type="normal(predefined)" color="red(orange, yellow, green, blue, purple)" bold="true(false)" italic="true(false)" strikethrough="true(false)" underline="true(false)" inline=”number” :Param1, Param2, ...}

In combination with inline properties, we have to include same property in next command.

${constant italic="true" underline="true" inline="1":constantName} ${paragraph type="normal" bold="true" underline="true" inline=”1” :Param1, Param2}

Result:

constanName  param1 param2

For each group of inline elements number is unique and start from 1.

Example:

${constant italic="true" underline="true" inline="1":constantName} ${paragraph type="normal" bold="true" underline="true" inline=”1” :Param1, Param2}

${constant italic="true" color="blue" underline="true" inline="2":constantName} ${paragraph type="normal" bold="true" color="red" underline="true" inline=”2” :Param1, Param2}

Result:

constanName  param1 param2

constanName param1 param2

If don't write anything for property value, there is default which will are appears instead.

  • Default values for this command are:
  • color = black
  • bold = false
  • italic = false
  • underline = false
  • strikethrough = false

Add new comment