Template:Main-gallery: Difference between revisions

hmfan changed the format
(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: