틀:둘러보기 상자/설명문서: 두 판 사이의 차이

이삭위키
둘러보기로 이동 검색으로 이동
편집 요약 없음
158번째 줄: 158번째 줄:
{
{
"params": {
"params": {
"state": {
"상태": {
"label": "State",
"label": "상태",
"description": "Controls when a navbox is expanded or collapsed",
"description": "Controls when a navbox is expanded or collapsed",
"example": "autocollapse",
"example": "autocollapse",
172번째 줄: 172번째 줄:
"suggested": true
"suggested": true
},
},
"title": {
"제목": {
"label": "Title",
"label": "제목",
"description": "Text in the title bar; centered in the top row of the table. Usually the template's topic.",
"description": "Text in the title bar; centered in the top row of the table. Usually the template's topic.",
"example": "[[Widget stuff]]",
"example": "[[Widget stuff]]",
"suggested": true
"suggested": true
},
},
"above": {
"윗글": {
"label": "Above",
"label": "윗글",
"description": "Full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image)",
"description": "Full-width cell displayed between the titlebar and first group/list, i.e. 윗글 the template's body (groups, lists and image)",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"image": {
"그림": {
"label": "Image",
"label": "그림",
"description": "Image to be displayed in a cell below the title and to the right of the body",
"description": "Image to be displayed in a cell 아랫글 the title and to the right of the body",
"example": "[[File:XX.jpg | 80px | link= | alt= ]]",
"example": "[[File:XX.jpg | 80px | link= | alt= ]]",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
},
},
"group1": {
"묶음1": {
"label": "Group 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.",
"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
"suggested": true
},
},
"list1": {
"내용1": {
"label": "List 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.",
"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.",
202번째 줄: 202번째 줄:
"suggested": true
"suggested": true
},
},
"group2": {
"묶음2": {
"suggested": true
"suggested": true
},
},
"list2": {
"내용2": {
"suggested": true
"suggested": true
},
},
"list3": {
"내용3": {
"suggested": true
"suggested": true
},
},
"group3": {
"묶음3": {
"suggested": true
"suggested": true
},
},
"group4": {},
"묶음4": {},
"list4": {},
"내용4": {},
"below": {
"아랫글": {
"label": "Below",
"label": "아랫글",
"description": "Full-width cell displayed below the template's body.",
"description": "Full-width cell displayed 아랫글 the template's body.",
"suggested": true
"suggested": true
},
},
"imageleft": {
"왼쪽그림": {
"label": "Image left",
"label": "Image left",
"description": "Image to be displayed in a cell below the title and to the left of the body. For the image to display properly, list1 parameter must be specified and no groups can be specified.",
"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": "[[File:XX.jpg | 80px | link= | alt= ]]",
"example": "[[File:XX.jpg | 80px | link= | alt= ]]",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"name": {
"이름": {
"label": "Name",
"label": "이름",
"description": "The name of the template. Needed for \"View • Talk • Edit\" links to work properly.",
"description": "The name of the template. Needed for \"View • Talk • Edit\" links to work properly.",
"type": "string",
"type": "string",
234번째 줄: 234번째 줄:
"suggested": true
"suggested": true
},
},
"listclass": {
"내용속성": {
"label": "List class",
"label": "List class",
"description": "CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.",
"description": "CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.",
240번째 줄: 240번째 줄:
"type": "string"
"type": "string"
},
},
"navbar": {
"안내바": {
"label": "Navbar status",
"label": "안내바 status",
"example": "plain, off",
"example": "plain, off",
"type": "string"
"type": "string"
},
},
"border": {
"테두리": {
"label": "Border status",
"label": "테두리 status",
"example": "child, subgroup, none",
"example": "child, subgroup, none",
"type": "string"
"type": "string"
},
},
"bodystyle": {},
"전체모양": {},
"basestyle": {},
"기본모양": {},
"titlestyle": {},
"제목모양": {},
"groupstyle": {},
"묶음모양": {},
"group1style": {},
"묶음1모양": {},
"groupwidth": {},
"묶음너비": {},
"liststyle": {},
"내용모양": {},
"list1style": {},
"내용1모양": {},
"listpadding": {},
"내용여백": {},
"oddstyle": {},
"홀수모양": {},
"evenstyle": {},
"짝수모양": {},
"evenodd": {
"홀짝": {
"suggestedvalues": [
"suggestedvalues": [
"swap",
"swap",
269번째 줄: 269번째 줄:
]
]
},
},
"abovestyle": {},
"윗글모양": {},
"belowstyle": {},
"아랫글모양": {},
"imagestyle": {},
"그림모양": {},
"imageleftstyle": {}
"왼쪽그림모양": {}
},
},
"description": "다른 문서로 연결되는 툴러보기 상자를 만듭니다. \n모바일에서 보이지 않습니다.",
"description": "다른 문서로 연결되는 툴러보기 상자를 만듭니다. \n모바일에서 보이지 않습니다.",
"paramOrder": [
"paramOrder": [
"name",
"이름",
"title",
"제목",
"group1",
"묶음1",
"list1",
"내용1",
"listclass",
"내용속성",
"state",
"상태",
"above",
"윗글",
"below",
"아랫글",
"image",
"그림",
"group2",
"묶음2",
"list2",
"내용2",
"group3",
"묶음3",
"list3",
"내용3",
"group4",
"묶음4",
"list4",
"내용4",
"imageleft",
"왼쪽그림",
"navbar",
"안내바",
"border",
"테두리",
"bodystyle",
"전체모양",
"basestyle",
"기본모양",
"titlestyle",
"제목모양",
"groupstyle",
"묶음모양",
"liststyle",
"내용모양",
"group1style",
"묶음1모양",
"list1style",
"내용1모양",
"groupwidth",
"묶음너비",
"listpadding",
"내용여백",
"oddstyle",
"홀수모양",
"evenstyle",
"짝수모양",
"evenodd",
"홀짝",
"abovestyle",
"윗글모양",
"belowstyle",
"아랫글모양",
"imagestyle",
"그림모양",
"imageleftstyle"
"왼쪽그림모양"
]
]
}
}

2022년 4월 23일 (토) 15:20 판

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

기본 예제

{{둘러보기 상자
|이름 = 
|제목 = 
|내용속성 = 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>

결과

여러 그룹으로 나뉜 경우

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

|그림 = 
|왼쪽그림 = 

|윗글 = 

|묶음1 = 
|내용1 = 

|묶음2 = 
|내용2 = 

 ·
 ·
 ·

|묶음60 = 
|내용60 = 

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

틀데이터

다음은 시각편집기 및 다른 도구를 위한 틀데이터입니다.

둘러보기 상자의 틀데이터

다른 문서로 연결되는 툴러보기 상자를 만듭니다. 모바일에서 보이지 않습니다.

틀 변수

변수설명형식상태
이름이름

The name of the template. Needed for "View • Talk • Edit" links to work properly.

기본값
{{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}
문자열제안
제목제목

Text in the title bar; centered in the top row of the table. Usually the template's topic.

예시
[[Widget stuff]]
알 수 없음제안
Group 1묶음1

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.

알 수 없음제안
List 1내용1

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. Entries should be separated using a newline and an asterisk. If two asterisks are used, it provides nesting within the previous entry with brackets.

알 수 없음필수
List class내용속성

CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.

예시
hlist
문자열선택 사항
상태상태

Controls when a navbox is expanded or collapsed

Suggested values
autocollapse collapsed expanded plain off
기본값
autocollapse
예시
autocollapse
알 수 없음제안
윗글윗글

Full-width cell displayed between the titlebar and first group/list, i.e. 윗글 the template's body (groups, lists and image)

문자열제안
아랫글아랫글

Full-width cell displayed 아랫글 the template's body.

알 수 없음제안
그림그림

Image to be displayed in a cell 아랫글 the title and to the right of the body

예시
[[File:XX.jpg | 80px | link= | alt= ]]
파일제안
묶음2묶음2

설명 없음

알 수 없음제안
내용2내용2

설명 없음

알 수 없음제안
묶음3묶음3

설명 없음

알 수 없음제안
내용3내용3

설명 없음

알 수 없음제안
묶음4묶음4

설명 없음

알 수 없음선택 사항
내용4내용4

설명 없음

알 수 없음선택 사항
Image left왼쪽그림

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.

예시
[[File:XX.jpg | 80px | link= | alt= ]]
파일선택 사항
안내바 status안내바

설명 없음

예시
plain, off
문자열선택 사항
테두리 status테두리

설명 없음

예시
child, subgroup, none
문자열선택 사항
전체모양전체모양

설명 없음

알 수 없음선택 사항
기본모양기본모양

설명 없음

알 수 없음선택 사항
제목모양제목모양

설명 없음

알 수 없음선택 사항
묶음모양묶음모양

설명 없음

알 수 없음선택 사항
내용모양내용모양

설명 없음

알 수 없음선택 사항
묶음1모양묶음1모양

설명 없음

알 수 없음선택 사항
내용1모양내용1모양

설명 없음

알 수 없음선택 사항
묶음너비묶음너비

설명 없음

알 수 없음선택 사항
내용여백내용여백

설명 없음

알 수 없음선택 사항
홀수모양홀수모양

설명 없음

알 수 없음선택 사항
짝수모양짝수모양

설명 없음

알 수 없음선택 사항
홀짝홀짝

설명 없음

Suggested values
swap even odd off
알 수 없음선택 사항
윗글모양윗글모양

설명 없음

알 수 없음선택 사항
아랫글모양아랫글모양

설명 없음

알 수 없음선택 사항
그림모양그림모양

설명 없음

알 수 없음선택 사항
왼쪽그림모양왼쪽그림모양

설명 없음

알 수 없음선택 사항

넘겨주기

같이 보기