VLANs for wifi and guest on router as AP

a better resource with examples is here…
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1

I have an MT router smart switches and capacs in my house and use on each unit
capac upstairs
-5hz wlan for family wifi (separate vlan for family).
-5ghz virtual wlan for guests (separate vlan for guests)
-2ghz wlan for IOT devices upstairs (separate vlan for iot devices upstairs)
capac downstairs
different virtual wlan and vlan for different guests, and different wlan and vlan for different iot devices
(so at least in total 5 different WLANS running and 5 vlans).