Template:Main-gallery

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

If they are different in any way, you must add the gallery title as a variable, e.g.:

e.g.,  gives: