Template:Main-gallery: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{PAGENAME}}}}}|{{{2|Gallery:{{{1|{{PAGENAME}}}}}}}}]]{{#rmatch:{{{2|Gallery:{{{1|{{PAGENAME}}}}}}}}|[.!?]'*$||.}}''</includeonly><noinclude>
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{PAGENAME}}}}}|Gallery:{{{2|{{{1|{{PAGENAME}}}}}}}}]]{{#rmatch:{{{2|{{{1|{{PAGENAME}}}}}}}}|[.!?]'*$||.}}''</includeonly><noinclude>
==Usage==
==Usage==
If the page name matches the Gallery name (e.g., [[Super Mario Bros.]] & [[Gallery:Super Mario Bros.]]), <code><nowiki>{{main-gallery}}</nowiki></code> is sufficient.
If the page name matches the Gallery name (e.g., [[Super Mario Bros.]] & [[Gallery:Super Mario Bros.]]), <code><nowiki>{{main-gallery}}</nowiki></code> is sufficient.

Revision as of 14:30, May 14, 2024

Usage

If the page name matches the Gallery name (e.g., Super Mario Bros. & Gallery:Super Mario Bros.), {{main-gallery}} is sufficient.

If they are different in any way (e.g., Mario & Sonic at the Olympic Games (Wii), Gallery:Mario & Sonic at the Olympic Games), you must add the gallery title as a parameter, i.e:

{{main-gallery|GALLERY TITLE}}

For example, {{main-gallery|Mario & Sonic at the Olympic Games}} gives:

For this subject's image gallery, see Gallery:Mario & Sonic at the Olympic Games.