Template:Main-gallery: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>:''For this subject's image gallery, see [[Gallery:{{{1|{{ | <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 | 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 | 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> | <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}} | {{main-gallery|Mario & Sonic at the Olympic Games}} | ||
[[Category:Notice templates]]</noinclude> | [[Category:Notice templates]]</noinclude> |
Latest revision as of 11:05, May 30, 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.