Difference between revisions of "Template:Gallery"

From Nookipedia, the Animal Crossing wiki
(remove extraneous space)
(Add noticebox class)
Tags: mobile edit mobile web edit
Line 1: Line 1:
<includeonly><div style="margin: 10px auto; width: 50%; background-color: #BF84F1; border: 3px solid #BF84F1; {{roundy|18px}} padding:0 3px 3px 3px; text-align:center; box-shadow: 3px 3px 3px #CCC">
+
<includeonly><div class="noticebox" style="margin: 10px auto; width: 50%; background-color: #BF84F1; border: 3px solid #BF84F1; {{roundy|18px}} padding:0 3px 3px 3px; text-align:center; box-shadow: 3px 3px 3px #CCC">
 
   <div style="display:table-cell; vertical-align:middle; padding: 0 13px 0 13px;">{{{leftimage|[[File:Menu Camera NH Icon.png|50px|link={{PAGENAME}}/Gallery]]}}}</div>
 
   <div style="display:table-cell; vertical-align:middle; padding: 0 13px 0 13px;">{{{leftimage|[[File:Menu Camera NH Icon.png|50px|link={{PAGENAME}}/Gallery]]}}}</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 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>{{#if: {{{2|}}} |
 
</div>{{#if: {{{2|}}} |
 
{{#if: {{{1|}}}|{{#section-h:{{{1|}}}/Gallery|{{{2|}}}}}|{{#section-h:{{PAGENAME}}/Gallery|{{{2|}}}}} }}}}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>
 
{{#if: {{{1|}}}|{{#section-h:{{{1|}}}/Gallery|{{{2|}}}}}|{{#section-h:{{PAGENAME}}/Gallery|{{{2|}}}}} }}}}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>

Revision as of 04:13, May 26, 2020

Template documentation (view)


Emotion Surprise NH Icon cropped.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 cropped.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}}