What tax do I pay if I work in the UK and abroad?

Do I pay UK income tax on foreign income?

How do I work out my residence status for capital gains?

How is tax paid when moving in or out or the UK?

How do I know if I am resident in the UK?

Do I pay tax in the UK on my foreign income?