틀:둘러보기 상자/설명문서

해시넷
이동: 둘러보기, 검색

... 이 문서는 틀: 둘러보기 상자에 대한 [[위키백과 : 설명문서설 명]]입니다. '... ㅏ.
여기에는 둘 사용법, 분류 등 원래의 {{{본문2}}}에는 포함되지 않는 내용을 담고 있습니다
}}

}}{{ #if; ||

[[분류:

문서

}} 설명문서]]

}}

| 틀:기본정렬 : 둘러보기 상자/설명문서|

}} {{#invoke:Message box|ombox}}

{{#invoke:Lua banner|main}} 틀:Template display 틀:둘러보기 상자 모음

둘러보기 틀의 목적은 위키백과:둘러보기 틀을 참고해주세요.

기본 예제[편집]

{{둘러보기 상자
|이름 = 
|제목 = 
|내용속성 = 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는 틀이 문서 내에 단독으로 있으면 펼침으로 복수라면 접음으로 되는 자동 설정이고, plainoff는 [숨기기] 링크가 사라지고 펼침으로 되는 설정입니다. plainoff의 차이점은 제목의 가운데 정렬에 약간의 차이가 있는데, plain이 좀 더 오른쪽으로 치우친 가운데 정렬을 해줍니다.
모양
제목모양: 둘러보기 상자의 제목 모양을 나타냅니다.
묶음모양: 둘러보기 상자의 묶음 모양을 나타냅니다.
윗글모양: 둘러보기 상자의 윗글 모양을 나타냅니다.
아랫글모양: 둘러보기 상자의 아랫글 모양을 나타냅니다.
그림
오른쪽에 그림이 보입니다.
왼쪽그림
왼쪽에 그림이 보입니다.

예제[편집]

코드[편집]

{{둘러보기 상자
|이름 = {{subst:PAGENAME}}
|제목 = [[로망스어군]]의 주요 언어
|내용속성 = hlist
|내용1 = 
* [[스페인어]]
* [[이탈리아어]]
* [[포르투갈어]]
* [[프랑스어]]
}}<noinclude>
[[분류:로망스어군]]
</noinclude>

결과[편집]

{{#invoke:Navbox|navbox}}

여러 그룹으로 나뉜 경우[편집]

  • 자세한 설명은 영어 위키백과의 en:Template:Navbox를 참조하세요.
  • 묶음1, 내용1, 묶음2, 내용2, ... 묶음60, 내용60 을 사용해서 그룹을 나눈다. (총 50개 그룹까지 가능합니다.)
  • 묶음1, 내용2 등은 생략하면 해당하는 내용은 100% 폭으로 중앙정렬되어 나온다.
  • 예제
{{둘러보기 상자
|이름 = 
|제목 = 
|내용속성 = hlist

|그림 = 
|왼쪽그림 = 

|윗글 = 

|묶음1 = 
|내용1 = 

|묶음2 = 
|내용2 = 

 ·
 ·
 ·

|묶음60 = 
|내용60 = 

|아랫글 = 
}}<noinclude>
[[분류: ... ]]
</noinclude>
  • 하나의 그룹 안에 세부 그룹을 만들고 싶으면 {{둘러보기 상자|중첩}}을 사용하면 됩니다.
  • 다단으로 내용을 적으려면 둘러보기 상자 다단을 사용하면 됩니다.
  • 폭 조정은 너비=80%처럼 하면 됩니다. 하지만 기본 설정을 유지하는 것이 좋습니다.
  • 제목 배경 색상은 색상=#abcdef처럼 하면 되지만, 기본 색상을 유지하는 것이 좋습니다.

틀데이터[편집]

틀:TemplateDataHeader <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": "80px", "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": "80px", "type": "wiki-file-name" }, "이름": { "label": "이름", "description": "The name of the template. Needed for \"View • Talk • Edit\" links to work properly.", "type": "string", "default": "둘러보기 상자/설명문서{{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>

넘겨주기[편집]

같이 보기[편집]