Template:Colored link

Sample 1: Example

Result: Example

Sample 2: Text

Result: Text