이 틀에서 사용하는 html 문법은 나무위키에서 권장되지 않는 문법입니다. 향후 지원 중단 가능성이 있으며, 지원 중단 시 정상적으로 출력되지 않을 수 있습니다.
이 틀은 별도의 업로드 없이 위키미디어 공용의 이미지를 가져오는 틀입니다. 위키미디어 공용에서 변경이 발생하면 즉시 반영됩니다.
2. 본문에 넣는 방법[편집]
[include(틀:위키미디어 공용,변수이름=변수값,옵션=옵션1&옵션2=옵션2값&옵션3)]
이름
| 기본값
| 설명
|
@
파일이름
@
| 필수
| 파일 이름을 입력합니다.
|
@
너비
@
| 300
| 표시될 너비를 px 단위로 숫자만 입력합니다. 이미지는 너비에 맞게 크기 조정되어 표시됩니다.
|
@
높이
@
| 150
| 표시될 높이를 px 단위로 숫자만 입력합니다. 이미지 크기에 영향을 주지 않습니다.
|
@
옵션
@
| 없음
| 옵션을 & 기호로 분리해서 입력합니다. 옵션에 값이 있는 경우 &옵션이름=값 형태로 입력합니다.
|
옵션 이름
| 옵션 설명
|
stretch
| 값: 없음
이미지의 비율을 유지하지 않고 지정한 크기에 맞춥니다.
|
align
| 값: left, center, right
이미지가 정렬될 위치를 지정합니다.
|
[include(틀:위키미디어 공용,파일이름=Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg,너비=500,높이=400)]
|
{{{#!html <div style="display: inline-block; width: auto; height: 100%; max-width: 500; min-width: 500; max-height: 400; min-height: 400;"><iframe width="500" height="400" frameborder="0" style="border:0" src="//wikicommons.namuwikiuserextension.host/embed/Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg?width=500&height=400&" allowfullscreen></iframe></div> }}}
|
[include(틀:위키미디어 공용,파일이름=Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg,너비=100,높이=200,옵션=stretch)]
|
{{{#!html <div style="display: inline-block; width: auto; height: 100%; max-width: 100; min-width: 100; max-height: 200; min-height: 200;"><iframe width="100" height="200" frameborder="0" style="border:0" src="//wikicommons.namuwikiuserextension.host/embed/Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg?width=100&height=200&stretch" allowfullscreen></iframe></div> }}}
|
[include(틀:위키미디어 공용,파일이름=Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg,너비=200,높이=100,옵션=stretch)]
|
{{{#!html <div style="display: inline-block; width: auto; height: 200%; max-width: 200; min-width: 200; max-height: 100; min-height: 100;"><iframe width="200" height="100" frameborder="0" style="border:0" src="//wikicommons.namuwikiuserextension.host/embed/Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg?width=200&height=100&stretch" allowfullscreen></iframe></div> }}}
|
[include(틀:위키미디어 공용,파일이름=Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg,너비=600,높이=400,옵션=align=left)]
|
{{{#!html <div style="display: inline-block; width: auto; height: 100%; max-width: 600; min-width: 600; max-height: 400; min-height: 400;"><iframe width="600" height="400" frameborder="0" style="border:0" src="//wikicommons.namuwikiuserextension.host/embed/Stubai_-_Tiroler_Bergschaf_-BT-_01.jpg?width=600&height=400&align=left" allowfullscreen></iframe></div> }}}
|
라이센스 조건을 만족하는 파일만 삽입되는 것이 아니기 때문에 사용시 별도로 적용되는 라이센스의 조건을 확인해야 합니다.
틀에 삽입할 때는 위키미디어 공용 틀이 아닌 이미지 업로드 기능을 사용하시기 바랍니다.
이 문서의 내용 중 전체 또는 일부는 2023-12-28 21:06:09에 나무위키
틀:위키미디어 공용 문서에서 가져왔습니다.