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

항공위키
편집 요약 없음
편집 요약 없음
(같은 사용자의 중간 판 10개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<noinclude>
<noinclude>
{{#template_params:동영상 (label=유투브 주소(Core Only))|설명 (label=동영상 캡션, 설명)|너비 (label=width)}}
{{#template_params:동영상 (label=유투브 주소(Core Only))|설명 (label=동영상 캡션, 설명)|스타일 (label=스타일)}}</noinclude><includeonly><div class="mov_box thumbinner" {{#if:{{{스타일|}}} | style="{{{스타일|}}}" }}>{{{동영상|}}} {{#if:{{{동영상|}}} | {{{설명|}}} }}</div></includeonly>
</noinclude><includeonly><div class="mov_box" {{#if:{{{너비|}}} | style="width: {{{너비|}}}" }}>{{{동영상|}}} {{#if:{{{동영상|}}} | {{{설명|}}} }}</div></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
16번째 줄: 15번째 줄:
"label": "설명",
"label": "설명",
"description": "동영상 캡션, 설명",
"description": "동영상 캡션, 설명",
"required": true
"required": true,
"example": "B737 사고 장면",
"type": "line"
},
},
"너비": {
"스타일": {
"label": "너비",
"label": "스타일",
"description": "동영상 너비(Wdith), 비우면 default 400px",
"description": "Width 등",
"example": "400px",
"example": "width: 300px; float: right;",
"type": "line",
"type": "line",
"required": true
"required": true
}
}
},
},
"description": "유투브 동영상 삽입 , 주소는 Core 주소만",
"description": "유투브 동영상 삽입 틀로 동영상 항목에는 <youtube>3_dkDYRH</youtube> 형태로 입력하고 필요 시 width, float 등의 style을 지정할 수 있다. 스타일 지정하지 않으면 width는 400px다.",
"format": "block"
"format": "block",
"paramOrder": [
"동영상",
"설명",
"스타일"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

2021년 9월 6일 (월) 14:24 판

"동영상" 틀입니다.

다음 형식으로 호출해야 합니다:

{{동영상
|동영상=
|설명=
|스타일=
}}

틀 텍스트를 보려면 문서를 편집하세요.

유투브 동영상 삽입 틀로 동영상 항목에는 <youtube>3_dkDYRH</youtube> 형태로 입력하고 필요 시 width, float 등의 style을 지정할 수 있다. 스타일 지정하지 않으면 width는 400px다.

틀 변수

이 틀은 변수마다 줄바꿈을 하여 쓰는 것이 권장됩니다.

변수설명형식상태
동영상동영상

유투브 동영상 주소

예시
<youtube>7FKSksd</youtube>
짧은 문구필수
설명설명

동영상 캡션, 설명

예시
B737 사고 장면
짧은 문구필수
스타일스타일

Width 등

예시
width: 300px; float: right;
짧은 문구필수