Template:Gallery: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Stephen Ewen
 
imported>Caesar Schinas
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT: [[:Template:Gallery-mixed]]
<includeonly>{|style="background-color:white; border:1px solid #ccc; margin-top:0.5em;"
{{#if:{{{caption|}}}{{{licence|}}}|
{{!}}colspan="30" style="text-align:left; padding:3px 6px;"{{!}}{{#if:{{{caption|}}}|'''{{{caption}}}'''}}{{#if:{{{licence|}}}|<span style="display:block; margin-top:3px;">{{creditline|{{{licence}}}|Images|{{{author}}}}}</span>}}
{{!}}-
}}
|<!--
-->{{Template:Gallery/image|{{{1|Flag_is_missing.png}}}|{{{2|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}<!--
-->{{#if:{{{3|}}}|{{Template:Gallery/image|{{{3|}}}|{{{4|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{5|}}}|{{Template:Gallery/image|{{{5|}}}|{{{6|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{7|}}}|{{Template:Gallery/image|{{{7|}}}|{{{8|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{9|}}}|{{Template:Gallery/image|{{{9|}}}|{{{10|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{11|}}}|{{Template:Gallery/image|{{{11|}}}|{{{12|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{13|}}}|{{Template:Gallery/image|{{{13|}}}|{{{14|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{15|}}}|{{Template:Gallery/image|{{{15|}}}|{{{16|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{17|}}}|{{Template:Gallery/image|{{{17|}}}|{{{18|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{19|}}}|{{Template:Gallery/image|{{{19|}}}|{{{20|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{21|}}}|{{Template:Gallery/image|{{{21|}}}|{{{22|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{23|}}}|{{Template:Gallery/image|{{{23|}}}|{{{24|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{25|}}}|{{Template:Gallery/image|{{{25|}}}|{{{26|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{27|}}}|{{Template:Gallery/image|{{{27|}}}|{{{28|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{29|}}}|{{Template:Gallery/image|{{{29|}}}|{{{30|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{31|}}}|{{Template:Gallery/image|{{{31|}}}|{{{32|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{33|}}}|{{Template:Gallery/image|{{{33|}}}|{{{34|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{35|}}}|{{Template:Gallery/image|{{{35|}}}|{{{36|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{37|}}}|{{Template:Gallery/image|{{{37|}}}|{{{38|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{39|}}}|{{Template:Gallery/image|{{{39|}}}|{{{40|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{41|}}}|{{Template:Gallery/image|{{{41|}}}|{{{42|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{43|}}}|{{Template:Gallery/image|{{{43|}}}|{{{44|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{45|}}}|{{Template:Gallery/image|{{{45|}}}|{{{46|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{47|}}}|{{Template:Gallery/image|{{{47|}}}|{{{48|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{49|}}}|{{Template:Gallery/image|{{{49|}}}|{{{50|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{51|}}}|{{Template:Gallery/image|{{{51|}}}|{{{52|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{53|}}}|{{Template:Gallery/image|{{{53|}}}|{{{54|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{55|}}}|{{Template:Gallery/image|{{{55|}}}|{{{56|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{57|}}}|{{Template:Gallery/image|{{{57|}}}|{{{58|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}<!--
-->{{#if:{{{59|}}}|{{Template:Gallery/image|{{{59|}}}|{{{60|}}}|width={{{width|180}}}|lines={{{lines|2}}}|credit={{#if:{{{licence|}}}|no|yes}}}}}}
{{#if:{{{61|}}}|
{{!}}-
{{!}}style="text-align:center; color:red;"{{!}}The maximum number of images is 30!  Please add another gallery !
}}
|}</includeonly><noinclude>{{TlDoc}}</noinclude>

Latest revision as of 04:45, 27 June 2009

This documentation is transcluded from Template:Gallery/doc (edit | history)

Template for creating image galleries.

Usage

The template takes several named parameters, which set features of the entire gallery and are listed below.

caption — A caption for the gallery.
width — The size at which the thumbnails should be shown, in px. Default 180.
lines — The height of the image captions, in lines. 0 to hide all captions. Default 2.


If all the images are under the same licence and by the same author, set the following parameters to show the licence notice at the top of the gallery rather than below every image.

licence — The type of licence. Only use letters, eg PD, CC, GNU. Use C for ©.
author — If licence is set, this must be set to the name of the author of the images.


The named parameters a followed by unnamed parameters specifying the names and captions for up to 30 images.
The code for each image is as follows :

|Image_name_1.png|Image Caption 1
|Image_name_2.png|Image Caption 2
...etc...

Examples

{{gallery
|width   = 200
|lines   = 7
|Grey Nurse Shark.jpg|Smaller [[fish]] surround a grey nurse shark (''[[Carcharias taurus]]'') in an [[ocean]] [[reef]] [[cave]].
|Nematode with stained nuclei.jpg|The [[cell]]s of this [[hermaphrodite]] [[nematode]] (''[[Caenorhabditis elegans]]'') are [[stain]]ed so that their [[cell nucleus|nuclei]] glow red.
|Ants and aphids.jpg|In one of the many unique ways animals obtain [[food]], [[rancher ant]]s drink [[sugar]]y juice from [[aphid]]s (''[[Aphis fabae]]'') in return for the aphids' protection, an example of [[symbiosis]] and [[mutualism]].
|Red beard sponge.jpg|This [[red beard sponge]] (Microciona prolifera) washed up onshore. Sponges attach to the ocean floor and passively [[filter feeding|filter feed]] on [[plankton]] that pass through them.
|Granulated sea star.jpg|This granulated [[sea star]] (''[[Choriaster granulatus]]'') is just one of the many animals that populate the [[Great Barrier Reef]].
|Ant on peony.jpg|One of the many thousands of [[ant]] [[species]] crawls on a [[peony]] [[fruit]]. Ants are essential in redistributing resources and aerating the [[soil]] in every [[continent]] except [[Antarctica]].
|Mating tortoise beetles.jpg|[[Insect]]s [[reproduction|reproduce]] in countless ways. These two mating [[tortoise beetle]]s give an example of [[internal fertilization]].
|Meyers frog metamorphosis.png|Most [[frog]]s and [[toad]]s undergo holometabolism: frog larvae, called [[tadpole]]s (or pollywogs), hatch from their [[egg]]s and change into adult frogs, which look and act differently. Tadpoles have [[gill]]s and [[fin]]s and completely live, breathe, and eat in [[water]]. Adult frogs have [[lung]]s and [[leg]]s and live, breath, and eat out of water.
|Bee pollinating a wallflower.jpg|[[Bee]]s, like many [[insect]]s, [[pollination|pollinate]] [[flower]]s—transferring the flowers' [[pollen]] in return for [[nectar]], which the bees drink as [[food]]. Flowers are often [[adaptation|adapted]] to attract and accept only one species of animal.
|Greek donkey with computers.jpg|Donkeys are a [[domestication|domesticated]] animal whose mechanical strength is often harnessed by humans as transportation.
|Irish beach jellyfish.jpg|[[Jellyfish]] are a type of [[cnidarian]]. They are gelatinous predators that float in the [[ocean]], using [[tentacle]]s to bring whatever [[prey]] they catch into their [[mouth]]s.
|Animal phylogeny poster.jpg|A stylized tree of the [[phylogeny]] of animals.
}}
Smaller fish surround a grey nurse shark (Carcharias taurus) in an ocean reef cave.
(CC) Photo: Richard Ling
Smaller fish surround a grey nurse shark (Carcharias taurus) in an ocean reef cave.
The cells of this hermaphrodite nematode (Caenorhabditis elegans) are stained so that their nuclei glow red.
The cells of this hermaphrodite nematode (Caenorhabditis elegans) are stained so that their nuclei glow red.
In one of the many unique ways animals obtain food, rancher ants drink sugary juice from aphids (Aphis fabae) in return for the aphids' protection, an example of symbiosis and mutualism.
(CC) Photo: Kenny Murray
In one of the many unique ways animals obtain food, rancher ants drink sugary juice from aphids (Aphis fabae) in return for the aphids' protection, an example of symbiosis and mutualism.
This red beard sponge (Microciona prolifera) washed up onshore. Sponges attach to the ocean floor and passively filter feed on plankton that pass through them.
(CC) Photo: Ken Ichi
This red beard sponge (Microciona prolifera) washed up onshore. Sponges attach to the ocean floor and passively filter feed on plankton that pass through them.
This granulated sea star (Choriaster granulatus) is just one of the many animals that populate the Great Barrier Reef.
(CC) Photo: Richard Ling
This granulated sea star (Choriaster granulatus) is just one of the many animals that populate the Great Barrier Reef.
One of the many thousands of ant species crawls on a peony fruit. Ants are essential in redistributing resources and aerating the soil in every continent except Antarctica.
(CC) Photo: Fauxto Digit
One of the many thousands of ant species crawls on a peony fruit. Ants are essential in redistributing resources and aerating the soil in every continent except Antarctica.
Insects reproduce in countless ways. These two mating tortoise beetles give an example of internal fertilization.
(CC) Photo: Gerald Yuvallos
Insects reproduce in countless ways. These two mating tortoise beetles give an example of internal fertilization.
Most frogs and toads undergo holometabolism: frog larvae, called tadpoles (or pollywogs), hatch from their eggs and change into adult frogs, which look and act differently. Tadpoles have gills and fins and completely live, breathe, and eat in water. Adult frogs have lungs and legs and live, breath, and eat out of water.
Most frogs and toads undergo holometabolism: frog larvae, called tadpoles (or pollywogs), hatch from their eggs and change into adult frogs, which look and act differently. Tadpoles have gills and fins and completely live, breathe, and eat in water. Adult frogs have lungs and legs and live, breath, and eat out of water.
Bees, like many insects, pollinate flowers—transferring the flowers' pollen in return for nectar, which the bees drink as food. Flowers are often adapted to attract and accept only one species of animal.
(CC) Photo: Martin Helgan
Bees, like many insects, pollinate flowers—transferring the flowers' pollen in return for nectar, which the bees drink as food. Flowers are often adapted to attract and accept only one species of animal.
Donkeys are a domesticated animal whose mechanical strength is often harnessed by humans as transportation.
(CC) Photo: Dave Sag
Donkeys are a domesticated animal whose mechanical strength is often harnessed by humans as transportation.
Jellyfish are a type of cnidarian. They are gelatinous predators that float in the ocean, using tentacles to bring whatever prey they catch into their mouths.
(CC) Photo: Carmelo Aquilina
Jellyfish are a type of cnidarian. They are gelatinous predators that float in the ocean, using tentacles to bring whatever prey they catch into their mouths.
(CC) Photo: Colin Purrington
A stylized tree of the phylogeny of animals.


{{gallery
|caption = Examples from "The Butler's in Love" series
|width   = 120
|lines   = 0
|licence = C
|author  = Mark Stock
|Butler's_in_love_6.JPG|
|Butler's_in_love_16_-_1991.JPG|
|Stock_bixbutlglass_b5.jpg|
|The_Butlers_in_Love_3.jpg|
|The_Butlers_in_Love_4.jpg|
}}
Examples from "The Butler's in Love" series© Images: Mark Stock
Butler's in love 6.JPG
Butler's in love 16 - 1991.JPG
Stock bixbutlglass b5.jpg
The Butlers in Love 3.jpg
The Butlers in Love 4.jpg