Scenario:
You need to determine the template used to create a list (or a library).
PowerShell script:
$web = get-spweb http://site:port/web
$web.lists | Format-Table -Property Title, BaseType, BaseTemplate -auto
Note:
The above script will list all BaseTypes and BaseTemplates used in the web