OK, line by line:
This defines the VLAN tagging format:
"switchport trunk encapsulation dot1q"
(as opposed to ISL, the cisco-proprietary version of VLAN tagging.
This defines which VLAN is *not* tagged on the trunk:
"switchport trunk native vlan 412"
(if you don't have this line in there, then VLAN1 is assumed)
This defines which VLANs are allowed on the trunk:
"switchport trunk allowed vlan 1,2,3"
(if you don't have this line in there, then all VLANs are allowed)
This defines it as a VLAN trunk:
"switchport mode trunk"
(as opposed to "Access", which means there is no tagging and only one VLAN).
Bear in mind that the only VLANs passed by the trunk will be VLANs that are actually configured on the switch.