Template:Compare/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "'''{{tl|compare}}''' is a "quick 'n' dirty" template for comparing multiple images. It's mainly intended for admin use in order to offer a side-by-side comparison of up to t...")
 
m (Protected "Template:Compare/doc": Robot: Protecting all pages from category templates (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:


== Usage ==
== Usage ==
 
This template displays differently depending on the parameters you choose. 
{{compare|file.jpg|file2.jpg|cap|cap2}}
{{compare|file.jpg|file2.jpg|cap|cap2|best=file3.jpg|bestcap=cap3}}
Type
Type


:<code><nowiki>{{compare|file.jpg|file2.jpg|cap|cap2}}</nowiki></code>
:<code><nowiki>{{compare|file.jpg|file2.jpg|cap|cap2}}</nowiki></code>


:::to produce:
to produce the top right image.  Alternately, if you have three images you'd like to compare, you can type 
{{compare|file.jpg|file2.jpg|cap|cap2}}
{{compare|float=left|Old Jamie.jpg|Jamie and the Doctor.jpg|'''Lots of problems here''':  Biggest thing is that the image is in colour and the comic was originally monochromatic.  But also, the double frames makes this about a 16:4 aspect ratio, which in turn produces a '''tiny''' thumbnail.|Better, because the comic was '''originally''' monochromatic, and [[T:ICC]] requires the use of the original printing.  Note how focusing on a single panel makes the image "bigger" as a thumbnail.}}
 
:<code>best=file3.jpg|bestcap=cap3</code>
If you want to add a third image, you'll need to add :<code><nowiki><code>best=file3.jpg|bestcap=cap3<nowiki></code>
which will give you the second image.  If, however, you want to make the comparison appear on the '''left''' side of the page, like our third example, you just need to add <code>float=left</code> to the mix.
 
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>
::such that you get:
 
{{compare|file.jpg|file2.jpg|cap|cap2|best=file3.jpg|bestcap=cap3}}

Latest revision as of 01:45, 13 May 2013

{{compare}} is a "quick 'n' dirty" template for comparing multiple images. It's mainly intended for admin use in order to offer a side-by-side comparison of up to three images at 130px, so that the user can see the difference between pictures at typical thumbnail width.

Usage

This template displays differently depending on the parameters you choose.

Bad Better
File:File.jpg File:File2.jpg
cap cap2


Bad Better Best
File:File.jpg File:File2.jpg File:File3.jpg
cap cap2 cap3

Type

{{compare|file.jpg|file2.jpg|cap|cap2}}

to produce the top right image. Alternately, if you have three images you'd like to compare, you can type

Bad Better
Old Jamie.jpg Jamie and the Doctor.jpg
Lots of problems here: Biggest thing is that the image is in colour and the comic was originally monochromatic. But also, the double frames makes this about a 16:4 aspect ratio, which in turn produces a tiny thumbnail. Better, because the comic was originally monochromatic, and T:ICC requires the use of the original printing. Note how focusing on a single panel makes the image "bigger" as a thumbnail.
best=file3.jpg|bestcap=cap3

which will give you the second image. If, however, you want to make the comparison appear on the left side of the page, like our third example, you just need to add float=left to the mix.