Template:Main-gallery: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "Category:Notice templates" to "Category:Hatnote templates")
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]{{#rmatch:{{{2|{{{1|{{PAGENAME}}}}}}}}|[.!?]'*$||.}}''</includeonly><noinclude>
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{SUBPAGENAME}}}}}|Gallery:{{#replace:{{{1|{{#titleparts:{{SUBPAGENAME}}}}}}}|#|<nowiki/> § <nowiki/>}}]]{{#rmatch:{{{1|{{SUBPAGENAME}}}}}|[.!?]$||.}}''</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.


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:
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:
Line 9: Line 9:
{{main-gallery|Mario & Sonic at the Olympic Games}}
{{main-gallery|Mario & Sonic at the Olympic Games}}


[[Category:Notice templates]]</noinclude>
[[Category:Hatnote templates]]</noinclude>

Latest revision as of 08:35, June 5, 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.