Template:Gallery: Difference between revisions

Jump to navigation Jump to search
2,773 bytes added ,  Yesterday at 21:02
no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
This is the [[Form:Gallery]].
This template is used by [[Form:Gallery]] to create standalone gallery pages.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:form=Gallery|autocomplete on category=Galleries|button text=Create or edit gallery}}
== Template parameters ==
{{#template_params:
|GalleryImage1 (label=Gallery Image 1, type=file)
|GalleryTitle1 (label=Gallery Title/Caption 1)
|GalleryAlt1 (label=Gallery Alt Text 1)
|GalleryImage2 (label=Gallery Image 2, type=file)
|GalleryTitle2 (label=Gallery Title/Caption 2)
|GalleryAlt2 (label=Gallery Alt Text 2)
|GalleryImage3 (label=Gallery Image 3, type=file)
|GalleryTitle3 (label=Gallery Title/Caption 3)
|GalleryAlt3 (label=Gallery Alt Text 3)
|GalleryImage4 (label=Gallery Image 4, type=file)
|GalleryTitle4 (label=Gallery Title/Caption 4)
|GalleryAlt4 (label=Gallery Alt Text 4)
|GalleryImage5 (label=Gallery Image 5, type=file)
|GalleryTitle5 (label=Gallery Title/Caption 5)
|GalleryAlt5 (label=Gallery Alt Text 5)
|GalleryImage6 (label=Gallery Image 6, type=file)
|GalleryTitle6 (label=Gallery Title/Caption 6)
|GalleryAlt6 (label=Gallery Alt Text 6)
|GalleryImage7 (label=Gallery Image 7, type=file)
|GalleryTitle7 (label=Gallery Title/Caption 7)
|GalleryAlt7 (label=Gallery Alt Text 7)
|GalleryImage8 (label=Gallery Image 8, type=file)
|GalleryTitle8 (label=Gallery Title/Caption 8)
|GalleryAlt8 (label=Gallery Alt Text 8)
|GalleryImage9 (label=Gallery Image 9, type=file)
|GalleryTitle9 (label=Gallery Title/Caption 9)
|GalleryAlt9 (label=Gallery Alt Text 9)
|GalleryImage10 (label=Gallery Image 10, type=file)
|GalleryTitle10 (label=Gallery Title/Caption 10)
|GalleryAlt10 (label=Gallery Alt Text 10)
|AssociatedSaint (label=Associated Saint article(s), list=true, type=page)
|AssociatedParish (label=Associated Parish article(s), list=true, type=page)
|AssociatedCountry (label=Associated Country article(s), list=true, type=page)
|AssociatedState (label=Associated State/Subdivision article(s), list=true, type=page)
|AssociatedDioceses (label=Associated Diocese article(s), list=true, type=page)
|AssociatedCity (label=Associated City/Populated area article(s), list=true, type=page)
|AssociatedOrder (label=Associated Religious Order article(s), list=true, type=page)
|AssociatedGroup (label=Associated Lay Group article(s), list=true, type=page)
|AssociatedShrines (label=Associated Shrine article(s), list=true, type=page)
}}


== Cargo declaration ==
{{#cargo_declare:_table=Galleries
|GalleryImage1=File
|GalleryTitle1=String
|GalleryAlt1=String
|GalleryImage2=File
|GalleryTitle2=String
|GalleryAlt2=String
|GalleryImage3=File
|GalleryTitle3=String
|GalleryAlt3=String
|GalleryImage4=File
|GalleryTitle4=String
|GalleryAlt4=String
|GalleryImage5=File
|GalleryTitle5=String
|GalleryAlt5=String
|GalleryImage6=File
|GalleryTitle6=String
|GalleryAlt6=String
|GalleryImage7=File
|GalleryTitle7=String
|GalleryAlt7=String
|GalleryImage8=File
|GalleryTitle8=String
|GalleryAlt8=String
|GalleryImage9=File
|GalleryTitle9=String
|GalleryAlt9=String
|GalleryImage10=File
|GalleryTitle10=String
|GalleryAlt10=String
|AssociatedSaint=List (,) of Page
|AssociatedParish=List (,) of Page
|AssociatedCountry=List (,) of Page
|AssociatedState=List (,) of Page
|AssociatedDioceses=List (,) of Page
|AssociatedCity=List (,) of Page
|AssociatedOrder=List (,) of Page
|AssociatedGroup=List (,) of Page
|AssociatedShrines=List (,) of Page
}}
</noinclude>
</noinclude>


<includeonly>
<includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{#cargo_store:_table=Galleries
|GalleryImage1={{{GalleryImage1|}}}
|GalleryTitle1={{{GalleryTitle1|}}}
|GalleryAlt1={{{GalleryAlt1|}}}
|GalleryImage2={{{GalleryImage2|}}}
|GalleryTitle2={{{GalleryTitle2|}}}
|GalleryAlt2={{{GalleryAlt2|}}}
|GalleryImage3={{{GalleryImage3|}}}
|GalleryTitle3={{{GalleryTitle3|}}}
|GalleryAlt3={{{GalleryAlt3|}}}
|GalleryImage4={{{GalleryImage4|}}}
|GalleryTitle4={{{GalleryTitle4|}}}
|GalleryAlt4={{{GalleryAlt4|}}}
|GalleryImage5={{{GalleryImage5|}}}
|GalleryTitle5={{{GalleryTitle5|}}}
|GalleryAlt5={{{GalleryAlt5|}}}
|GalleryImage6={{{GalleryImage6|}}}
|GalleryTitle6={{{GalleryTitle6|}}}
|GalleryAlt6={{{GalleryAlt6|}}}
|GalleryImage7={{{GalleryImage7|}}}
|GalleryTitle7={{{GalleryTitle7|}}}
|GalleryAlt7={{{GalleryAlt7|}}}
|GalleryImage8={{{GalleryImage8|}}}
|GalleryTitle8={{{GalleryTitle8|}}}
|GalleryAlt8={{{GalleryAlt8|}}}
|GalleryImage9={{{GalleryImage9|}}}
|GalleryTitle9={{{GalleryTitle9|}}}
|GalleryAlt9={{{GalleryAlt9|}}}
|GalleryImage10={{{GalleryImage10|}}}
|GalleryTitle10={{{GalleryTitle10|}}}
|GalleryAlt10={{{GalleryAlt10|}}}
|AssociatedSaint={{{AssociatedSaint|}}}
|AssociatedParish={{{AssociatedParish|}}}
|AssociatedCountry={{{AssociatedCountry|}}}
|AssociatedState={{{AssociatedState|}}}
|AssociatedDioceses={{{AssociatedDioceses|}}}
|AssociatedCity={{{AssociatedCity|}}}
|AssociatedOrder={{{AssociatedOrder|}}}
|AssociatedGroup={{{AssociatedGroup|}}}
|AssociatedShrines={{{AssociatedShrines|}}}
}}


{{{for template|Gallery}}}
== Gallery ==


<h2>Gallery Images (all optional)</h2>
{{#cargo_query:
tables=Galleries
|fields=GalleryImage1,GalleryTitle1=Title1,GalleryAlt1=Alt1,
GalleryImage2,GalleryTitle2=Title2,GalleryAlt2=Alt2,
GalleryImage3,GalleryTitle3=Title3,GalleryAlt3=Alt3,
GalleryImage4,GalleryTitle4=Title4,GalleryAlt4=Alt4,
GalleryImage5,GalleryTitle5=Title5,GalleryAlt5=Alt5,
GalleryImage6,GalleryTitle6=Title6,GalleryAlt6=Alt6,
GalleryImage7,GalleryTitle7=Title7,GalleryAlt7=Alt7,
GalleryImage8,GalleryTitle8=Title8,GalleryAlt8=Alt8,
GalleryImage9,GalleryTitle9=Title9,GalleryAlt9=Alt9,
GalleryImage10,GalleryTitle10=Title10,GalleryAlt10=Alt10
|where=_pageName="{{FULLPAGENAME}}"
|format=gallery
|mode=packed-hover
|per row=4
|widths=220
|heights=180
|caption field=Title1,Title2,Title3,Title4,Title5,Title6,Title7,Title8,Title9,Title10
|alt field=Alt1,Alt2,Alt3,Alt4,Alt5,Alt6,Alt7,Alt8,Alt9,Alt10
}}


{| class="formtable"
== Associated Articles ==
! Gallery Image 1
| {{{field|GalleryImage1|uploadable|image preview=yes}}}
|-
! Title/Caption 1 (visible below image)
| {{{field|GalleryTitle1}}}
|-
! Alt text 1 (for accessibility)
| {{{field|GalleryAlt1}}}
|-
! Gallery Image 2
| {{{field|GalleryImage2|uploadable|image preview=yes}}}
|-
! Title/Caption 2
| {{{field|GalleryTitle2}}}
|-
! Alt text 2
| {{{field|GalleryAlt2}}}
|-
! Gallery Image 3
| {{{field|GalleryImage3|uploadable|image preview=yes}}}
|-
! Title/Caption 3
| {{{field|GalleryTitle3}}}
|-
! Alt text 3
| {{{field|GalleryAlt3}}}
|-
! Gallery Image 4
| {{{field|GalleryImage4|uploadable|image preview=yes}}}
|-
! Title/Caption 4
| {{{field|GalleryTitle4}}}
|-
! Alt text 4
| {{{field|GalleryAlt4}}}
|-
! Gallery Image 5
| {{{field|GalleryImage5|uploadable|image preview=yes}}}
|-
! Title/Caption 5
| {{{field|GalleryTitle5}}}
|-
! Alt text 5
| {{{field|GalleryAlt5}}}
|-
! Gallery Image 6
| {{{field|GalleryImage6|uploadable|image preview=yes}}}
|-
! Title/Caption 6
| {{{field|GalleryTitle6}}}
|-
! Alt text 6
| {{{field|GalleryAlt6}}}
|-
! Gallery Image 7
| {{{field|GalleryImage7|uploadable|image preview=yes}}}
|-
! Title/Caption 7
| {{{field|GalleryTitle7}}}
|-
! Alt text 7
| {{{field|GalleryAlt7}}}
|-
! Gallery Image 8
| {{{field|GalleryImage8|uploadable|image preview=yes}}}
|-
! Title/Caption 8
| {{{field|GalleryTitle8}}}
|-
! Alt text 8
| {{{field|GalleryAlt8}}}
|-
! Gallery Image 9
| {{{field|GalleryImage9|uploadable|image preview=yes}}}
|-
! Title/Caption 9
| {{{field|GalleryTitle9}}}
|-
! Alt text 9
| {{{field|GalleryAlt9}}}
|-
! Gallery Image 10
| {{{field|GalleryImage10|uploadable|image preview=yes}}}
|-
! Title/Caption 10
| {{{field|GalleryTitle10}}}
|-
! Alt text 10
| {{{field|GalleryAlt10}}}
|}


<h2>Associated Articles (all optional – select multiple with Ctrl/Cmd)</h2>
{{#if: {{{AssociatedSaint|}}} | '''Saints:''' {{{AssociatedSaint|None}}} <br/> }}
{{#if: {{{AssociatedParish|}}} | '''Parishes:''' {{{AssociatedParish|None}}} <br/> }}
{{#if: {{{AssociatedCountry|}}} | '''Countries:''' {{{AssociatedCountry|None}}} <br/> }}
{{#if: {{{AssociatedState|}}} | '''States/Subdivisions:''' {{{AssociatedState|None}}} <br/> }}
{{#if: {{{AssociatedDioceses|}}} | '''Dioceses:''' {{{AssociatedDioceses|None}}} <br/> }}
{{#if: {{{AssociatedCity|}}} | '''Cities:''' {{{AssociatedCity|None}}} <br/> }}
{{#if: {{{AssociatedOrder|}}} | '''Religious Orders:''' {{{AssociatedOrder|None}}} <br/> }}
{{#if: {{{AssociatedGroup|}}} | '''Lay Groups:''' {{{AssociatedGroup|None}}} <br/> }}
{{#if: {{{AssociatedShrines|}}} | '''Shrines:''' {{{AssociatedShrines|None}}} <br/> }}


{| class="formtable"
[[Category:Galleries]]
! Associated Saint article(s)
| {{{field|AssociatedSaint|input type=tokens|values from category=Saints}}}
|-
! Associated Parish article(s)
| {{{field|AssociatedParish|input type=tokens|values from category=Parishes}}}
|-
! Associated Country article(s)
| {{{field|AssociatedCountry|input type=tokens|values from category=Countries}}}
|-
! Associated State/Subdivision article(s)
| {{{field|AssociatedState|input type=tokens|values from category=States}}}
|-
! Associated Diocese article(s)
| {{{field|AssociatedDioceses|input type=tokens|values from category=Dioceses}}}
|-
! Associated City article(s)
| {{{field|AssociatedCity|input type=tokens|values from category=Cities}}}
|-
! Associated Religious Order article(s)
| {{{field|AssociatedOrder|input type=tokens|values from category=Religious orders}}}
|-
! Associated Lay Group article(s)
| {{{field|AssociatedGroup|input type=tokens|values from category=Lay groups}}}
|-
! Associated Shrine article(s)
| {{{field|AssociatedShrines|input type=tokens|values from category=Shrines}}}
|}


{{{end template}}}
</includeonly>


{{{standard input|free text|rows=10|hidden}}}
<noinclude>
 
{{Documentation}}
{{{standard input|summary}}}
</noinclude>
{{{standard input|minor edit}}} {{{standard input|watch}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 
</includeonly>

Navigation menu