「ヘルプ:Images/ja」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
517行目: | 517行目: | ||
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. | ||
− | + | === Text link to image's file description page === | |
− | + | ||
+ | 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}}|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}}|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行目: | 581行目: | ||
[[File:Wiki.png|50px|link=]] | [[File:Wiki.png|50px|link=]] | ||
− | |||
== Requisites == | == Requisites == | ||
572行目: | 603行目: | ||
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 {{ | + | 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. |