Template:Main-gallery: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(lowercase i think)
(hmfan changed the format)
 
Line 1: Line 1:
<includeonly>:''For this subject's image gallery, see [[{{{1|{{PAGENAME}}}}}/gallery]]{{#ifeq:{{#sub:{{{1|{{PAGENAME}}}}}|-1}}|.||.}}''</includeonly><noinclude>
<includeonly>:''For this subject's image gallery, see [[{{{1|{{PAGENAME}}}}}/gallery]]{{#ifeq:{{#sub:{{{1|{{PAGENAME}}}}}|-1}}|.||.}}''</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.]] & [[Super Mario Bros./gallery]]), <code><nowiki>{{main-gallery}}</nowiki></code> 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 variable, i.e:
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 variable, i.e:

Latest revision as of 14:19, November 11, 2022

Usage

If the page name matches the Gallery name (e.g., Super Mario Bros. & Super Mario Bros./gallery), {{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 variable, i.e:

{{main-gallery|(GALLERY TITLE)}}

e.g., {{main-gallery|Mario & Sonic at the Olympic Games}} gives:

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