View source for Template:Gallery
From LAH Wiki
Jump to:
navigation
,
search
{| style="width:{{{width}}}; border:1px solid dimgray; text-align:center; valign:center" align={{#if:{{{align|}}}|{{{align}}}|center}} | {| style="width:25%; border:1px dotted dimgray; background:black" |<includeonly> [[Image:{{{image1}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</includeonly> <noinclude>[[Image:ExampleAvvy.png|100px]]</noinclude> |- |<includeonly>{{{caption1}}}</includeonly><noinclude>Caption</noinclude> |} | {| style="width:25%; border:1px dotted dimgray; background:black" |<includeonly> [[Image:{{{image2}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</includeonly> <noinclude>[[Image:ExampleAvvy.png|100px]]</noinclude> |- |<includeonly>{{{caption2}}}</includeonly><noinclude>Caption</noinclude> |} | {| style="width:25%; border:1px dotted dimgray; background:black" |<includeonly> [[Image:{{{image3}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</includeonly> <noinclude>[[Image:ExampleAvvy.png|100px]]</noinclude> |- |<includeonly>{{{caption3}}}</includeonly><noinclude>Caption</noinclude> |} | {| style="width:25%; border:1px dotted dimgray; background:black" |<includeonly> [[Image:{{{image4}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</includeonly> <noinclude>[[Image:ExampleAvvy.png|100px]]</noinclude> |- |<includeonly>{{{caption4}}}</includeonly><noinclude>Caption</noinclude> |} |}<noinclude> ==Usage== This is a template for including a gallery of images within an article. *'''width''' - the width of the gallery *'''align''' - how the gallery aligns on the page. if left blank, will default to center *'''imagewidth''' - the width of each image. if left blank, will default to 100px *'''image1''' - the first image *'''caption1''' - the caption for the first image *'''image2''' - the second image *'''caption2''' - the caption for the second image *'''image3''' - the third image *'''caption3''' - the caption for the third image *'''image4''' - the fourth image *'''caption4''' - the caption for the fourth image ==Code== Copy this code into the article and fill in the appropriate fields. <pre> {{Gallery |width= |align= |imagewidth= |image1= |caption1= |image2= |caption2= |image3= |caption3= |image4= |caption4= }}</pre> [[Category:Formatting templates]] </noinclude>
Return to
Template:Gallery
.
Views
Template
Discussion
View source
History
Personal tools
Log in
Navigation
Main Page
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages