Difference between revisions of "Template:Gallery"

From Nookipedia, the Animal Crossing wiki
Line 3: Line 3:
 
   <div style="display:table-cell; text-align: middle; padding: 11px 13px 5px 0; font-family: Coustard; color: white; text-shadow: 2px 2px 0 #9230e8; font-size: 1.4em"> [[{{{1|{{PAGENAME}}}}}/Gallery|<span style="color: white">For more images, view this subject's gallery</span>]].</div>
 
   <div style="display:table-cell; text-align: middle; padding: 11px 13px 5px 0; font-family: Coustard; color: white; text-shadow: 2px 2px 0 #9230e8; font-size: 1.4em"> [[{{{1|{{PAGENAME}}}}}/Gallery|<span style="color: white">For more images, view this subject's gallery</span>]].</div>
 
</div>
 
</div>
{{#if: {{{2|yes}}} | {{#section-h:{{{1|{{PAGENAME}}}}}/Gallery|{{{2|}}}}} }}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>
+
{{#if: {{{2|}}} | {{#section-h:{{{1|{{PAGENAME}}}}}/Gallery|{{{2|}}}}} }}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>

Revision as of 12:25, March 23, 2020

Template documentation (view)


Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

Usage

{{Gallery|<page name>|<section>}}

This template is to be used for gallery sections articles. There are two optional parameters, the first of which allows you to specify the base page name (in case of a non-standard page title). By default it will use the page's own title. The second parameter specifies which section of the gallery to transclude on the page, which will be disabled by default.

Example

{{Gallery}}


As taken from the O'Hare article:

{{Gallery|O'Hare|Renders}}