how to write a plugin

(wiki page)