틀:둘러보기 상자/설명문서
스크립트 오류: "" 모듈이 없습니다. 스크립트 오류: "" 모듈이 없습니다.
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
| 이 틀은 루아를 사용합니다. |
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
![]() | 이 틀은 데스크톱 전용으로, 위키백과의 모바일 뷰에 표시되지 않습니다. 설명에 대해서는 설명문서를 참고하십시오. |
<templatestyles src="Hlist/styles.css"></templatestyles><templatestyles src="Plainlist/styles.css"></templatestyles><templatestyles src="모듈:Sidebar/styles.css"></templatestyles>
| 둘러보기 상자 모음 |
|---|
|
| <templatestyles src="Hlist/styles.css"></templatestyles><templatestyles src="Module:Navbar/styles.css"></templatestyles> |
둘러보기 틀의 목적은 위키백과:둘러보기 틀을 참고해주세요.
기본 예제
[원본 편집]{{둘러보기 상자
|이름 =
|제목 =
|내용속성 = hlist
|내용1 =
* 항목 1
* 항목 2
* 항목 3
}}
속성
[원본 편집]주요 속성
[원본 편집]- 이름
- 틀의 이름입니다. "보기 ·토론 · 편집 · 역사"가 적절하게 해당 틀에 달리기 위해서 필요합니다. 구체적으로 지정하지 않고 자동으로 달리게 하려면 <
{{subst:PAGENAME}}를 사용하면 됩니다.
- 제목
- 틀 상단의 긴 상자에 나올 글입니다. 틀의 주제를 나타냅니다.
- 내용
- 틀에 속할 내용입니다. 목록을 입력할 때에는
|내용속성 = hlist를 사용하여 다음과 같이 작성합니다.
|내용속성 = hlist
|내용1 =
* 항목 1
* 항목 2
* 항목 3
- {{가로목록}}을 이용하여 다음과 같이 입력할 수도 있습니다. ("
{{가로목록|" 줄이 아닌 다음 줄부터 목록을 넣어야 합니다.)
|내용1 = {{가로목록|
* 항목 1
* 항목 2
* 항목 3
}}
- 윗글, 아랫글
- 틀의 윗글과 아랫글에 목록을 입력할 때에는
|전체속성 = hlist를 사용하여 다음과 같이 작성합니다.
|전체속성 = hlist
|윗글 =
* 항목 1
* 항목 2
* 항목 3
|내용1 =
* 항목 1
* 항목 2
* 항목 3
|아랫글 =
* 항목 1
* 항목 2
* 항목 3
선택적 속성
[원본 편집]- 상태
- 틀을 접게 할지 말지를 지정할 수 있습니다.
autocollapse(자동),uncollapsed(펼침),collapsed(접음),plain,off이 있으며, 기본 속성은autocollapse입니다.autocollapse는 틀이 문서 내에 단독으로 있으면 펼침으로 복수라면 접음으로 되는 자동 설정이고,plain과off는 [숨기기] 링크가 사라지고 펼침으로 되는 설정입니다.plain과off의 차이점은 제목의 가운데 정렬에 약간의 차이가 있는데,plain이 좀 더 오른쪽으로 치우친 가운데 정렬을 해줍니다.
- 모양
- 제목모양: 둘러보기 상자의 제목 모양을 나타냅니다.
- 묶음모양: 둘러보기 상자의 묶음 모양을 나타냅니다.
- 윗글모양: 둘러보기 상자의 윗글 모양을 나타냅니다.
- 아랫글모양: 둘러보기 상자의 아랫글 모양을 나타냅니다.
- 그림
- 오른쪽에 그림이 보입니다.
- 왼쪽그림
- 왼쪽에 그림이 보입니다.
예제
[원본 편집]코드
[원본 편집]{{둘러보기 상자
|이름 = {{subst:PAGENAME}}
|제목 = [[로망스어군]]의 주요 언어
|내용속성 = hlist
|내용1 =
* [[스페인어]]
* [[이탈리아어]]
* [[포르투갈어]]
* [[프랑스어]]
}}<noinclude>
[[분류:로망스어군]]
</noinclude>
결과
[원본 편집]여러 그룹으로 나뉜 경우
[원본 편집]- 자세한 설명은 영어 위키백과의 en:Template:Navbox를 참조하세요.
- 묶음1, 내용1, 묶음2, 내용2, ... 묶음60, 내용60 을 사용해서 그룹을 나눈다. (총 50개 그룹까지 가능합니다.)
- 묶음1, 내용2 등은 생략하면 해당하는 내용은 100% 폭으로 중앙정렬되어 나온다.
- 예제
{{둘러보기 상자
|이름 =
|제목 =
|내용속성 = hlist
|그림 =
|왼쪽그림 =
|윗글 =
|묶음1 =
|내용1 =
|묶음2 =
|내용2 =
·
·
·
|묶음60 =
|내용60 =
|아랫글 =
}}<noinclude>
[[분류: ... ]]
</noinclude>
- 하나의 그룹 안에 세부 그룹을 만들고 싶으면
{{둘러보기 상자|중첩}}을 사용하면 됩니다. - 다단으로 내용을 적으려면 {{둘러보기 상자 다단}}을 사용하면 됩니다.
- 폭 조정은
너비=80%처럼 하면 됩니다. 하지만 기본 설정을 유지하는 것이 좋습니다. - 제목 배경 색상은
색상=#abcdef처럼 하면 되지만, 기본 색상을 유지하는 것이 좋습니다.
틀데이터
[원본 편집]<templatedata> { "params": { "상태": { "label": "상태", "description": "Controls when a navbox is expanded or collapsed", "example": "autocollapse", "suggestedvalues": [ "autocollapse", "collapsed", "expanded", "plain", "off" ], "default": "autocollapse", "suggested": true }, "제목": { "label": "제목", "description": "Text in the title bar; centered in the top row of the table. Usually the template's topic.", "example": "Widget stuff", "suggested": true }, "윗글": { "label": "윗글", "description": "Full-width cell displayed between the titlebar and first group/list, i.e. 윗글 the template's body (groups, lists and image)", "type": "string", "suggested": true }, "그림": { "label": "그림", "description": "Image to be displayed in a cell 아랫글 the title and to the right of the body", "example": "파일:XX.jpg", "type": "wiki-file-name", "suggested": true }, "묶음1": { "label": "Group 1", "description": "If specified, text appears in a header cell displayed to the left of list 1. If omitted, list 1 uses the full width of the table.", "suggested": true }, "내용1": { "label": "List 1", "description": "Body of the template; usually a list of links. Format is inline. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter.\nEntries should be separated using a newline and an asterisk. If two asterisks are used, it provides nesting within the previous entry with brackets.", "required": true, "suggested": true }, "묶음2": { "suggested": true }, "내용2": { "suggested": true }, "내용3": { "suggested": true }, "묶음3": { "suggested": true }, "묶음4": {}, "내용4": {}, "아랫글": { "label": "아랫글", "description": "Full-width cell displayed 아랫글 the template's body.", "suggested": true }, "왼쪽그림": { "label": "Image left", "description": "Image to be displayed in a cell 아랫글 the title and to the left of the body. For the image to display properly, 내용1 parameter must be specified and no groups can be specified.", "example": "파일:XX.jpg", "type": "wiki-file-name" }, "이름": { "label": "이름", "description": "The name of the template. Needed for \"View • Talk • Edit\" links to work properly.", "type": "string", "default": "{{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}", "suggested": true }, "내용속성": { "label": "List class", "description": "CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.", "example": "hlist", "type": "string" }, "안내바": { "label": "안내바 status", "example": "plain, off", "type": "string" }, "테두리": { "label": "테두리 status", "example": "child, subgroup, none", "type": "string" }, "전체모양": {}, "기본모양": {}, "제목모양": {}, "묶음모양": {}, "묶음1모양": {}, "묶음너비": {}, "내용모양": {}, "내용1모양": {}, "내용여백": {}, "홀수모양": {}, "짝수모양": {}, "홀짝": { "suggestedvalues": [ "swap", "even", "odd", "off" ] }, "윗글모양": {}, "아랫글모양": {}, "그림모양": {}, "왼쪽그림모양": {} }, "description": "다른 문서로 연결되는 툴러보기 상자를 만듭니다. \n모바일에서 보이지 않습니다.", "paramOrder": [ "이름", "제목", "묶음1", "내용1", "내용속성", "상태", "윗글", "아랫글", "그림", "묶음2", "내용2", "묶음3", "내용3", "묶음4", "내용4", "왼쪽그림", "안내바", "테두리", "전체모양", "기본모양", "제목모양", "묶음모양", "내용모양", "묶음1모양", "내용1모양", "묶음너비", "내용여백", "홀수모양", "짝수모양", "홀짝", "윗글모양", "아랫글모양", "그림모양", "왼쪽그림모양" ] } </templatedata>
넘겨주기
[원본 편집]같이 보기
[원본 편집]- {{둘러보기 상자 묶음}}
- {{접이식 묶음 둘러보기 상자}}
- {{틀바}}
- {{nobr}}

