How should I build removable wings on a home build? In the future I would like to build a home built aircraft from scratch, but I would like the aircraft to be able to be hauled by trailer. I would like the wings to be removable but don’t have a definitive answer on how to go about building the wings and how the control cables would connect to the ailerons. I would also like to know how the detachable wings would be attached and kept to the main body of the aircraft securely without falling off. The wings are elliptical that come out straight for about six ribs, then angle up at about 15 degrees.
Planes on board of aircraft carriers have this: they need to fit all next together in a tight space, so they are made with foldable wings. This photo shows the folding mechanism:

Image source


Both sides of the split end in a full rib plate.
The two ends are connected via two large pins. The upper pin is the fold-up hinge, the lower pin is moved in-out via a hydraulic cylinder.
Aileron control is via a push-pull rod, with a connection bolt right at the wing hinge point, so that the wing part of the linkage can fold up/down. 


The vertical black rod keeps the wing up. If one would like to remove the wing completely, only the upper wing pin and the aileron push-pull connection rod would need to be disconnected.