As used in {{Graphical timeline}}, this will produce a legend entry like this:

Legend text

Parameters are colour and text.