Using the following snippet will let you get template for WordPress widget.

Snippet Source/Credit: Snipplr