附属国是什么意思| 梦见发大水是什么意思| 为什么身上老是痒| 体格检查是什么意思| 粥米是什么米| 小孩子记忆力差是什么原因| 洗冷水澡有什么好处| 头眩晕是什么原因引起的| 凡人修仙传什么时候写的| 什么肉好消化| 今天是什么年| 淋巴细胞偏低什么意思| 六月份是什么季节| 比细菌还小的东西是什么| 湘潭市花是什么| 女人为什么会得甲状腺| 走路快的人是什么性格| 冬瓜什么季节吃最好| 天秤女和什么星座最配| 排卵日和排卵期有什么区别| 减肥晚上可以吃什么| 过期牛奶可以做什么| 辛辣食物指的是什么| 活动性胃炎是什么意思| 病理活检是什么意思| 戳什么意思| 什么是慈悲| nec医学上是什么意思| 张家界地貌属于什么地貌| 腱鞘炎是什么病| 女生胸部什么时候停止发育| 再接再厉什么意思| 兰若是什么意思| 左手食指有痣代表什么| 手痒脱皮是什么原因| 白细胞偏高说明什么| 女性排卵有什么症状或感觉| pd999是什么金| 狮子座什么性格| 什么都没有| 宅基地是什么意思| 狗脚朕什么意思| 侧重点是什么意思| 银耳和雪耳有什么区别| 心肌缺血做什么检查能查出来| 10月底是什么星座| 锡字五行属什么| 什么样的雨珠| 咳嗽吃什么食物好得最快最有效| 为什么睡不着| 打鸟是什么意思| 女性内科检查什么| 猫砂是什么| 宫颈那囊是什么| 赵丽颖原名叫什么| 世界上最多笔画的字是什么字| 硫酸亚铁是什么东西| 重阳节是什么时候| 急性扁桃体炎吃什么药| 体外受精是什么意思| 全身无力吃什么药| 痛经什么感觉| 什么的青蛙| 体细胞是什么| 生肖马和什么生肖相冲| omega3是什么意思| 2017是什么年| 瘖什么意思| 面瘫挂什么科室| 经常射精有什么伤害| 阴道内痒是什么原因| 丙氨酸氨基转移酶是什么意思| 甲功六项检查什么| 旁风草长什么样| 舌苔白腻吃什么中成药| 决堤是什么意思| 榴莲补什么| 早上9点多是什么时辰| 起死回生是什么生肖| 清热败火的败是什么意思| 嘴唇紫色是什么原因| 叶黄素什么时间吃最好| 提手旁有什么字| 怀孕的肚子是什么样的| 螃蟹为什么吐泡泡| 手心脚心发热吃什么药| 女性做B超挂什么科| 团是什么结构| 1988年是什么生肖| 褒义词和贬义词是什么意思| 髂胫束在什么位置| 拉肚子吃什么蔬菜| 男人下面流脓吃什么药| 装什么病能容易开病假| 刘备和刘邦什么关系| 什么人容易高反| 胃疼是什么感觉| 吃什么增加孕酮| prc是什么意思| 血栓弹力图是查什么的| o型血阳性是什么意思| 为什么遗精| 头顶冒汗是什么原因| 射手座和什么座最配对| 贫血吃什么东西好| 6月25日是什么日子| 碗摔碎了预示着什么| 看肺子要挂什么科| 吃什么增肥| gd是什么牌子| 兔子拉稀是什么原因| 酒后吃什么解酒最快| 蜂蜜的主要成分是什么| 陌上是什么意思| 明是什么生肖| 大便感觉拉不干净什么原因| 臭酸是什么| 互粉是什么意思| 耳鸣吃什么药效果好| 漂头发是什么意思| 梦见莲藕是什么意思| 黄褐色是什么颜色| 1992年属什么生肖| 法国用什么货币| 做腋臭手术挂什么科室| 什么程度算精神出轨| 年薪12万什么水平| 静谧是什么意思| scarves什么意思| 牙齿黄是什么原因| 眼前有亮光闪是什么问题| 晚上3点是什么时辰| 锦鲤是什么意思| 长乘宽乘高算的是什么| 百雀羚适合什么年龄段| 标准是什么意思| 七月一是什么星座| 缺钾吃什么食物补得最快| 受用是什么意思| 月经来头疼是什么原因引起的| 果粉是什么意思| 腿上有淤青是什么原因| 尿检查什么| 经常手麻是什么原因引起的| 快餐是什么意思| 花红是什么意思| ygk是什么牌子| 什么也别说| 心脏不舒服吃什么药最好| 肝不好的人有什么症状| 扁桃体2度是什么意思| 什么人容易得脑梗| 燕窝是什么| ercp是什么检查| 为什么会长水痘| 晚上扫地有什么说法| 容易紧张是什么原因| 05年属什么| 降血脂吃什么药| 预热是什么意思| 什么水没有鱼| 红酒兑什么好喝| af是什么| it代表什么| 缺黄体酮会有什么症状| 停胎是什么原因造成的| 弱精吃什么能提高活力| 脸上老是长闭口粉刺是什么原因| 吃什么可以降低血糖| 梦见自己洗衣服是什么意思| 梦见父母是什么意思| 女性尿浑浊是什么原因| 十二月七号是什么星座| 什么是卵巢囊肿| abi医学上是什么意思| kps是什么意思| 枸橼酸是什么| 戒腊什么意思| 炎症是什么| 拉肚子吃什么水果好| 百合什么时候种植最好| 殊胜的意思是什么| 男人吃什么补身体| 甲亢能吃什么| 睡不着是什么原因| 渗透率是什么意思| 鸡米头是什么| 核桃和什么一起打豆浆| 耳朵旁边长痘痘是什么原因| 宝宝拉肚子吃什么药| 宫寒是什么原因引起的| 复山是什么意思| 网络cp是什么意思| 李子和什么不能一起吃| 今天吃什么| 阴道炎有什么症状| 什么是琉璃| 男人精液少是什么原因| 什么感觉| 吃阿莫西林过敏有什么症状| 为什么万恶淫为首| 苦尽甘来是什么意思| 猪横利是什么| 鸡属于什么动物| 四月初八是什么星座| 三个鬼念什么| 刻板印象是什么意思| 什么是性压抑| 为什么很多人不去庐山| 妇乐颗粒的功效能治什么病| 血液生化检查能看出什么病| 唏嘘什么意思| 什么手机拍照效果最好| 最聪明的狗是什么狗| 刀郎和那英是什么关系| 怀孕肚子疼是什么原因| 来日方长什么意思| 垚字五行属什么| 1119是什么星座| 双肾囊肿什么意思| 不是你撞的为什么要扶| 被跳蚤咬了涂什么药膏| 高处不胜寒是什么意思| 北面属于什么档次| 摩羯男喜欢什么类型的女生| 吃什么补脑增强记忆力| 针眼用什么药| 孕反应最早什么时候开始| 正月十五是什么节| 梦见血是什么预兆解梦| 31年属什么生肖| 平方是什么意思| 尿常规检查挂什么科| 吃什么升白细胞| rma是什么意思| 口臭喝什么茶效果最好| 回春是什么意思| 长膘是什么意思| 脚气真菌最怕什么| 什么的森林| 松鼠尾巴有什么作用| 哺乳期感冒了能吃什么药| 管科是什么专业| 南京立秋吃什么| 月经失调是什么意思| 底线是什么意思| 生化是检查什么的| 变异性哮喘吃什么药| 骑马挥杆是什么牌子| 中性粒细胞低说明什么| 近视眼睛什么牌子好| tag什么意思| hrd是什么职位| 青砖茶属于什么茶| 卵巢炎症有什么症状| 雍正是什么星座| 剁椒鱼头是什么菜系| 排卵期什么时候| 旺字五行属什么| 45岁属什么| acca是什么专业| 什么是可支配收入| hoho是什么意思| 1921年中国发生了什么| 百度Jump to content

龙湖巴蜀学校学生获“重庆形象大使” 殊荣 图

Page semi-protected
From Wikipedia, the free encyclopedia
百度 各宗教团体坚持中国化方向,引导广大信教群众紧密团结在党和政府周围,为促进民族团结、宗教和顺、社会和谐作出了积极贡献。

This editing guideline documents the syntax used to insert pictures and other media files into Wikipedia pages. The same syntax is used regardless of whether a file is from Wikipedia or Wikimedia Commons. New editors are encouraged to also see the picture tutorial and the simple guide for beginners.

Brief syntax

In brief, the syntax for displaying an image is:

[[File:Name|Type|Border|Location|Alignment|Size|link=Link|alt=Alt|page=Page|lang=Langtag|Caption]].

Plain type means you always type exactly what you see. Bold italics represent a variable, which you replace with its actual value.

Of the options shown, only Name is required. Others are optional and can be placed in any order.

Most images should use [[File:Name|thumb|alt=Alt|Caption]] and should not specify a size.

Type
thumb (or thumbnail; either can be followed by =filename), frame (or framed), or frameless. Displays the image with specific formatting (see below).
Border
border. Put a small border around the image.
Location
right, left, center or none. Determine the horizontal placement of the image on the page. This defaults to right for thumbnails and framed images.
Alignment
baseline, middle, sub, super, text-top, text-bottom, top, or bottom. Vertically align the image with respect to adjacent text. This defaults to middle.
Size
upright or upright=scaling factor. Scale a thumbnail from its default size by the given factor (default 0.75), rounding the result to the nearest multiple of 10 pixels. The upright option must be used along with the thumb or frameless option. Alternatively, and only where absolutely necessary, users' preferences may be disregarded and the size of the image fixed by specifying a size in pixels: Width px or x Height px or Width x Height px. Scale the image to be no greater than the given width or height, keeping its aspect ratio. Scaling up (i.e. stretching the image to a greater size) is disabled when the image is framed.
Link
Link the image to a different resource, or to nothing.
Alt
Specify the alt text for the image. This is intended for visually impaired readers. See WP:ALT for how this should typically differ from the caption.
Page
Specify a page other than 1 to use for the thumbnail image in multipaged files.
Langtag
Specify the IETF language tag (slang: langtag) for switch-translated SVG (Scalable Vector Graphics) files. Some SVG files are multilingual; this option specifies which language to use. The langtag should be all lowercase (e.g., zh-hans rather than zh-Hans). Defaults to current Wikipedia language in article namespace or en in other namespaces. See {{Translate}}.
Caption
Not a keyword, the actual caption text. This is visible if the thumb or frame attribute is used, but may be displayed on mouseover in other cases.

Detailed syntax

The image syntax begins with [[, contains components separated by |, and ends with ]]. The [[ and the first | (or, if there is no |, the terminating ]]) must be on the same line; other spaces and line breaks <br> (or <br />) are ignored if they are next to | characters or just inside the brackets. Spaces or line breaks are not allowed just before the = in the following options, and may have undesirable side effects if they appear just after the =.

Do not terminate with the code |]]; this will be taken as an empty caption and override any real caption before it.

Type

One of these options may be specified to control whether or not the image is scaled and/or given a border. For options that automatically scale the image, it's usually to 220px; logged-in users can modify this (at "Thumbnail size" under Preferences → Appearance → Files). This is important to users with (e.g.) limited vision. If this is too large or small the upright attribute can be used. Specifying a fixed size in pixels overrides all of this, but is unfriendly to users who need a larger image.

thumb (or thumbnail)
Automatically scale the image, and put a box around it. Show a caption if specified. Float the image on the right unless overridden with the location attribute. With an operand, e.g. thumb=Example.png, the operand names an image that is used as the thumbnail, ignoring any size specification.
frame
Preserve the original image size, and put a box around the image. Show any caption below the image. Float the image on the right unless overridden with the location attribute. Note: Any size options specified will be ignored and flagged as a 'bogus file option' by the Linter.
frameless
Automatically scale the image up or down. Place it inline with the text unless overridden with the location attribute.
Nothing specified
Preserve the original image size, and do not add a border around the image. Place it inline with the text unless overridden with the location attribute. Do not show a caption. If no alt text is specifically requested, use the requested caption as alt text. This option is almost exclusively used in templates.

Border

border
Generate a one-pixel border around the image. This has an effect only around unframed images (those without |thumb and |frame), as framed images always have borders.

Location

One of these options may be specified to control the position of the image. For examples of how all this works, see Examples of location parameter.

right
Place the image on the right side of the page. The article text that follows the image flows around the image. This is the default when thumb or frame is used.
left
Place the image on the left side of the page. The article text that follows the image flows around the image, but there may be formatting issues with lists and indented text (see § Interaction between left-floating images and lists).
center
Place the image in the center of the page. The article text that follows the image is placed below the image.
none
Place the image on the left side of the page. The article text that follows the image is placed below the image.
Nothing specified, and neither thumb nor frame
The image is placed inline with the text, smiling emoji like this.

Vertical alignment

One of these options may optionally be specified to control the vertical alignment of the image with respect to adjacent text.
These vertical alignment options apply only to plain images, which do not cause breaks and are not floated (that is, they do not work with images that need text to flow around them. To make text flow around an image, place the image preceding the text and use the thumb parameter).

In the following list, each option's explanation is preceded by what File:Flag of Hungary vertical.svg looks like when aligned using the listed option, using the markup
of [[File:Flag of Hungary vertical.svg|option|frameless|upright=0.1|link=|alt=]]

middle:
(This is the default.) Align the vertical middle of the image with the baseline of the text plus half the x-height of the text, so that the image is vertically centered around a lower case "x" in the text.

baseline:
Align the bottom of the image with the baseline of the text.

sub:
Align the bottom of the image to the same level that the bottom of a subscript would be, such as the bottom of the "2" in "X2".

super:
Align the bottom of the image to the same level that the bottom of a superscript would be, such as the bottom of the "2" in "X2".

text-top:
Align the top of the image to the top of the text. This is often a bit higher than the top of a capital letter, because of ascenders in letters like lower-case "h".

text-bottom:
Align the bottom of the image to the bottom of the text. This is somewhat lower than the baseline, because of descenders in letters like lower-case "y".

top:
Align the top of the image to the top of the line containing the text. Normally this is slightly higher than the top of the text, to make space between lines of text.

bottom:
Align the bottom of the image to the bottom of the line containing the text. Normally this is slightly lower than the bottom of the text.

Size

Any or none of these options may be specified to control the size of the image. In the case of images with captions, if the image is already smaller than the requested size, then the image retains its original size (it is not enlarged). In the case of images without captions, the image will be enlarged or reduced to match the requested size. Sizing is disabled when the type 'frame' is use, with the size options being flagged as a bogus file option at Special:LintErrors.

The default thumbnail width can be set in the preferences, so specifying in px is not recommended in order to respect the users' preferences, which may be important for accessibility. Exceptions can, of course, be made, but do try to use upright or the default if possible.

Implementation details
Specifying a size does not just change the apparent image size using HTML; it actually generates a resized version of the image on the fly and links to it appropriately. This happens whether or not you specify the size in conjunction with "thumb".

This means the server does all the work of changing the image size, not the web browser of the user. Having the server do all the work means faster downloading of pages. It also means that larger images can be stored on the server without any slowdown by the browser (especially on dial up telephone lines). Only the data for the actual size on the page is transmitted.

An exception is animated GIF images. Animated GIF images are not processed by the server. When a smaller size is specified the original full sized animated GIF image is served. Whether the animated GIF image is subsequently scaled to fit the allotted space belongs to the capabilities of the receiving browser. Resizing an animated GIF image will significantly reduce its quality, without any reduction of download time.

When there are two or more "size" options of the same type, only the last one is valid. However, if both an upright and an absolute size are used together, the absolute size always takes precedence, regardless of where it appears in the options.
(nothing specified)
For thumbnails, use the size specified in preferences for logged in users, and use a size determined by resolution for users who are not logged in. For non-thumbnails, use the native size of the image.
upright or upright=scaling factor
Scale a thumbnail's size to scaling factor times the default thumbnail size, rounding the result to the nearest multiple of 10. For instance, upright=1.5 makes the image larger, which is useful for maps or schematics that need to be larger to be readable. The parameter upright=1 returns the same size as thumbnail width, and upright=0.75 is functionally identical to upright alone. If you set scaling factor equal to the image's aspect ratio (width divided by height) the result is equivalent to scaling the height to be equal to the normal thumbnail width.
The upright option only works with the thumb or frameless parameter (see Type).
Widthpx
(E.g. 100px) Scale the image to make it the specified number of pixels in width, and scale the height to retain the original aspect ratio.
xHeightpx
(E.g., x150px) Scale the image to make it the specified number of pixels in height, and scale the width to retain the original aspect ratio.
WidthxHeightpx
(E.g. 100x150px) Scale the image to be no wider and no higher than the specified number of pixels. The image will keep its original aspect ratio.
|link=Page
Ordinarily, clicking on an image takes the reader to the image description page. The link option allows the reader to be taken instead to a different page, such as a fuller image from which the thumbnail was cropped, or to a full document of which the thumbnail was a single page (or crop of a single page). Do not enclose the page name in square brackets. If Page is a URL, the reader will be taken outside the project; this is not normally done in article space.
|link= (alone)
Disables the link so that clicking on the image does nothing.

|link= affects only what happens when the image itself is clicked; |thumb images carry a little rectangle-rectangle icon in the caption area, and clicking that always leads to the image description page. Except for public-domain images, it must always be possible for the reader to reach the image-description page, so |link= should be used only with |thumb images.

|link= cannot be used with |frame.

To disable all linking from, and description of, a purely decorative image – so that it's ignored by screen readers – use "|link=|alt=" with no arguments for either parameter.

Alt text and caption

Zero or more of these options may be specified to control the alt text, link title, and caption for the image. Captions may contain embedded wiki markup, such as links or formatting. See Wikipedia:Captions for discussion of appropriate caption text. See Wikipedia:Alternative text for images for discussion of appropriate alt text. Internet Explorer displays the link title as a tooltip but other browsers may not.[needs update]

Hint: to force the caption to be written (underneath the picture) and not just appear as "hover text" even when you wish to resize the image, specify "thumb". If you specify "frame" the caption does appear but any resizing (such as "125px") is ignored.

alt=Alt
Use Alt as the alt text for the image.
Caption
(the last option that is not recognised as some other part of the image syntax): How this text is used depends on the image type. When the type has a visible caption ("thumbnail", "thumb", "frame" or "framed") then this text appears as a caption below the image. Otherwise, (if the image type is unspecified or is "frameless"), this text is used for the link title provided the link has not been suppressed with "|link=", and also for the alt text provided an explicit alt=Alt has not been supplied.

The actual alt text for the displayed image will be one of the following, in order of preference:

  1. The explicitly requested Alt, if any;
  2. The explicitly requested Caption, if the image type has no visible caption;
  3. The empty string, if there is an explicitly requested Caption and the image type has a visible caption.
  4. The image file name if there is no explicitly requested Alt or Caption. This is never a satisfactory option.

It is possible to specify the link title text only for images with no visible caption (as described above). However, as not all browsers display this text, and it is ignored by screen readers, there is little point.

Note: alt is supported only for images. Audio and video files should use timed text.

Class

class=
Used to insert any HTML classes for image. This has an effect only for some specific classes listed in Wikipedia:Catalogue of CSS classes, or some classes produced by TemplateStyles.
  • The special class class=notpageimage will exclude the image from being selected by the Page Images algorithm.(phab:T301588)
  • class=skin-invert will cause the image's colors to be inverted in dark mode. class=skin-invert-image will only invert the image and not the caption.
  • Separate multiple classes with spaces, e.g. class=skin-invert-image notpageimage

Page

Boléro: page 2 from the score

Normally page 1 from a PDF or DjVu file is used to generate the thumbnail. A different page can be used with the parameter |page=: [[File:IMSLP01578-Ravel - Bolero Full Score Durand 1929.pdf|thumb|page=2|''Boléro'': page 2 from the score]]:

Examples

Using the basic syntax

The most basic example uses the syntax [[File:Westminstpalace.jpg|Alt text]]. This does not scale the image or allow text to wrap around it. This is not normally appropriate in an article.

Alt text

This is rendered inline, and the specified text is used as the image's alt attribute (alternate text for programs which cannot display images, such as screen readers) and as the title attribute (supplementary text, often displayed as a tooltip when the mouse is over the image). See Wikipedia:Captions for discussion of appropriate caption text. See Wikipedia:Alternative text for images for discussion of appropriate alt text.

Above, the image of the Thames was put into its own paragraph. This isn't mandatory; images can sit inline in text, as shown below.

text text text text text text
[[File:Westminstpalace.jpg|150px|alt=A large clock tower and other buildings line a great river.|The Palace of Westminster]]
text text text text text
[[File:tst.png|100px|alt=Tiny globe|This is a globe.]]
text text text text

gives

text text text text text text A large clock tower and other buildings line a great river. text text text text text Tiny globe text text text text

Keeping the original size, with a caption

To display an image as uploaded with a caption use [[File:Westminstpalace.jpg|frame|none|alt=Alt text|Caption text]].

Alt text
Caption text

Aligning thumbnails to fit into text

A large clock tower and other buildings line a great river.
The Palace of Westminster

This is the style most familiar to readers. As shown on in the example image, the image is framed, is an appropriate size, and has text able to wrap around it. A caption is properly integrated.

The important part of this is the thumb parameter: [[File:Westminstpalace.jpg|thumb|upright=0.4|left|alt=A large clock tower and other buildings line a great river.|The Palace of Westminster]] (as shown in the left). For details of these options, see previous sections.

Examples of the location parameter are below:

right
A large clock tower and other buildings line a great river.
The image is right-aligned, and text floats to the left of the image: [[File:Westminstpalace.jpg|thumb|alt=A large clock tower and other buildings line a great river.|right|upright=0.35]] (shown on the right).
left
A large clock tower and other buildings line a great river.
The image is left aligned, and text floats to the right of the image: [[File:Westminstpalace.jpg|thumb|alt=A large clock tower and other buildings line a great river.|left|upright=0.35]] (shown on the left).
center
The image is centered, and...
A large clock tower and other buildings line a great river.
the text following the image starts below it: [[File:Westminstpalace.jpg|thumb|alt=A large clock tower and other buildings line a great river.|center|upright=0.35]] (shown above).
none
The image is put at the left, and...
A large clock tower and other buildings line a great river.
the text following does not float to the right (or to the left, obviously), and starts below it: [[File:Westminstpalace.jpg|thumb|alt=A large clock tower and other buildings line a great river.|none|upright=0.35]] (shown above).

The many-floating-objects problem

There is a floating issue in HTML/CSS that prevents certain images (or other floating objects) from floating above others. It occurs only if:

  • there are multiple floating objects on one side of the page
  • the floating object on the other side of the page comes after the other ones in the source code

The first floating object on the latter side of the page won't float above the last floating object on the former (see examples below). Solutions include alternating between left and right in aligning images or other floating objects (not shown); setting to "none" the alignment of the one that won't float above the others (as demonstrated on the population table here); and using a gallery tag for large numbers of images in a single section. Per MOS:ACCESS#FLOAT, images should be inserted in the relevant section (i.e. do not place the markup above the section headline), even if that can cause them to float into the next section.

Problematic code:

==Section 1==
[[File:Westminstpalace.jpg|thumb|70px|right|Figure 1.1 ('''right''')]]
[[File:Westminstpalace.jpg|thumb|70px|right|Figure 1.2 ('''right''')]]
[[File:Westminstpalace.jpg|thumb|70px|right|Figure 1.3 ('''right''')]]
[[File:Westminstpalace.jpg|thumb|70px|right|Figure 1.4 ('''right''')]]
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
==Section 2==
[[File:Westminstpalace.jpg|thumb|70px|left|Figure 2.1 ('''left''')]]
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
The problem:
Section 1
Figure 1.1 (right)
Figure 1.2 (right)
Figure 1.3 (right)
Figure 1.4 (right)

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Section 2
Figure 2.1 (left)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Setting alignment of final image to none:
Section 1
Figure 1.1 (right)
Figure 1.2 (right)
Figure 1.3 (right)
Figure 1.4 (right)

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Section 2
Figure 2.1 (none)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Using gallery tags for large numbers of images:
Section 1

For more information on the gallery tag, see Help:Gallery tag.

Section 2
Figure 2.1 (left)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Using "upright"

A large clock tower and other buildings line a great river.
The "upright" option is about 75% of thumbnail width.
A large clock tower and other buildings line a great river.
The "upright=1.5" option

The upright option works in combination with the thumbnail or thumb option to resize an image to about 75% of the width of a plain thumbnail. This is useful for displaying images in "portrait" orientation, since such tall and narrow images tend to look too large when scaled to the same width as "landscape" oriented images. The upright option scales larger or smaller in step with user screen resolution. The relative size can be determined with a multiplier such as upright=x. If x=1 then the image is standard thumbnail width. E.g., [[File:Westminstpalace.jpg|thumbnail|upright|left|alt=A large clock tower and other buildings line a great river.|The "<code>upright</code>" option is about 75% of thumbnail width.]] (shown on the left) and [[File:Westminstpalace.jpg|thumb|upright=1.5|right|alt=A large clock tower and other buildings line a great river.|The "<code>upright=1.5</code>" option]] (shown on the right).

Using frame

A large clock tower and other buildings line a great river.
The Palace of Westminster

With this option, the embedded image is shown with its actual size enclosed by a frame, regardless of the "thumb" or "size" attribute, and the caption, if any, is visible in the frame. Without the options left, center, and none, the image is normally on the right: [[File:Westminstpalace.jpg|frame|alt=A large clock tower and other buildings line a great river.|The Palace of Westminster]].

With none of the options other than sizepx and alternate (caption) text, an embedded image is rendered inline.

Using alignment "none" thumbnails in tables

The option none can be used to have thumbnails without left- or right-alignment. This is probably most useful for tables. This is an example:

London's palaces
Palace of Westminster
A large clock tower and other buildings line a great river.
From the Thames
[[File:Westminstpalace.jpg|thumb|none|100px|alt=A large clock tower and other buildings line a great river.|From the Thames]]
Buckingham Palace
Grand city building below beautiful blue sky and clouds
Queen's home
[[File:Buckingham Palace 2003.jpg|thumb|none|100px|alt=Grand city building below beautiful blue sky and clouds|Queen's home]]
A large clock tower and other buildings line a great river.
This is the Palace of Westminster in London

You can put links in the caption text, as demonstrated in this image:

[[File:Westminstpalace.jpg|right|thumbnail|alt=A large clock tower and other buildings line a great river.|This is the [[Palace of Westminster]] in London]]

Just make sure the number of opening and closing square brackets are right. One extra or missing would mean the entire image syntax line would not work.

A large clock tower and other buildings line a great river.
This is the
Palace of Westminster
in London

Additional caption formatting options are possible; all normal formatting should just work.

[[File:Westminstpalace.jpg|right|thumbnail|alt=A large clock tower and other buildings line a great river.|<div style="text-align: center">This is <span style="color: green">the </span><br /> [[Palace of Westminster]]<br /> '''in <span style="color: red">London</span>'''</div>]]

Interaction between left-floating images and lists

List bullets and numbers can sometimes overlap left-floating images, and indented lines may not appear correctly when next to left-floating images. For example:

Markup Renders as
[[File:Westminstpalace.jpg|left|thumb|100px]]
<ol>
  <li>list item A1
    <ol>
      <li>list item B1</li>
      <li>list item B2</li>
    </ol>continuing list item A1
  </li>
  <li>list item A2</li>
</ol>
  1. list item A1
    1. list item B1
    2. list item B2
    continuing list item A1
  2. list item A2
[[File:Westminstpalace.jpg|left|thumb|100px]]
First line
:Second line
::Third line
:::Fourth line

First line

Second line
Third line
Fourth line

The {{flowlist}} template enables lists to stay clear of these left-floating objects:

[[File:Westminstpalace.jpg|left|thumb|100px]]
{{flowlist}}
  <ol>
    <li>list item A1
      <ol>
        <li>list item B1</li>
        <li>list item B2</li>
      </ol>continuing list item A1
    </li>
    <li>list item A2</li>
  </ol>
{{endflowlist}}

{{flowlist}}
First line
:Second line
::Third line
:::Fourth line
{{endflowlist}}

Renders as:

  1. list item A1
    1. list item B1
    2. list item B2
    continuing list item A1
  2. list item A2

First line

Second line
Third line
Fourth line

This method will not work inside of a table, and if your list is longer than the floated element, then the list will not flow around the image like normal, but instead be one block, leaving white space below the floated element.

Overlaying annotations on an image

In some cases, it may be desirable to add clickable annotations to an image. The templates Template:Annotated image and Template:Annotated image 4 exist for this purpose.

These templates allow wikitext (e.g., regular text, wikilinks, allowed HTML code, references, and other templates) to be included on the image itself. They may also be used to crop an image so as to focus on a particular portion of it, or alternatively, expand the white area around an image for better placement of wikitext.

Annotated image template examples
Dorsal
Upper lateral
Lower lateral
Ventro-lateral
       = Frontal
Example of an annotated diagram (using Template:Annotated image) that has clickable wikilinks and overlaid text
Dorsal
Upper lateral
Lower lateral
Ventro-lateral
       = Frontal
The image above contains clickable links
Example of an annotated diagram (using Template:Annotated image 4) that has clickable wikilinks and overlaid text
The image and caption as a thumb, sans annotations

There is also the template {{Overlay}}:

1
2
3
4
5
6
1
Mount Stillwell
2
Kangaroo Ridge
3
Little Stillwell
4
Kangaroo Ridge Triple Chairlift mid station
5
Basin Poma (J-Bar) unload point
6
Ego flats
Snow gums

Only item 7 is linked here.

Superimposing images

Images can be overlaid or superimposed using {{Superimpose}}, {{Superimpose2}} or {{Overlaid images}}.

Located in north central Colorado, which is just west of the center of the U.S.

Cropping images

Images can be cropped using {{CSS image crop}} or {{Annotated image}}.

A drop of dew on grass (focus on the drop)
A drop of dew on grass (focus on the drop)

Cancelling floating-around-image mode

After having had an image floating next to text, putting further text below it (and again using the full width) can be done with the following markup. This blocks an image from appearing next to the material following this markup. The reason for this could be aesthetic or a change in topics.

This can be issued by using template {{clear}} or {{Clr}} or {{-}} in certain namespaces (en, meta).

VR images

To display VR photographs (aka 360-degree panoramas or photospheres), use {{PanoViewer}}.

Linking to the image without displaying it

If you don't want to show or display the image but rather just want to make a link to the description page for an image, use a leading colon before "File:" in an intra-wiki link, like this: [[:File:STS-32 crew.jpg|STS-32 crew]] which yields: STS-32 crew. Linking to a particular PDF or DjVu page using the parameter |page= is not supported, so the template {{PDF page link}} should be used instead.

Sound files

Often, sound files are presented on Wikipedia pages using {{Listen}} or its related templates. However, it is also possible to present an audio file without using any template. Similar syntax to images can be used to transclude audio or video files into pages.

  Code Output
1. [[File:Accordion chords-01.ogg]]
2. [[File:Accordion chords-01.ogg|frameless|upright=1.3]]

Note that none of these examples provide links to Wikipedia:Media help, and example 2 provides no navigable links to the file itself. Consequently, whenever this method is used, the {{Inline audio}} template must be shown on that page, and the presentation of the play buttons must be accompanied by clickable links to the sound file itself. Examples:

  Code Output
1. [[File:Accordion chords-01.ogg|frameless|upright=0.4|left]] [[:File:Accordion chords-01.ogg|Accordion chords]]
Accordion chords
2. [[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px|right]] Accordion chords
3. [[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px]] Accordion chords

Note that vertical alignment of the play button does not work, nor is it possible to present the play button inline with text; consequently, the most pleasing arrangement is achieved with examples 1 or 3.

There is also a parameter to preset the player to start at a time other than 0:00.

  Code Output
1. [[File:Accordion chords-01.ogg|start=0:05]]

MIDI

Since June 2019, MIDI files can be played just like other sound files. See: Help:Score.

Bagatelles, Op. 33, no. 1
[[File:Beethoven Op. 33 no. 1.mid|thumb|[[Bagatelles, Op. 33 (Beethoven)|''Bagatelles'', Op. 33]], no. 1]]

Video files

To display a video as uploaded with a caption use [[File:First flights in aviation history.ogg|frame|none|Caption text]].

Caption text

Initial still image

"|thumbtime=Time". Use the frame from the video at the given time as the initial still image. Time is either a number of seconds, or hours, minutes and seconds separated by colons. Without a thumbtime parameter, a frame from the midpoint of the video is used by default. For instance, using the same video file as previously:

Man in suit tie and hat at 21 seconds. Time syntax using seconds only: "21".
Monoplane seen at 23 seconds. Time syntax using minutes and seconds: "0:23".
Landed biplane seen at 33 seconds. Time syntax using hours, minutes and seconds: "0:0:33".

Temporal media fragments

Starts at 5 seconds and ends playback at 7 seconds

This syntax allows you to play a segment of the video stream or set a start time. Hover over the player to see start time listed as 5s, press play and notice it stops playback at 7 seconds.

[[File:Weeding.ogv|thumb|upright=1.3|start=5|end=7|Starts at 5 seconds and ends playback at 7 seconds]]

Note: This is not yet supported by Safari and Internet Explorer.

Displaying small videos larger

To display a video larger than its uploaded size use "|thumb" and "|numberpx". This may be useful if the original video is very small but shows some important but small detail, but note that upscaling may create unexpected scaling artifacts. For example, the code

[[File:cal16x16check_vdnocnoafr1len2.avi.q10.ogv|inline|left]] [[File:cal16x16check_vdnocnoafr1len2.avi.q10.ogv|right|thumb|128px]]

displays the 16 pixels wide video at its original size on the left and eight times wider at the right (the squares should be all black or all white and the edges should be sharp — any blurriness or off-white colour is likely due to the browser or the Wikimedia server rendering):
inline

The thumbtime parameter can also be used inside a gallery (either with <gallery> tags or the {{Gallery}} template):

Here is the wikicode that created it:

<gallery>
File:First flights in aviation history.ogg|thumbtime=21|Man in suit tie and hat at 21 seconds.
File:First flights in aviation history.ogg|thumbtime=0:23|Monoplane seen at 23 seconds.
</gallery>

See also

肝硬化早期吃什么药 30年属什么生肖 男士睾丸疼是什么原因 下体有异味是什么原因 心力衰竭吃什么药最好
什么睡姿对髋关节好 自言自语是什么病 肾病什么症状 害怕的反义词是什么 正月初八是什么星座
开尔文是什么单位 什么是热辐射 旖旎是什么意思 云南白药的保险子是起什么作用的 大便秘结是什么意思
hrd什么意思 525什么星座 hr是什么职业 吃力不讨好是什么意思 2010属什么
扁桃体发炎不能吃什么dajiketang.com 昭觉寺求什么最灵验hcv9jop3ns1r.cn 为什么不能送手表hcv8jop7ns1r.cn 立刀旁的字和什么有关yanzhenzixun.com 咽喉充血是什么原因hcv7jop7ns1r.cn
54岁属什么的hcv9jop2ns9r.cn 反胃想吐是什么原因hcv8jop1ns5r.cn 韩束属于什么档次96micro.com 四川人为什么喜欢吃辣hcv7jop6ns2r.cn cd4是什么意思hcv9jop6ns3r.cn
状元及第是什么意思hcv8jop7ns1r.cn 胆囊病变是什么意思hcv7jop4ns5r.cn 土字旁有什么字hcv8jop6ns0r.cn 为什么人会做梦hcv8jop9ns9r.cn 宝宝消化不好吃什么调理hcv9jop2ns2r.cn
山楂搭配什么泡水喝好hcv8jop3ns8r.cn 乳头变大是什么原因hcv9jop8ns1r.cn 月经期间适合吃什么helloaicloud.com 车前草有什么功效和作用hcv7jop9ns1r.cn 大蒜泡酒治什么病hlguo.com
百度