You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Difference between revisions of "Template:Image/doc"
Line 18: | Line 18: | ||
{{image|Noscans.png|Blank pages}} | {{image|Noscans.png|Blank pages}} | ||
{{image|Noscans.png|Blank pages}} | {{image|Noscans.png|Blank pages}} | ||
− | |||
<h3 style="clear:both;">Placeholders</h3> | <h3 style="clear:both;">Placeholders</h3> | ||
− | To insert a text placeholder into the gallery, enter the text of the placeholder in the | + | To insert a text placeholder into the gallery, include a parameter called <code><nowiki>{{{ph}}}</nowiki></code> and enter the text of the placeholder in the nest argument. The <code><nowiki>{{{ph}}}</nowiki></code> parameter can actually be placed anywhere in the template, but putting it first makes it easier to transform a gallery into an index page through find-and-replace. |
<pre>{{image|Noscans.png|Blank pages}} | <pre>{{image|Noscans.png|Blank pages}} | ||
− | {{image| | + | {{image|Noscans.png|Blank pages}} |
+ | {{image|ph=1|Placeholder|Placeholder}} | ||
+ | {{image|Noscans.png|Blank pages}} | ||
{{image|Noscans.png|Blank pages}} | {{image|Noscans.png|Blank pages}} | ||
<br style="clear:both;"/></pre> | <br style="clear:both;"/></pre> | ||
{{image|Noscans.png|Blank pages}} | {{image|Noscans.png|Blank pages}} | ||
− | |||
{{image|Noscans.png|Blank pages}} | {{image|Noscans.png|Blank pages}} | ||
+ | {{image|ph=1|Placeholder|Placeholder}} | ||
+ | {{image|Noscans.png|Blank pages}} | ||
+ | {{image|Noscans.png|Blank pages}} | ||
+ | |||
+ | <h3 style="clear:both;">Index links</h3> | ||
+ | |||
+ | To link images in a gallery directly to their transcription in the Page namespace (rather than the default File namespace), include a parameter called <code><nowiki>{{{page}}}</nowiki></code>. Again, best practice is to place it as the first argument. | ||
+ | |||
+ | <pre>{{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | <br style="clear:both;"/></pre> | ||
+ | |||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
+ | {{image|page=1|Noscans.png|Blank pages}} | ||
<br style="clear:both;"/> | <br style="clear:both;"/> | ||
__NOTOC__ | __NOTOC__ |
Revision as of 16:20, 4 February 2014
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, include a parameter called {{{ph}}}
and enter the text of the placeholder in the nest argument. The {{{ph}}}
parameter can actually be placed anywhere in the template, but putting it first makes it easier to transform a gallery into an index page through find-and-replace.
{{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages}} {{image|ph=1|Placeholder|Placeholder}} {{image|Noscans.png|Blank pages}} {{image|Noscans.png|Blank pages}} <br style="clear:both;"/>
Index links
To link images in a gallery directly to their transcription in the Page namespace (rather than the default File namespace), include a parameter called {{{page}}}
. Again, best practice is to place it as the first argument.
{{image|page=1|Noscans.png|Blank pages}} {{image|page=1|Noscans.png|Blank pages}} {{image|page=1|Noscans.png|Blank pages}} {{image|page=1|Noscans.png|Blank pages}} {{image|page=1|Noscans.png|Blank pages}} {{image|page=1|Noscans.png|Blank pages}} <br style="clear:both;"/>