Difference between revisions of "Template:Layouts/ImagesLeftContentRight"

From Pathfinder Wiki
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
</div>
 
</div>
 
<div class="content-container">
 
<div class="content-container">
{{#if: content_heading|<h3>{{{content_heading}}}</h3>}}
+
{{#if: {{{content_heading|}}}|<h3>{{{content_heading}}}</h3>}}
 
{{{content}}}
 
{{{content}}}
 
</div>
 
</div>
 
</div></onlyinclude></includeonly>
 
</div></onlyinclude></includeonly>
 
<noinclude>
 
<noinclude>
[[Category:AY Honors/Layout Modules]]
+
[[Category:Layout Components]][[Category:UsesLoops]]
 
Usage:
 
Usage:
 
:<nowiki>{{Layouts/ImagesLeftContentRight</nowiki>
 
:<nowiki>{{Layouts/ImagesLeftContentRight</nowiki>
Line 23: Line 23:
 
::<nowiki>|imageCaption_n = </nowiki>
 
::<nowiki>|imageCaption_n = </nowiki>
 
::<nowiki>|content_heading = </nowiki>
 
::<nowiki>|content_heading = </nowiki>
::<nowiki>|contetn = </nowiki>
+
::<nowiki>|content = </nowiki>
 
:<nowiki>}}</nowiki>
 
:<nowiki>}}</nowiki>
  

Latest revision as of 15:58, 3 April 2022

Usage:

{{Layouts/ImagesLeftContentRight
|image_1 =
|imageWidth_1 =
|imageCaption_1 =
|image_n =
|imageWidth_n =
|imageCaption_n =
|content_heading =
|content =
}}

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.

This Template creates a Layout where the images are on the left side of the page and the text on the right. It is mobile friendly, that means that as the screen gets smaller the images will then go on top of the text and the text will follow.

Template parameters

ParameterDescriptionTypeStatus
Heading of the Textcontent_heading

Heading of the Text on the right of the images

Stringoptional
Textcontent

The text which shall go on the right of the images. It should be possible to pass in every wikitext.

Unbalanced wikitextoptional
Image nimage_n

Replace the n with a number starting at 1. That way it is possible to add multiple images into the template.

Fileoptional
Width of Image nimageWidth_n

Replace n with the number of the image you want to define the width. Normally that shouldn't be needed.

Unknownoptional
Caption of Image nimageCaption_n

Replace n with the number of the image you want to define the caption. The caption is a short description of what the image shows.

Stringoptional