Difference between revisions of "Template:Image key/doc"

From blackwiki
Jump to navigation Jump to search
imported>Izno
imported>Izno
(would like to get another example of narrow in here)
Line 19: Line 19:
 
; {{para|<N>}}
 
; {{para|<N>}}
 
: A list item. If there is an equal sign in the list item, add it as the numbered item e.g. {{para|1|list item with equals sign}}.
 
: A list item. If there is an equal sign in the list item, add it as the numbered item e.g. {{para|1|list item with equals sign}}.
 +
; {{para|thumb size}}
 +
: Defaults to none.
 +
: {{para|thumb size|wide}} Adds a 3rd column. Use only for "wide" images.
 +
: {{para|thumb size|narrow}} Removes one column to display 1 column only. Use only for "narrow" images.
  
Numbers below bikeshedding. Maybe just trust users to know when to wide/narrow versus not as in option 1, because most thumbs these days are using {{para|upright}}.
+
Most thumbnails these days use {{para|upright}}, so these are qualitative rather than quantitative directions for use of {{para|wide}} and {{para|narrow}}.
 
 
; {{para|wide}}
 
: Implementation 1 (current): Accepts only the value "yes". Adds a 3rd column. A wide image is one that is at least 600px wide.
 
: Implementation 2 (alternative): Accepts a number that is equal to the image width (e.g. {{para|wide|600}}). If the number is greater than 600, adds a 3rd column.
 
; {{para|narrow}}
 
: Implementation 1 (current): Accepts only the value "yes". Removes one column to display 1 column only. A narrow image is one that is less than 300px wide.
 
: Implementation 2 (alternative): Accepts a number that is equal to the image width (e.g. {{para|narrow|300}}). If the number is less than 300, displays only one column.
 
  
 
== Examples ==
 
== Examples ==
Line 135: Line 132:
 
|[[insect mouthparts|mouthparts]]
 
|[[insect mouthparts|mouthparts]]
 
}}]]</pre>
 
}}]]</pre>
 +
{{clear}}
 +
 +
=== Ordered list, narrow ===
 +
[[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
 +
{{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]]
 +
}}]]
 +
<pre>[[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]]
 +
}}]]</pre>
 +
{{clear}}
 +
 +
=== Unordered list, wide ===
 +
[[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'''):
 +
{{image key
 +
|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+}}
 +
}}]]
 +
<pre>
 +
[[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'''):
 +
{{image key
 +
|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+}}
 +
}}]]
 +
</pre>
 +
 +
{{clear}}

Revision as of 07:50, 28 January 2021

Script error: No such module "Uses TemplateStyles".

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!

Use

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

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=
Defaults to none.
|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'''):
{{image key
|{{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
  1. antenna
  2. ocelli (lower)
  3. ocelli (upper)
  4. compound eye
  5. brain (cerebral ganglia)
  6. prothorax
  7. dorsal blood vessel
  8. tracheal tubes (trunk with spiracle)
  9. mesothorax
  10. metathorax
  11. forewing
  12. hindwing
  13. mid-gut (stomach)
  14. dorsal tube (Heart)
  15. ovary
  16. hind-gut (intestine, rectum & anus)
  17. anus
  18. oviduct
  19. nerve chord (abdominal ganglia)
  20. Malpighian tubes
  21. tarsal pads
  22. claws
  23. tarsus
  24. tibia
  25. femur
  26. trochanter
  27. fore-gut (crop, gizzard)
  28. thoracic ganglion
  29. coxa
  30. salivary gland
  31. subesophageal ganglion
  32. mouthparts
[[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
  1. antenna
  2. ocelli (lower)
  3. ocelli (upper)
  4. compound eye
  5. brain (cerebral ganglia)
  6. prothorax
  7. dorsal blood vessel
  8. tracheal tubes (trunk with spiracle)
  9. mesothorax
  10. metathorax
  11. forewing
  12. hindwing
  13. mid-gut (stomach)
  14. dorsal tube (Heart)
  15. ovary
  16. hind-gut (intestine, rectum & anus)
  17. anus
  18. oviduct
  19. nerve chord (abdominal ganglia)
  20. Malpighian tubes
  21. tarsal pads
  22. claws
  23. tarsus
  24. tibia
  25. femur
  26. trochanter
  27. fore-gut (crop, gizzard)
  28. thoracic ganglion
  29. coxa
  30. salivary gland
  31. subesophageal ganglion
  32. mouthparts
[[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]]
}}]]

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'''):
{{image key
|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+}}
}}]]