Some basics here, if nothing else showing the pet / nopet operator.

http://www.arenajunkies.com/macros/warlock/

macro explain also handles / understands pet syntax

http://www.macroexplain.com/