「ヘルプ:Images」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
123行目: | 123行目: | ||
<translate> | <translate> | ||
<!--T:45--> | <!--T:45--> | ||
− | *** '''!''' | + | *** '''!''' If you set <code>|link=|</code> (empty), then no <code>title</code> will be rendered. (See [[bugzilla:21454]].)</translate> |
<translate> | <translate> | ||
<!--T:46--> | <!--T:46--> | ||
458行目: | 458行目: | ||
<translate> | <translate> | ||
− | |||
== Rendering a gallery of images == <!--T:123--> | == Rendering a gallery of images == <!--T:123--> | ||
497行目: | 496行目: | ||
</translate> | </translate> | ||
− | < | + | <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> |
<translate> | <translate> | ||
520行目: | 518行目: | ||
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> | ||
552行目: | 549行目: | ||
</translate> | </translate> | ||
− | < | + | <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) | ||
569行目: | 566行目: | ||
File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' | File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' | ||
</gallery> | </gallery> | ||
− | </ | + | </pre> |
<translate> | <translate> | ||
627行目: | 624行目: | ||
<translate> | <translate> | ||
− | |||
=== Optional gallery attributes === <!--T:145--> | === Optional gallery attributes === <!--T:145--> | ||
709行目: | 705行目: | ||
<!--T:161--> | <!--T:161--> | ||
− | + | The only thing that works for a row of images with varying widths is not to use "thumb" or "left" or "none".</translate> | |
<translate> | <translate> | ||
<!--T:162--> | <!--T:162--> | ||
737行目: | 733行目: | ||
[[File:Example.jpg|220px]] | [[File:Example.jpg|220px]] | ||
[[File:Example.jpg|175px]] | [[File:Example.jpg|175px]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<translate> | <translate> | ||
772行目: | 742行目: | ||
<translate> | <translate> | ||
<!--T:166--> | <!--T:166--> | ||
− | 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.</translate> |
<translate> | <translate> | ||
<!--T:167--> | <!--T:167--> | ||
− | 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. |
<!--T:168--> | <!--T:168--> | ||
792行目: | 762行目: | ||
<translate> | <translate> | ||
<!--T:173--> | <!--T:173--> | ||
− | 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.</translate> |
+ | <translate> | ||
+ | <!--T:174--> | ||
+ | Alternatively, you can create a text link to an image's description page or to the image itself. | ||
+ | |||
+ | === Text link to image's file description page === <!--T:175--> | ||
+ | |||
+ | <!--T:176--> | ||
+ | Use a '''colon''' (<code>:</code>) before <code>{{ns:image}}:</code> to link to image's file description page: | ||
+ | </translate> | ||
+ | |||
+ | {| 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}}|Sunflowers]] | ||
+ | |} | ||
+ | |||
+ | <translate> | ||
+ | === Text link to actual image === <!--T:177--> | ||
+ | |||
+ | <!--T:178--> | ||
+ | Use '''pseudo-namespace''' "<tvar|media>{{ns:media}}</>" for a text link to the actual image: | ||
+ | </translate> | ||
+ | |||
+ | {| 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}}|Sunflowers]] | ||
+ | |} | ||
− | |||
− | |||
<translate> | <translate> | ||
− | <!--T: | + | <!--T:179--> |
− | + | (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?) | |
+ | </translate> | ||
+ | <translate> | ||
=== Display image, link it to another page or website === <!--T:180--> | === Display image, link it to another page or website === <!--T:180--> | ||
</translate> | </translate> | ||
841行目: | 851行目: | ||
<translate> | <translate> | ||
− | |||
== Requisites == <!--T:186--> | == Requisites == <!--T:186--> | ||