「ヘルプ:Images/ja」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
− | <languages/> | + | <languages /> |
{{TNT|PD Help Page}} | {{TNT|PD Help Page}} | ||
このページでは、ウィキを編集する際の'''画像'''の構文を説明します。 | このページでは、ウィキを編集する際の'''画像'''の構文を説明します。 | ||
11行目: | 11行目: | ||
既定では以下のファイル形式に対応しています: | 既定では以下のファイル形式に対応しています: | ||
− | * . | + | * .jpg or .jpeg : bitmap image compressed in the standard JPEG format (this lossy format is most suitable for photographs). |
− | * .png : ''[[w:Portable Network Graphics|Portable Network Graphics]]'' | + | * .png : bitmap image in the ''[[w:Portable Network Graphics|Portable Network Graphics]]'' format (specified by the ''W3 Consortium''). |
− | * .gif : | + | * .gif : bitmap image in the legacy ''Graphics Interchange Format''. |
Other formats used on Wikimedia, and commonly enabled elsewhere (these may require extra set-up beyond what is enabled by default): | Other formats used on Wikimedia, and commonly enabled elsewhere (these may require extra set-up beyond what is enabled by default): | ||
* .svg : scalable image in the ''Scalable Vector Graphics'' format (specified by the ''W3 Consortium''). [[Special:MyLanguage/Manual:Image Administration#SVG|Manual:画像の管理#SVG]] を参照してください。 | * .svg : scalable image in the ''Scalable Vector Graphics'' format (specified by the ''W3 Consortium''). [[Special:MyLanguage/Manual:Image Administration#SVG|Manual:画像の管理#SVG]] を参照してください。 | ||
− | * .tiff : | + | * .tiff : Tagged image format. Often used for high-resolution archival photographs. Often used with {{ll|Extension:PagedTiffHandler}}. |
* .ogg, .oga, .ogv : Ogg multimedia (audio or video). 画像形式ではありませんが、同様に扱われます。 Often used with {{ll|Extension:OggHandler}} | * .ogg, .oga, .ogv : Ogg multimedia (audio or video). 画像形式ではありませんが、同様に扱われます。 Often used with {{ll|Extension:OggHandler}} | ||
* .pdf : multipaged documents in the ''Portable Document Format'' (initially specified by ''Adobe''). Often used in conjunction with {{ll|Extension:PdfHandler}} | * .pdf : multipaged documents in the ''Portable Document Format'' (initially specified by ''Adobe''). Often used in conjunction with {{ll|Extension:PdfHandler}} | ||
24行目: | 24行目: | ||
*: Only a single page of a .pdf or .djvu file is shown at one time. | *: Only a single page of a .pdf or .djvu file is shown at one time. | ||
− | + | Other media types may be supported, but it may not be possible to display them inline. | |
== 単純な画像のレンダリング == | == 単純な画像のレンダリング == | ||
69行目: | 69行目: | ||
=== 書式 === | === 書式 === | ||
− | + | The following table shows the effect of all available formats. | |
{|class="wikitable plainlinks" | {|class="wikitable plainlinks" | ||
79行目: | 79行目: | ||
{{ {{TNTN|Help:Images/frame}}|frame=border|ex='''border''' results in a very small gray border|float=no|inline=yes|render caption=no}} | {{ {{TNTN|Help:Images/frame}}|frame=border|ex='''border''' results in a very small gray border|float=no|inline=yes|render caption=no}} | ||
{{ {{TNTN|Help:Images/frame}}|frame=frameless|ex='''frameless''', like thumbnail, respect user preferences for image width, but without border and no right float|float=no|inline=yes|render caption=no}} | {{ {{TNTN|Help:Images/frame}}|frame=frameless|ex='''frameless''', like thumbnail, respect user preferences for image width, but without border and no right float|float=no|inline=yes|render caption=no}} | ||
− | {{ {{TNTN|Help:Images/frame}}|frame=frameless|2=border|ex='''frameless''' | + | {{ {{TNTN|Help:Images/frame}}|frame=frameless|2=border|ex='''frameless''' and '''border'''|float=no|inline=yes|render caption=no}} |
{{ {{TNTN|Help:Images/frame}}|frame=frame|ex='''frame'''|float=yes|inline=no|render caption=yes}} | {{ {{TNTN|Help:Images/frame}}|frame=frame|ex='''frame'''|float=yes|inline=no|render caption=yes}} | ||
− | {{ {{TNTN|Help:Images/frame}}|frame=thumb|ex='''thumb''' | + | {{ {{TNTN|Help:Images/frame}}|frame=thumb|ex='''thumb''' or '''thumbnail'''|float=yes|inline=no|render caption=yes}} |
|} | |} | ||
274行目: | 274行目: | ||
== Rendering a gallery of images == | == Rendering a gallery of images == | ||
− | === | + | === Gallery syntax === |
It's easy to make a gallery of thumbnails with the <code><nowiki><gallery></nowiki></code> tag. | It's easy to make a gallery of thumbnails with the <code><nowiki><gallery></nowiki></code> tag. | ||
296行目: | 296行目: | ||
例: | 例: | ||
− | < | + | <pre> |
− | <gallery> | + | <nowiki><gallery></nowiki> |
File:Example.jpg|Item 1 | File:Example.jpg|Item 1 | ||
− | File:Example.jpg|a link to [[Help:Contents]] | + | File:Example.jpg|a link to <nowiki>[[Help:Contents]]</nowiki> |
File:Example.jpg | File:Example.jpg | ||
File:Example.jpg|alt=An example image. It has flowers | File:Example.jpg|alt=An example image. It has flowers | ||
− | File:Example.jpg|''italic caption'' | + | File:Example.jpg| <nowiki>''italic caption''</nowiki> |
− | Example.jpg|on page "{{PAGENAME}}" | + | File:Example.jpg|on page "<nowiki>{{PAGENAME}}</nowiki>" |
− | |||
</gallery> | </gallery> | ||
− | </ | + | </pre> |
is formatted as: | is formatted as: | ||
316行目: | 315行目: | ||
File:Example.jpg|alt=An example image. It has flowers | File:Example.jpg|alt=An example image. It has flowers | ||
File:Example.jpg|''italic caption'' | File:Example.jpg|''italic caption'' | ||
− | Example.jpg|on page "{{PAGENAME}}" | + | File:Example.jpg|on page "{{PAGENAME}}" |
− | |||
</gallery> | </gallery> | ||
332行目: | 330行目: | ||
例: | 例: | ||
− | < | + | <pre> |
<gallery mode="packed-hover"> | <gallery mode="packed-hover"> | ||
Image:Astronotus_ocellatus.jpg|''[[commons:Astronotus ocellatus|Astronotus ocellatus]]'' (Oscar) | Image:Astronotus_ocellatus.jpg|''[[commons:Astronotus ocellatus|Astronotus ocellatus]]'' (Oscar) | ||
349行目: | 347行目: | ||
File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' | File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' | ||
</gallery> | </gallery> | ||
− | </ | + | </pre> |
Gives (mode: <tt>packed-hover</tt>): | Gives (mode: <tt>packed-hover</tt>): | ||
399行目: | 397行目: | ||
Image:Georgia Aquarium - Giant Grouper.jpg|''[[commons:Epinephelus lanceolatus|Epinephelus lanceolatus]]'' (Giant grouper) | Image:Georgia Aquarium - Giant Grouper.jpg|''[[commons:Epinephelus lanceolatus|Epinephelus lanceolatus]]'' (Giant grouper) | ||
</gallery> | </gallery> | ||
− | |||
=== Optional gallery attributes === | === Optional gallery attributes === | ||
454行目: | 451行目: | ||
== Row of images that will wrap to browser width == | == Row of images that will wrap to browser width == | ||
− | + | The only thing that works for a row of images with varying widths is not to use "thumb" or "left" or "none". | |
If "thumb" is not used (and thus no captions) a row of images will wrap to the browser width. | If "thumb" is not used (and thus no captions) a row of images will wrap to the browser width. | ||
If necessary, narrow the browser window to see the images wrap to the next row. | If necessary, narrow the browser window to see the images wrap to the next row. | ||
477行目: | 474行目: | ||
[[File:Example.jpg|220px]] | [[File:Example.jpg|220px]] | ||
[[File:Example.jpg|175px]] | [[File:Example.jpg|175px]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Some wiki farms do not have all gallery options (such as "widths"). | Some wiki farms do not have all gallery options (such as "widths"). | ||
Also, sometimes one wants varying widths for images in a row. | Also, sometimes one wants varying widths for images in a row. | ||
− | Outside of a gallery | + | Outside of a gallery it is impossible to have individual captions for images in a row of images that will wrap to the browser width. |
− | Try it and see. Nothing | + | Try it and see. Nothing works. Images will either overlap stuff on the right, or force a horizontal scroll bar. |
Using a left float ("left") for some images, combined with "none" for some of the images, will not work consistently either, especially if there is also a right sidebar of images. | Using a left float ("left") for some images, combined with "none" for some of the images, will not work consistently either, especially if there is also a right sidebar of images. | ||
578行目: | 549行目: | ||
If this wiki option is not enabled, the image will not be embedded but rendered as a textual link to the external site, just like above. | If this wiki option is not enabled, the image will not be embedded but rendered as a textual link to the external site, just like above. | ||
− | == | + | == See also == |
*[[w:Wikipedia:Extended image syntax|Wikipedia:Extended image syntax]] | *[[w:Wikipedia:Extended image syntax|Wikipedia:Extended image syntax]] |