Difference between revisions of "Template:Layouts/ImagesLeftContentRight"

From Pathfinder Wiki
Line 4: Line 4:
 
  | keyOfImg
 
  | keyOfImg
 
  | theImage
 
  | theImage
  | <nowiki />{{#if:{{#var:theImage|}}|[[image:{{#var:theImage}}|{{{image_{{#var:keyOfImg}}_width|300px}}}]]<small><div style="text-align:center">{{{image_{{#var:keyOfImg}}_caption|}}}</div></small>}}
+
  | <nowiki />{{#if:{{#var:theImage|}}|[[image:{{#var:theImage}}|{{{imageWidth_{{#var:keyOfImg}}|300px}}}|{{{imageCaption_{{#var:keyOfImg}}|}}}]]<p class="image-caption"><small>{{{imageCaption_{{#var:keyOfImg}}|}}}</small></p>}}
 
}}
 
}}
 
</div>
 
</div>
Line 21: Line 21:
 
{{Layouts/ImagesLeftContentRight
 
{{Layouts/ImagesLeftContentRight
 
| image_1 = Amaranthus tricolor0.jpg
 
| image_1 = Amaranthus tricolor0.jpg
| image_1_caption = Test caption
+
| imageCaption_1 = Test caption
 
| content_heading = Amaranth
 
| content_heading = Amaranth
 
| content = Amaranth, is a cosmopolitan genus of annual or short-lived perennial plants. Catkin-like cymes of densely packed flowers grow in summer or autumn. Approximately 60 species are recognized, with inflorescences and foliage ranging from purple and red to green or gold.  
 
| content = Amaranth, is a cosmopolitan genus of annual or short-lived perennial plants. Catkin-like cymes of densely packed flowers grow in summer or autumn. Approximately 60 species are recognized, with inflorescences and foliage ranging from purple and red to green or gold.  
Line 28: Line 28:
 
{{Layouts/ImagesLeftContentRight
 
{{Layouts/ImagesLeftContentRight
 
| image_1 = Oenothera biennis 20050825 962.jpg
 
| image_1 = Oenothera biennis 20050825 962.jpg
| image_1_caption = Tap root shown next to a carrot for comparison.
+
| imageCaption_1 = Tap root shown next to a carrot for comparison.
 
| image_2 = Oenothera-biennis-root.jpg
 
| image_2 = Oenothera-biennis-root.jpg
 
| content_heading = Evening Primrose
 
| content_heading = Evening Primrose

Revision as of 23:38, 28 February 2021

Usage:

{{Layouts/ImagesLeftContentRight
}}

Example:

Test caption

Test caption

Amaranth

Amaranth, is a cosmopolitan genus of annual or short-lived perennial plants. Catkin-like cymes of densely packed flowers grow in summer or autumn. Approximately 60 species are recognized, with inflorescences and foliage ranging from purple and red to green or gold. Although several species are often considered weeds, people around the world value amaranths as leaf vegetables and cereals.

Tap root shown next to a carrot for comparison.

Tap root shown next to a carrot for comparison.

Oenothera-biennis-root.jpg

Evening Primrose

Evening primrose (Oenothera biennis) is a biennial (living for two years) flowering plant growing to 30–150 cm tall. The leaves are lanceolate, 5–20 cm long and 1–2.5 cm broad, produced in a tight rosette in the first year, and spirally on the stem in the second year. The flowers are pale yellow, 2.5–5 cm diameter, with four petals; they are produced on a tall spike from late spring to late summer. They open in the evening, hence the name "evening primrose", and close by the following noon.