Limit Text - Display ID or Name of variable

Limit Text - Display ID or Name of variable

I have many pages with the same layout and I need to be able to display the limit text (I can do this already) and the ID of the variable. I thought I'd be able to create a link text and just tell it to display the ID of the variable rather than the limit but I can't find the option.
The only way I can think of is to embed the ID within the limit text itself. Is there a better way to do this like what I initially thought above?

This is a migrated post! Originally posted on 26.11.2008 by user craigdouglas. Please be aware that information can be outdated.