Template:Gallery

If the page name matches the Gallery name (e.g., Warrior & Gallery:Warrior),  is sufficient.

If they are different in any way (e.g., Miitopia (video game), Gallery:Miitopia), you must add the gallery title as a variable, i.e:

e.g.,  gives: