You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Template:Image/doc
< Template:Image
Jump to navigation
Jump to search
Revision as of 14:54, 22 March 2013 by Michael Chidester (talk | contribs)
This is a documentation subpage for Template:Image. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This template allows the creation of a flexible gallery by drawing a floating box around each image. The first variable should be the image name, and the second the caption. If you need to link to a different page or an external link, just add an additional variable called {{{link}}}
. Main headings (those created with ==
) will bookend the floating gallery, but if you're using this template inside of a section and need to include text after it, make sure to include CSS to keep the subsequent section from being displaced (by default, just use a <br />
tag). This code:
{{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages|link=Main Page}} {{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages}} <br style="clear:both;"/>
Creates this gallery:
Placeholders
To insert a text placeholder into the gallery, enter the text of the placeholder in the first argument and include a variable called {{{ph}}}
.
{{image|Noscans.png|Blank pages}} {{image|Placeholder|Placeholder|ph=1}} {{image|Noscans.png|Blank pages}} <br style="clear:both;"/>