Really think the proposal with TEB and variables is a lot easier for a novice. For a widget you'll have to program and moreover for the moment only Flash widgets are possible. That means no output to HTML5. The solution with TEB's and variables will work for all outputs. You can create it as a template and reuse all the time.
Lilybiri