모듈:List/설명문서

< 모듈:List
Wikipedia>Kim6134님의 2015년 5월 26일 (화) 17:58 판

이 문서는 모듈:List에 대한 설명문서입니다.

틀:복잡한 틀 이 모듈은 여러 가지 다양한 목록들을 출력합니다. 현재 글머리기호가 있는 목록과 없는 목록, 가로목록, (숫자나 알파벳 순의) 순서목록, 가로순서목록을 지원합니다. 목록이나 개별 목록 항목들의 CSS 스타일링을 쉽게 만들어줍니다.

사용법

간단한 사용법
{{#invoke:list|함수|항목 1|항목 2|항목 3|...}}
전체 매개변수
{{#invoke:list|함수
|항목 1|항목 2|항목 3|...
|start           = start number for ordered lists
|type            = type of numbering for ordered lists
|list_style_type = type of marker for ordered lists (uses CSS)
|class           = class
|style           = style
|list_style      = style for the list
|item_style      = style for all list items
|item1_style     = style for the first list item |item2_style = style for the second list item |...
|item1_value     = value for the first list item |item2_value = value for the second list item |...
|indent          = indent for horizontal lists
}}
Arguments passed from parent template
{{#invoke:list|함수}}
함수
함수명 목적 출력 예시 함수가 사용된 틀
bulleted 기호 목록
  • 항목 1
  • 항목 2
  • 항목 3
{{bulleted list}}
unbulleted 기호 없는 목록
  • 항목 1
  • 항목 2
  • 항목 3
{{기호없는 목록}}
horizontal 기호가 있는 가로목록
  • 항목 1
  • 항목 2
  • 항목 3
{{hlist}}
ordered 순서 목록 (숫자나 알파벳 순)
  1. 항목 1
  2. 항목 2
  3. 항목 3
{{ordered list}}
horizontal_ordered 가로 순서 목록
  1. 항목 1
  2. 항목 2
  3. 항목 3

용례

기호 목록
Code Result
{{#invoke:list|bulleted|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|bulleted|First item|Second item|Third item|item_style=color:blue;}}
  • First item
  • Second item
  • Third item
{{#invoke:list|bulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • First item
  • Second item
  • Third item
기호 없는 목록
Code Result
{{#invoke:list|unbulleted|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • First item
  • Second item
  • Third item
가로 목록
Code Result
{{#invoke:list|horizontal|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|horizontal|First item|Second item|Third item|indent=2}}
  • First item
  • Second item
  • Third item
순서 있는 목록
Code Result
{{#invoke:list|ordered|First item|Second item|Third item}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|start=3}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|type=i}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}
  1. First item
  2. Second item
  3. Third item
순서 있는 가로 목록
Code Result
{{#invoke:list|horizontal_ordered|First item|Second item|Third item}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|horizontal_ordered|First item|Second item|Third item|start=3}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|horizontal_ordered|First item|Second item|Third item|indent=2}}
  1. First item
  2. Second item
  3. Third item

같이 보기