Template:Main-gallery: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
m (Text replacement - "Category:Notice templates" to "Category:Hatnote templates")
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
:''For pictures, see this subject's [[Gallery:{{{1|{{PAGENAME}}}}}|Gallery]].''
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{SUBPAGENAME}}}}}|Gallery:{{#replace:{{{1|{{#titleparts:{{SUBPAGENAME}}}}}}}|#|<nowiki/> § <nowiki/>}}]]{{#rmatch:{{{1|{{SUBPAGENAME}}}}}|[.!?]$||.}}''</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 parameter, i.e:
<pre><nowiki>{{main-gallery|GALLERY TITLE}}</nowiki></pre>
 
For example, <code><nowiki>{{main-gallery|Mario & Sonic at the Olympic Games}}</nowiki></code> gives:
{{main-gallery|Mario & Sonic at the Olympic Games}}
 
[[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.