Template:Main-gallery: Difference between revisions

update; from https://www.mariowiki.com/Template:Main-gallery
(Created page with ":''For this subject's image gallery, see [[{{{1|{{PAGENAME}}}}}/Gallery]].''")
 
(update; from https://www.mariowiki.com/Template:Main-gallery)
Line 1: Line 1:
:''For this subject's image gallery, see [[{{{1|{{PAGENAME}}}}}/Gallery]].''
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{PAGENAME}}}}}]]{{#ifeq:{{#sub:{{{1|{{PAGENAME}}}}}|-1}}|.||.}}''</includeonly><noinclude>
==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 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:
<pre><nowiki>{{main-gallery|(GALLERY TITLE)}}</nowiki></pre>
 
e.g., <code><nowiki>{{main-gallery|Mario & Sonic at the Olympic Games}}</nowiki></code> gives:
{{main-gallery|Mario & Sonic at the Olympic Games}}
 
[[Category:Notice Templates]]</noinclude>