Correlated trial wavefunctions built as the product of a correlation factor times a model wavefunction are obtained for the 20Ne, 24Mg, 28Si, 32S, 36Ar and 40Ca nuclei. The correlation factor includes both central Jastrow and linear state dependent correlations. For 20Ne, 24Mg and 28Si we have considered two different approaches, one based on the SU(3) deformed model and the other on a multi-cluster model, while for 32S, 36Ar and 40Ca only the first model has been considered. A systematic analysis of the competition between the different correlation mechanisms included in the trial wavefunction on the ground state and binding energies of some members of its rotational band is carried out. One- and two-body radial densities have also been obtained. All the calculations have been performed by means of the variational Monte Carlo method.