Thread:Project:Support desk/Extension:InputBox for MW 1.17/reply (3)

Clicking snapshot on this page should get you code from around 1.17.