ข้ามไปเนื้อหา

แม่แบบ:Legend-col

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

The image key template is intended to help create lists of keys in images. These keys will display in 2 columns. The syntax is trivial: just add the list using the same syntax as Template:Unbulleted list!

Note: This template may be used only within the caption parameter of an image. It won't work in a caption parameter of an infobox.

{{image key
|list type=
|
|
|
...
}}

Prefer the redirect {{legend-col}} when this template is being used to support the use of {{legend}}.

Parameters

[แก้]
|list type=
Defines a list type for the template. Can be one of the values ordered, bulleted, unbulleted (synonym plainlist). An ordered list is numbered, bulleted are basic lists, and unbulleted display nothing (i.e., are "plain lists").
|<N>=
A list item. If there is an equal sign in the list item, add it as the numbered item e.g. |1=list item with equals sign.
|thumb size=
Optional.
|thumb size=wide Adds a 3rd column. Use only for "wide" images.
|thumb size=narrow Removes one column to display 1 column only. Use only for "narrow" images.

Most thumbnails these days use |upright=, so these are qualitative rather than quantitative directions for use of |wide= and |narrow=.

Examples

[แก้]

Unordered list

[แก้]
World map, countries colored in different shades of blue by minimum wage
Minimum wages per hour in U.S. dollars (as of 2014):
  •   No data
  •   No minimum wage
  •   $0.00–$1.00
  •   $1.01–$2.00
  •   $2.01–$3.00
  •   $3.01–$5.00
  •   $5.01–$7.50
  •   $7.51–$10.00
  •   >$10.00
[[File:Map of global minimum wages per hour in USD.svg|thumb|upright=2.1|alt=World map, countries colored in different shades of blue by minimum wage|Minimum wages per hour in U.S. dollars (as of '''2014'''):
{{legend-col
|{{legend|#e0e0e0|No data}}
|{{legend|#cccccc|No minimum wage}}
|{{legend|#d0d1e6|$0.00–$1.00}}
|{{legend|#a6bddb|$1.01–$2.00}}
|{{legend|#74a9cf|$2.01–$3.00}}
|{{legend|#3690c0|$3.01–$5.00}}
|{{legend|#0570b0|$5.01–$7.50}}
|{{legend|#045a8d|$7.51–$10.00}}
|{{legend|#023858|>$10.00}}
}}]]

Ordered list

[แก้]
Diagram of an insect with callouts for morphology
Insect morphology
A: Head, B: Thorax, C: Abdomen แม่แบบ:Image key
[[File:Insect anatomy diagram.svg|right|upright=1.35|thumb|alt=Diagram of an insect with callouts for morphology|Insect morphology<br />
'''A'''- Head '''B'''- Thorax '''C'''- Abdomen <br />
{{image key
|list type=ordered
|[[Antenna (biology)|antenna]]
|[[Ocellus|ocelli]] (lower)
|ocelli (upper)
|[[compound eye]]
|brain (cerebral [[Ganglion|ganglia]])
|[[prothorax]]
|dorsal blood vessel
|[[invertebrate trachea|tracheal]] tubes (trunk with [[Spiracle (arthropods)|spiracle]])
|[[mesothorax]]
|[[metathorax]]
|[[insect wing|forewing]]
|[[insect wing|hindwing]]
|mid-gut (stomach)
|dorsal tube (Heart)
|ovary
|[[hind-gut]] (intestine, rectum & anus)
|anus
|oviduct
|nerve chord (abdominal ganglia)
|[[Malpighian tubule system|Malpighian tubes]]
|tarsal pads
|claws
|[[Arthropod leg|tarsus]]
|[[Arthropod leg|tibia]]
|[[Arthropod leg|femur]]
|[[Arthropod leg|trochanter]]
|fore-gut (crop, gizzard)
|thoracic ganglion
|[[Arthropod leg|coxa]]
|salivary gland
|[[subesophageal ganglion]]
|[[insect mouthparts|mouthparts]]
}}]]

Ordered list, narrow

[แก้]
Diagram of an insect with callouts for morphology
Insect morphology
A: Head, B: Thorax, C: Abdomen แม่แบบ:Image key
[[File:Insect anatomy diagram.svg|right|upright=1.35|thumb|alt=Diagram of an insect with callouts for morphology|Insect morphology<br />
'''A'''- Head '''B'''- Thorax '''C'''- Abdomen <br />
{{image key
|list type=ordered
|thumb size=narrow
|[[Antenna (biology)|antenna]]
|[[Ocellus|ocelli]] (lower)
|ocelli (upper)
|[[compound eye]]
|brain (cerebral [[Ganglion|ganglia]])
|[[prothorax]]
|dorsal blood vessel
|[[invertebrate trachea|tracheal]] tubes (trunk with [[Spiracle (arthropods)|spiracle]])
|[[mesothorax]]
|[[metathorax]]
|[[insect wing|forewing]]
|[[insect wing|hindwing]]
|mid-gut (stomach)
|dorsal tube (Heart)
|ovary
|[[hind-gut]] (intestine, rectum & anus)
|anus
|oviduct
|nerve chord (abdominal ganglia)
|[[Malpighian tubule system|Malpighian tubes]]
|tarsal pads
|claws
|[[Arthropod leg|tarsus]]
|[[Arthropod leg|tibia]]
|[[Arthropod leg|femur]]
|[[Arthropod leg|trochanter]]
|fore-gut (crop, gizzard)
|thoracic ganglion
|[[Arthropod leg|coxa]]
|salivary gland
|[[subesophageal ganglion]]
|[[insect mouthparts|mouthparts]]
}}]]

Unordered list, wide

[แก้]
World map, countries colored in different shades of blue by minimum wage
Minimum wages per hour in U.S. dollars (as of 2014):
  •   No data
  •   No minimum wage
  •   $0.00–$1.00
  •   $1.01–$2.00
  •   $2.01–$3.00
  •   $3.01–$5.00
  •   $5.01–$7.50
  •   $7.51–$10.00
  •   >$10.00
[[File:Map of global minimum wages per hour in USD.svg|thumb|upright=2.1|alt=World map, countries colored in different shades of blue by minimum wage|Minimum wages per hour in U.S. dollars (as of '''2014'''):
{{legend-col
|thumb size=wide
|{{legend|#e0e0e0|No data}}
|{{legend|#cccccc|No minimum wage}}
|{{legend|#d0d1e6|$0.00–$1.00}}
|{{legend|#a6bddb|$1.01–$2.00}}
|{{legend|#74a9cf|$2.01–$3.00}}
|{{legend|#3690c0|$3.01–$5.00}}
|{{legend|#0570b0|$5.01–$7.50}}
|{{legend|#045a8d|$7.51–$10.00}}
|{{legend|#023858|>$10.00}}
}}]]

TemplateData

[แก้]

Helps create lists of keys in images, especially using columns

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

This template prefers block formatting of parameters.

พารามิเตอร์คำอธิบายชนิดสถานะ
List typelist type

Optional kind of list to display. Can be "ordered", "bulleted", or the default, which is "unbulleted".

ค่าปริยาย
unbulleted
สตริงเลือกได้
Thumb sizethumb size

Optional size of the containing thumbnail. "narrow" will output only 1 column. "wide" will output 3 columns. Default is 2 columns. (Column count may differ on mobile.)

สตริงเลือกได้
List element1

Element in the list. Can be infinite elements.

เนื้อหาจำเป็น
List element2

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element3

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element4

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element5

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element6

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element7

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element8

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element9

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้
List element10

Element in the list. Can be infinite elements.

เนื้อหาเลือกได้