매뉴얼:링크가 걸린 그림

This page is a translated version of the page Manual:Linked images and the translation is 18% complete.
Outdated translations are marked like this.

Images기본적으로 MediaWiki에서는 사용자가 이미지를 클릭할 때 라이센스 정보, 업로드 기록, 기여자 및 최대 해상도 버전을 즉시 사용할 수 있도록 설명 페이지로 연결됩니다.

그러나 필요한 몇 가지 해결 방법이 있습니다.

도움말:그림 로 문서화된 구문을 사용하여 이미지에서 직접 내부 또는 외부 링크가 가능합니다.


In your wikicode:

[[Image:Wiki.png|50px|link=MediaWiki]]

This will make a 50px width picture with a link to the page MediaWiki:

If you put the link empty, the image will no longer be clickable.

[[Image:Wiki.png|50px|link=]]


External image syntax

If you enable $wgAllowExternalImages (which allows external images from any domain) or $wgAllowExternalImagesFrom (which restricts the list of domains), anyone can then easily create an "external" link to an "external" image. External simply means: using the full URL rather than a local link, so you can link locally, but you need to use the full URL. The plainlinks class is used to remove the "external link" icon:

After enabling $wgAllowExternalImages , you can also embed an image by simply typing the URL of the image.

For example,
https://domain.com/images/image_file.png
will display the image on screen.
<span class="plainlinks">[https://linktopage https://linktoimage]</span>

So for example, were external images allowed here, you could link to the main page with https://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png using wikicode like:

<span class="plainlinks">[{{fullurl:MediaWiki}} https://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png]</span>

This has the disadvantage of not registering the link, or the image use, as well as not being easily portable to forks and mirrors.

Raw HTML

If you enable $wgRawHtml , you can use ‎<img> tags freely, but this method is highly insecure. On prior versions of MediaWiki you could have used the Manual:$wgAllowImageTag (1.42 에서 제거됨) option which allows <img> and is more secure than raw HTML.

There are, however, some extensions to make it safer, see Manual:$wgRawHtml#Related_Extensions for details.

ImageMap extension

Extension:ImageMap can be deployed to enable more advanced customization of where an image links to, such as specific pixels pointing to specific places.

참조 항목