틀:동영상: 두 판 사이의 차이

1,048 바이트 추가됨 ,  2022년 4월 12일 (화)
편집 요약 없음
편집 요약 없음
편집 요약 없음
(같은 사용자의 중간 판 23개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<noinclude>
<noinclude>
{{#template_params:동영상 (label=유투브 주소(Core Only))|설명 (label=동영상 캡션, 설명)}}
==사용법==
</noinclude><includeonly>
"동영상(유튜브)" 틀입니다.
<div class="mov_box"><youtube>{{{동영상|}}}</youtube>{{#if:{{{동영상|}}} | <br />{{{설명|}}} }}</div></includeonly>
===소스 편집 화면===
소스 편집 화면에서는 아래와 같이 입력합니다.
<pre>
{{동영상
|동영상=<youtube>7FKSksd</youtube>
|설명=테스트 동영상입니다.
|스타일=width: 300px; float: right;
}}
 
{{#template_params:동영상 (label=유투브 주소(Core Only))|설명 (label=동영상 캡션, 설명)|스타일 (label=스타일)}}
</pre>
===시각편집기 화면===
메뉴 '넣기'에서 틀을 불러낸 후 "동영상" 입력합니다.
==틀 설명==
</noinclude><includeonly><div class="mov_box thumbinner" {{#if:{{{스타일|}}} | style="{{{스타일|}}}" }}>{{{동영상|}}}<div class="thumbcaption">{{#if:{{{동영상|}}} | {{{설명|}}} }}</div></div></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
9번째 줄: 23번째 줄:
"동영상": {
"동영상": {
"label": "동영상",
"label": "동영상",
"description": "유투브 동영상 Core 주소",
"description": "유투브 동영상 주소",
"example": "7FKSksd",
"example": "<youtube>7FKSksd</youtube>",
"type": "line",
"type": "line",
"required": true
"required": true
17번째 줄: 31번째 줄:
"label": "설명",
"label": "설명",
"description": "동영상 캡션, 설명",
"description": "동영상 캡션, 설명",
"required": true
"required": true,
"example": "B737 사고 장면",
"type": "line"
},
"스타일": {
"label": "스타일",
"description": "Width 등",
"example": "width: 300px; float: right;",
"type": "line",
"required": true,
"autovalue": "width: 203px; float: right; margin-left: 15px; clear: right;"
}
}
},
},
"description": "유투브 동영상 삽입 , 주소는 Core 주소만",
"description": "유투브 동영상 삽입 틀로 동영상 항목에는 <youtube>3_dkDYRH</youtube> 형태로 입력하고 필요 시 width, float 등의 style을 지정할 수 있다. 스타일 지정하지 않으면 width는 400px다.",
"format": "block"
"format": "block",
"paramOrder": [
"동영상",
"설명",
"스타일"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
__NOTOC__