"틀:기본정보테이블"의 두 판 사이의 차이

광주문화예술인문스토리플랫폼
이동: 둘러보기, 검색
1번째 줄: 1번째 줄:
 
<includeonly>
 
<includeonly>
 +
    {{#if:{{{iconURL|}}}|
 +
    <div class="etb-img-box">
 +
        <img src="{{{iconURL}}}" alt="{{{title|항목 이미지}}}"/>
 +
    </div>
 +
    |}}
 +
    <h2>기본 정보</h2>
 +
    <table class="infobox">
 +
        <!-- 필드 데이터 표시 -->
 +
        {{#if:{{{1|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{1}}}|=|0}}</th>
 +
            <td>{{#explode:{{{1}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{2|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{2}}}|=|0}}</th>
 +
            <td>{{#explode:{{{2}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{3|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{3}}}|=|0}}</th>
 +
            <td>{{#explode:{{{3}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{4|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{4}}}|=|0}}</th>
 +
            <td>{{#explode:{{{4}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{5|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{5}}}|=|0}}</th>
 +
            <td>{{#explode:{{{5}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{6|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{6}}}|=|0}}</th>
 +
            <td>{{#explode:{{{6}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{7|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{7}}}|=|0}}</th>
 +
            <td>{{#explode:{{{7}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{8|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{8}}}|=|0}}</th>
 +
            <td>{{#explode:{{{8}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{9|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{9}}}|=|0}}</th>
 +
            <td>{{#explode:{{{9}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{10|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{10}}}|=|0}}</th>
 +
            <td>{{#explode:{{{10}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{11|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{11}}}|=|0}}</th>
 +
            <td>{{#explode:{{{11}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{12|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{12}}}|=|0}}</th>
 +
            <td>{{#explode:{{{12}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{13|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{13}}}|=|0}}</th>
 +
            <td>{{#explode:{{{13}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{14|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{14}}}|=|0}}</th>
 +
            <td>{{#explode:{{{14}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{15|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{15}}}|=|0}}</th>
 +
            <td>{{#explode:{{{15}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{16|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{16}}}|=|0}}</th>
 +
            <td>{{#explode:{{{16}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{17|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{17}}}|=|0}}</th>
 +
            <td>{{#explode:{{{17}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{18|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{18}}}|=|0}}</th>
 +
            <td>{{#explode:{{{18}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{19|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{19}}}|=|0}}</th>
 +
            <td>{{#explode:{{{19}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{20|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{20}}}|=|0}}</th>
 +
            <td>{{#explode:{{{20}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{21|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{21}}}|=|0}}</th>
 +
            <td>{{#explode:{{{21}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{22|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{22}}}|=|0}}</th>
 +
            <td>{{#explode:{{{22}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{23|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{23}}}|=|0}}</th>
 +
            <td>{{#explode:{{{23}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{24|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{24}}}|=|0}}</th>
 +
            <td>{{#explode:{{{24}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{25|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{25}}}|=|0}}</th>
 +
            <td>{{#explode:{{{25}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{26|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{26}}}|=|0}}</th>
 +
            <td>{{#explode:{{{26}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{27|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{27}}}|=|0}}</th>
 +
            <td>{{#explode:{{{27}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{28|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{28}}}|=|0}}</th>
 +
            <td>{{#explode:{{{28}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{29|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{29}}}|=|0}}</th>
 +
            <td>{{#explode:{{{29}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
       
 +
        {{#if:{{{30|}}}|
 +
        <tr>
 +
            <th>{{#explode:{{{30}}}|=|0}}</th>
 +
            <td>{{#explode:{{{30}}}|=|1}}</td>
 +
        </tr>
 +
        |}}
 +
    </table>
 +
</includeonly><includeonly>
 
     {{#if:{{{이름|}}}|{{#if:{{{iconURL|}}}|
 
     {{#if:{{{이름|}}}|{{#if:{{{iconURL|}}}|
 
     <div class="etb-img-box">
 
     <div class="etb-img-box">

2025년 6월 12일 (목) 16:38 판


템플릿 사용 예제

기본 정보

이름 한국광기술원테스트
한자명 한국광기술원(한자)
영문명 한국광기술원(영문)
이칭 광기술원, KOPTI
형성시기 2000년 1월
종류 기술원
국가유산 지정/등록 여부





{{기본정보테이블 
|이름=한국광기술원
|한자명=한국광기술원(한자)
|영문명=한국광기술원(영문)
|이칭=광기술원, KOPTI
|종류=기술원
|형성시기=2000년 1월
|소재지=광주광역시 북구 첨단벤처로 108번길 9
|위도(latitude)=35.1599578
|경도(longitude)=126.8523582
|국가유산 지정/등록 여부=무
|InfoURL=https://public.aks.ac.kr/~gwangju/wiki/index.php/한국광기술원
|iconURL=https://dh.aks.ac.kr/~metaArchive/gwangju/2024/한국광기술원.jpg
}}

위 예제는 광주 충장로에 대한 정보를 표시하는 템플릿 사용 예시입니다. 필요한 필드만 채우면 해당 정보가 표시되고, 값이 없는 필드는 표시되지 않습니다.