encapsulation dot1q <vlan id>- confusion

in CCNA & CCENT
I am confused about what this command does.
Does it
1) Allow that vlan id to pass through
OR
2) it encapsulates the original vlan in another vlan?
If it is scenario 1 as explained by my colleague,
how is this command different from switchport mode trunk allowed vlan <vlan id>?
Why is there encapsulation if it is just a vlan being allowed to pass through?
If it is scenario 2,
then is encapsulation dot1q same as qinq terminology?
Does it
1) Allow that vlan id to pass through
OR
2) it encapsulates the original vlan in another vlan?
If it is scenario 1 as explained by my colleague,
how is this command different from switchport mode trunk allowed vlan <vlan id>?
Why is there encapsulation if it is just a vlan being allowed to pass through?
If it is scenario 2,
then is encapsulation dot1q same as qinq terminology?
Comments
Current Certs: A+ | N+ | S+ | Cloud Essentials+ | Project+ | MTA: OSF | CIW: SDA | ITIL: F | CCENT | CCNA R&S | CCNA | LPI Linux Essentials
Currently Working On: JNCIA-MistAI
2022 Goals: JNCIA-MistAI [ ]
Future Certs: CCNP Enterprise