Template:Main-gallery

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

e.g.,  gives:

Original template is from Super Mario Wiki.