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...") |
No edit summary |
||
Line 10: | Line 10: | ||
{{compare|file.jpg|file2.jpg|cap|cap2}} | {{compare|file.jpg|file2.jpg|cap|cap2}} | ||
If you want to add a third image, you'll need to add :<code><nowiki><code>best=file3.jpg|bestcap=cap3<nowiki></code> | If you want to add a third image, you'll need to add :<code><nowiki><code>best=file3.jpg|bestcap=cap3</nowiki></code> | ||
::such that you get: | ::such that you get: | ||
{{compare|file.jpg|file2.jpg|cap|cap2|best=file3.jpg|bestcap=cap3}} | {{compare|file.jpg|file2.jpg|cap|cap2|best=file3.jpg|bestcap=cap3}} |
Revision as of 18:32, 24 March 2012
{{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
Type
{{compare|file.jpg|file2.jpg|cap|cap2}}
- to produce:
Bad | Better |
---|---|
File:File.jpg | File:File2.jpg |
cap | cap2 |
If you want to add a third image, you'll need to add :<code>best=file3.jpg|bestcap=cap3
- such that you get:
Bad | Better | Best |
---|---|---|
File:File.jpg | File:File2.jpg | File:File3.jpg |
cap | cap2 | cap3 |