Difference between revisions of "Template:Gallery"

From Nookipedia, the Animal Crossing wiki
(Removing box shadow)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>:''For this subject's image gallery, see [[{{{1|{{PAGENAME}}}}}/Gallery]].''</includeonly><noinclude>==Usage==
+
<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;">
If the page name matches the Gallery name (e.g., [[Animal Crossing: New Leaf]] & [[Animal Crossing: New Leaf/Gallery]]), <code><nowiki>{{Gallery}}</nowiki></code> is sufficient.
+
  <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>
If they are different in any way (e.g., [[Doubutsu no Mori (game)]], [[Doubutsu no Mori/Gallery]]), you must add the gallery title as a variable, i.e:
+
</div>{{#if: {{{2|}}} |
<pre><nowiki>{{Gallery|(GALLERY TITLE)}}</nowiki></pre>
+
{{#if: {{{1|}}}|{{#section-h:{{{1|}}}/Gallery|{{{2|}}}}}|{{#section-h:{{PAGENAME}}/Gallery|{{{2|}}}}} }}}}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>
 
 
e.g., <code><nowiki>{{Gallery|Doubutsu no Mori}}</nowiki></code> gives:
 
{{Gallery|Doubutsu no Mori}}
 
 
 
[[Category:Notice templates]]</noinclude>
 

Revision as of 12:58, August 10, 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}}