「ヘルプ:Images/ja」を編集中

移動先: 案内検索

警告: ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。ログインまたはアカウントを作成すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。

この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 編集中の文章
1行目: 1行目:
<languages/>
+
<languages />
 
{{TNT|PD Help Page}}
 
{{TNT|PD Help Page}}
 
このページでは、ウィキを編集する際の'''画像'''の構文を説明します。
 
このページでは、ウィキを編集する際の'''画像'''の構文を説明します。
11行目: 11行目:
 
既定では以下のファイル形式に対応しています:
 
既定では以下のファイル形式に対応しています:
  
* .jpgや.jpeg : 標準JPEGフォーマットで圧縮されたビットマップ画像(この非可逆フォーマットは、写真に最も適しています)
+
* .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]]''形式のビットマップ画像("W3 Consortium"で指定されています)
+
* .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 : タグ付けされた画像フォーマット Often used for high-resolution archival photographs. Often used with {{ll|Extension:PagedTiffHandler}}.
+
* .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''' および '''border'''|float=no|inline=yes|render caption=no}}
+
{{ {{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''' または '''thumbnail'''|float=yes|inline=no|render caption=yes}}
+
{{ {{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行目:
 
例:
 
例:
  
<source lang="moin">
+
<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>"
File:Using Firefox.pdf|page=72
 
 
</gallery>
 
</gallery>
</source>
+
</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}}"
File:Using Firefox.pdf|page=72
 
 
</gallery>
 
</gallery>
  
332行目: 330行目:
 
例:
 
例:
  
<source lang="moin">
+
<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>
</source>
+
</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 ==
  
One way that works for a row of images with varying widths is not to use "thumb" or "left" or "none".
+
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]]
 
'''To wrap images of varying widths with captions''' it is necessary to use div HTML for an unordered list. Along with <code>style="display: inline-block;"</code>. For more info and ideas see: [http://www.sitepoint.com/give-floats-the-flick-in-css-layouts Give Floats the Flick in CSS Layouts].
 
 
<source lang="html">
 
<div><ul>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|220px|Caption 1]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|100px|Caption 2]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|150px|Caption 3]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|250px|Caption 4]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|200px|Caption 5]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|50px|Caption 6]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|220px|Caption 7]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|175px|Caption 8]] </li>
 
</ul></div>
 
</source>
 
 
<div><ul>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|220px|Caption 1]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|100px|Caption 2]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|150px|Caption 3]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|250px|Caption 4]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|200px|Caption 5]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|50px|Caption 6]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|220px|Caption 7]] </li>
 
<li style="display: inline-block;"> [[File:Example.jpg|thumb|none|175px|Caption 8]] </li>
 
</ul></div>
 
  
 
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, or the div HTML, it is impossible to have individual captions for images in a row of images that will wrap to the browser width.
+
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 else using wikitext works correctly. Images will either overlap stuff on the right, or force a horizontal scroll bar.  
+
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.
517行目: 488行目:
 
By default an image links to its file description page.
 
By default an image links to its file description page.
 
The "link=" option modifies this behavior to link to another page or website, or to turn off the image's linking behavior.
 
The "link=" option modifies this behavior to link to another page or website, or to turn off the image's linking behavior.
 +
Alternatively, you can create a text link to an image's description page or to the image itself.
  
Alternatively, you can create a text link to a file description page or to the file itself.
+
=== Text link to image's file description page ===
See {{ll|Help:Linking to files}}.
+
 
 +
Use a '''colon''' (<code>:</code>) before <code>{{ns:image}}:</code> to link to image's file description page:
 +
 
 +
{| cellpadding=10px
 +
|
 +
[[:{{ns:image}}:{{mediawiki:image_sample}}]]
 +
|
 +
<nowiki>[[</nowiki>:{{ns:image}}:{{mediawiki:image_sample}}]]
 +
|-
 +
|
 +
[[:{{ns:image}}:{{mediawiki:image_sample}}{{!}}Sunflowers]]
 +
|
 +
<nowiki>[[</nowiki>:{{ns:image}}:{{mediawiki:image_sample}}&#124;Sunflowers]]
 +
|}
 +
 
 +
=== Text link to actual image ===
 +
 
 +
Use '''pseudo-namespace''' "{{ns:media}}" for a text link to the actual image:
 +
 
 +
{| cellpadding=10px width=90% align=center
 +
|
 +
[[{{ns:media}}:{{mediawiki:image_sample}}]]
 +
|
 +
<nowiki>[[</nowiki>{{ns:media}}:{{mediawiki:image_sample}}]]
 +
|-
 +
|
 +
[[{{ns:media}}:{{mediawiki:image_sample}}{{!}}Sunflowers]]
 +
|
 +
<nowiki>[[</nowiki>{{ns:media}}:{{mediawiki:image_sample}}&#124;Sunflowers]]
 +
|}
 +
 
 +
(If above gets you instead a text link to the image's file description, not a link to the actual image, perhaps your wiki's namespaces are configured out of compliance with this feature?)
  
 
=== Display image, link it to another page or website ===
 
=== Display image, link it to another page or website ===
549行目: 552行目:
  
 
[[File:Wiki.png|50px|link=]]
 
[[File:Wiki.png|50px|link=]]
 
  
 
== Requisites ==
 
== Requisites ==
572行目: 574行目:
 
which renders as: [http://www.example.com/some/image.png Example '''<del>rich</del>''' ''<ins>link text<ins>'' here.]
 
which renders as: [http://www.example.com/some/image.png Example '''<del>rich</del>''' ''<ins>link text<ins>'' here.]
  
If it is enabled on your wiki (see {{ll|Manual:$wgAllowExternalImages}}), you can also embed external images. To do that, simply insert the image's url:
+
If it is enabled on your wiki (see {{mediawiki|Manual:$wgAllowExternalImages}}), you can also embed external images. To do that, simply insert the image's url:
 
<pre>http://url.for/some/image.png</pre>
 
<pre>http://url.for/some/image.png</pre>
 
Currently, embedded images cannot be resized, but they may be formatted by surrounding MediaWiki markup or HTML/CSS code.
 
Currently, embedded images cannot be resized, but they may be formatted by surrounding MediaWiki markup or HTML/CSS code.
578行目: 580行目:
 
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]]

ひつじ小屋別館2代目への投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細はひつじ小屋別館2代目:著作権を参照)。 著作権保護されている作品は、許諾なしに投稿しないでください!

このページを編集するには、下記の確認用の質問に回答してください (詳細):

取り消し | 編集の仕方 (新しいウィンドウで開きます)