편집 요약 없음
편집 요약 없음
 
1번째 줄: 1번째 줄:
 
<table class="wikitable" style="margin: 0 auto; text-align: center; width: fit-content; border: 1px solid #ddd;">
<noinclude>
    <!-- 위 설명이 있을 경우 표시 -->
이 문서는 틀:유튜브에 대한 설명입니다.  아래는 예시입니다.
     {{#if: {{{위설명|}}} |
 
<nowiki>{{유튜브
| 유튜브 = https://www.youtube.com/watch?v=N8nGig78lNs
| 위설명 = 위쪽에 표시할 설명
| 아래설명 = 아래쪽에 표시할 설명
| 컬러1 = #F5F5F5
| 컬러2 = #333
| 배경색 = #FFFFFF
}}</nowiki>
</noinclude>
<includeonly>
<table class="wikitable" style="margin:0 auto; text-align:center; width:fit-content; border:1px solid #ddd;">
     {{#if:{{{위설명|}}}|
     <tr>
     <tr>
         <td style="background-color:{{{컬러1|#ffffff}}}; color:{{{컬러2|#000000}}}; padding:5px;">
         <td style="background-color: {{{컬러1|#ffffff}}}; color: {{{컬러2|#000000}}}; padding: 5px;">{{{위설명}}}</td>
            {{{위설명}}}
        </td>
     </tr>
     </tr>
     }}
     }}
    <!-- 콘텐츠 삽입 -->
     <tr>
     <tr>
         <td style="background-color:{{{배경색|#ffffff}}}; padding:5px; text-align:center;">
         <td style="background-color: {{{배경색|#ffffff}}}; padding: 0; text-align: center;">
             <!-- #tag 함수를 사용해 <youtube> 태그를 삽입 -->
             <div style="overflow-x: auto; white-space: nowrap; display: flex; justify-content: flex-start; align-items: center;">{{#tag:youtube|{{{유튜브}}}}}</div>
            {{#tag:youtube|{{{유튜브}}}}}
         </td>
         </td>
     </tr>
     </tr>
     {{#if:{{{아래설명|}}}|
    <!-- 아래 설명이 있을 경우 표시 -->
     {{#if: {{{아래설명|}}} |
     <tr>
     <tr>
         <td style="background-color:{{{컬러1|#ffffff}}}; color:{{{컬러2|#000000}}}; padding:5px;">
         <td style="background-color: {{{컬러1|#ffffff}}}; color: {{{컬러2|#000000}}}; padding: 5px;">{{{아래설명}}}</td>
            {{{아래설명}}}
        </td>
     </tr>
     </tr>
     }}
     }}
</table>
</table>
<div style="clear: both;"></div>
<div style="clear: both;"></div>
</includeonly>

2025년 3월 6일 (목) 06:23 기준 최신판