Template:Auto images/doc
此頁面是Template:Auto images的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
模板介紹
{{Auto images |title=Cactus areoles |width1=1328|height1= 990|image1=Pereskia grandifolia areole.jpg|caption1=''Pereskia grandiflora''|alt1=Shows leaves emerging from areoles |width2=4408|height2=3229|image2=Cut Cereus (brightened).jpg|caption2=''Cereus'' cross-section showing the arrangement of areoles |width3=2736|height3=3648|image3=Echinopsis candicans (3).jpg|caption3=''Echinopsis candicans'' |width4= 528|height4= 552|image4=Astrophytum capricorne areole.jpg |caption4=Close up of an areole of ''Astrophytum capricorne''|alt4=Shows fine wool covering areoles |footer=Areoles are characteristic of all cacti, whether or not they have leaves. }}
produces
使用方法
Four parameters apply to the set of images as whole.
- title – specifies an optional title placed at the top of the set of images.
- total_width – optionally specifies the total width of the set of images. The default is 600 (pixels), which is good for a screen width of 800 and for printing.
- footer – optionally specifies footer text which runs across the bottom of all of the images.
- align – a value of left aligns the set of images to the left of the page; a value of right aligns them to the right of the page. The default is to centre the images on the page. Note: text does not flow around the sides of the images, regardless of the alignment. For this effect, see below.
- cont – any nonblank value (e.g. yes) is used to combine a row of images produced by this template with the one above – see below.
Each image is described by five parameters. "N" below takes the values 1, 2, ..., 6 for the maximum of six images.
- widthN – this is the width in pixels of the full resolution version of the image in Commons or Wikipedia. Examine the individual image page to obtain the full resolution.
- heightN – this is the height in pixels of the full resolution version of the image in Commons or Wikipedia.
- imageN – the name of the image in Commons or Wikipedia (do not precede by "File:" or "Image:").
- captionN – an optional caption for the image.
- altN – alternative text. See WP:ALT.
範例
The great advantage of this template over {{Multiple image}} is that if you decide to add or remove an image or change the total width of the row of images, you don't have to recalculate the widths. Thus:
{{Auto images |align=left |total_width=300 |width1=1328|height1= 990|image1=Pereskia grandifolia areole.jpg|caption1=''Pereskia grandiflora'' |width2=4408|height2=3229|image2=Cut Cereus (brightened).jpg|caption2=''Cereus'' cross-section showing the arrangement of areoles |width3=2736|height3=3648|image3=Echinopsis candicans (3).jpg|caption3=''Echinopsis candicans'' }}
produces
{{Auto images |title=Cactus areoles |align=right |total_width=200 |width1=2736|height1=3648|image1=Echinopsis candicans (3).jpg |width2= 528|height2= 552|image2=Astrophytum capricorne areole.jpg }}
produces
Cactus areoles