How do I do a basic MOSFET wiring?
The problem with your question is that there is no single way to wire them. There are two major types of Mosfets, and multiple topologies (ways to wire them), with each having a different usage.

Ignoring most of them, the simplest is a Mosfet as a switch.







simulate this circuit &ndash; Schematic created using CircuitLab

A N-Channel as a Low Side, Active High switch, or a P-Channel as a High Side, Active Low switch. This works to turn on/off the Load based on the Gate voltage.

Note: Since your RPi has a 3.3V output, you will need a 3.3V Logic Level mosfet, or will need to use a mosfet driver circuit, making it even more complicated.