잔글편집 요약 없음 |
편집 요약 없음 |
||
(같은 사용자의 중간 판 27개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
<includeonly> | <onlyinclude><includeonly>{{ if|{{{2|}}}| | ||
{{!}}- {{if |{{{rclass|}}} |class{{=}}"{{{rclass|}}}"|}} {{if |{{{rstyle|}}} |style{{=}}"{{{rstyle}}}"|}} | |||
! style{{=}}"text-align: center; {{{style|{{{style1|{{{항목style|width:30%;}}}}}}}}}" {{!}} {{{1|}}} | |||
{{!}} {{if |{{{class|}}} |class{{=}}"{{{class}}}"|}} {{if |{{{style2|{{{내용style|}}}}}} |style{{=}}"{{{style2|{{{내용style}}}}}}"|}} {{!}} {{{3|{{{2|}}}}}} | |||
{{!}}- | |||
|}}</includeonly></onlyinclude> | |||
<noinclude>{{역링크틀}} | |||
{{설명문서}} | |||
{{분류 |정보상자/위키 틀 }}</noinclude> |
2022년 11월 19일 (토) 20:31 기준 최신판
정보상자를 만들 때 사용합니다. 다음 틀과 함께 테이블 태그 안에서 사용해주세요.
- {{정보상자 그림칸}}
- {{정보상자 큰칸}}
- 틀:정보상자 선택칸
- 틀:정보상자 소제목
- 틀:정보상자 칸
사용
정보상자 칸
- |1번인자 = 항목의 제목을 입력한다.
- |2번인자 = 내용을 입력한다.
- |rstyle = 한 줄의 스타일을 지정한다.
- |항목style= 항목의 스타일을 지정한다.
- |내용style= 내용의 스타일을 지정한다.
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 칸 |제목1 |값1}} {{정보상자 칸 |제목2 |값2}} {{정보상자 칸 |본적 |경기도 }} {{정보상자 칸 |주소지|서울특별시 }} |}
- 보여지는 결과
제목1 | 값1 |
---|---|
제목2 | 값2 |
본적 | 경기도 |
주소지 | 서울특별시 |
입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 칸 |소속 |국민의힘 |rstyle=color:blue; }} {{정보상자 칸 |병역 |보충역 |항목style= width:50%; }} {{정보상자 칸 |본적 |경기도 }} {{정보상자 칸 |주소지|서울특별시 |내용style=font-weight:bold; }} |}
- 보여지는 결과
소속 | 국민의힘 |
---|---|
병역 | 보충역 |
본적 | 경기도 |
주소지 | 서울특별시 |
정보상자에서 사용
틀에서의 사용방법은 다음과 같습니다.
- 첫 번째 변수는 항목이름이 들어갑니다.
- 두 번째 변수는 항목에 대응하는 매개변수가 들어갑니다. 만약 두 번째 변수가 비었을 경우는 아무것도 출력되지 않습니다. 일반적으로는 {{{학력|}}}처럼 매개변수를 대입합니다.
- 세 번째 변수는 선택사항입니다. 만약 값을 표시할 때 "[[{{{학력|}}}]]"처럼 추가적인 문자열을 넣어야 한다면, {{{학력|}}}이 비었다고 해도 두 번째 변수에서는 "[[]]"가 입력되므로 "{{{학력|}}}"이 비었는지 검사할 수 없습니다. 이럴 때에는 두 번째 변수에 "{{{학력|}}}"을, 세 번째 변수에 "[[{{{학력|}}}]]"을 입력해줍니다.
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 칸| 이름 | {{{이름}}} }} {{정보상자 칸| 학력 | {{{학력}}} }} {{정보상자 칸| 경력 | {{{경력}}} | [[{{{경력}}}]] }} |}
- 보여지는 결과
이름 | {{{이름}}} |
---|---|
학력 | {{{학력}}} |
경력 | [[{{{경력}}}]] |
- 위키백과에서 {{정보상자}}에서 사용되는 내부 틀입니다.
이와 관련된 항목은 위키 틀에 모여있습니다.
정보상자 소제목
기본은 강조체로 나타난다. 스타일을 변경하려면ㄴ style 매개변수를 이용한다.
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 소제목 |개인정보}} {{정보상자 소제목 |개인정보 |style=font-weight: normal;}} {{정보상자 소제목 |주제 제목 |style=background:#bbf; }} |}
- 보여지는 결과
개인정보 | |
---|---|
개인정보 | |
주제 제목 |
정보상자 큰칸
1번인자에 값이 없는 경우는 칸이 나타나지 않는다.
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 큰칸 |1.큰칸 입력 칸}} {{정보상자 큰칸 |2.역사 목록 |style=font-style: italic; color: darkred;}} {{정보상자 큰칸 |{{{3.변수값없음|}}} }} {{정보상자 큰칸 |{{{변수값없음|4.기본값}}} }} |}
- 보여지는 결과
1.큰칸 입력 칸 | |
2.역사 목록 | |
4.기본값 |
정보상자 선택칸
- 틀 {{정보상자 선택칸}}은 틀 {{정보상자 칸}}으로 사용 권장합니다.
- 항목의 넓이는 기본적으로 50%이다. 이를 변경하려면 style1(혹은 style)값에 스타일 넓이를 지정할 수 있다.
- 입력한 내용
{| class="wikitable" {{st|●|w=300px}} {{정보상자 선택칸 |값1 |제목1 |style= width:50%;}} {{정보상자 선택칸 |값3 |style= font-size:12pt; color: green; text-align:center; }} |} {| class="wikitable" {{st|●|w=300px}} {{정보상자 선택칸 |값1 |제목1 |style= width:80%;}} |}
- 보여지는 결과
제목1 | 값1 |
---|---|
값3 |
제목1 | 값1 |
---|
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 선택칸 |값1 |제목1 }} {{정보상자 선택칸 |값2 |제목2 |[[값2]] }} {{정보상자 선택칸 |값3 |제목3 |style2=color: red; font-style: bold; }} {{정보상자 선택칸 |값4 }} |}
- 보여지는 결과
제목1 | 값1 |
---|---|
제목2 | 값2 |
제목3 | 값3 |
값4 |
정보상자 그림칸
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 그림칸 |미국 국기.jpg |미국 국기 |크기=200px}} {{정보상자 그림칸 |미국 휘장.png |미국의 취장 |크기=200px }} {{정보상자 그림칸 |야구 아이콘.png |야구 경기 |크기=100px}} {{정보상자 칸 |나라명 |[[미국]] }} {{정보상자 칸 |대륙명 |[[북아메리카]] }} |}
- 보여지는 결과
미국 국기 | |
미국의 취장 | |
야구 경기 | |
나라명 | 미국 |
---|---|
대륙명 | 북아메리카 |
혼합한 사용예
- 입력한 내용
{| class="wikitable" {{st|w=300px}} {{정보상자 그림칸 |Park.jpg |박정희 사진 |크기=200px}} {{정보상자 소제목 |박정희 |style = font-size:12pt; color:royalblue;}} {{정보상자 소제목 |개인 정보 |style=background:#aaf;}} {{정보상자 칸 |본적 |경기도 }} {{정보상자 큰칸 |한칸 입력 칸}} {{정보상자 큰칸 |전쟁 정보 }} {{정보상자 칸 |주소지 |서울특별시 }} {{정보상자 칸 |주소지|서울특별시 }} {{정보상자 칸 |출생지 |{{{출생지|}}} |[[{{{출생지|}}}]] }} |}
- 보여지는 결과
박정희 사진 | |
박정희 | |
---|---|
개인 정보 | |
본적 | 경기도 |
한칸 입력 칸 | |
전쟁 정보 | |
주소지 | 서울특별시 |