Pergi ke kandungan

Templat:Caption

Daripada Wikibuku

{{{1}}} {{{2}}}


Use, Limitations, and Parameters

[sunting]
Purpose
This template named Caption is used for placing of external image captions beside an image. It highlights the title line in bold, and presents the remainder of the caption in (override-able) italics.

Usage is: [[Image:image-name|left|550px]] {{caption
|{{{1}}} (primary label) |{{{2}}} (secondary [italicised] label) }}
 

Parameters

[sunting]
  1. {{{1}}}: the main caption-(bold)
  2. {{{2}}}: the remainder of the caption-(italic)
Non-italic output can be achieved by prefacing and suffixing the string {{{2}}} with reverse ordered </i> and <i> tags at the string beginning and end respectively.

 

Tecnical note

[sunting]

Displayed text is wrapped in styled paragraph tags <p> ... </p> and integration with image sizing is in the hands of the editors. Proof your output by zooming in and out before accepting your edit use.  


Example-1 of its use given the below with typesetters check text, including following bullet delimited paragraphs all around the above code is:

Example-1 of its use code:

{{Lorem}}
[[Image:primula_aka.jpg|left|350px]]
{{caption|Fig 1.Yellow Primula : |The flowers are easily damaged.}}
{{Lorem}}
...

And so begins:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Fig 1.Yellow Primula : The flowers are easily damaged.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Example 2 - with a HTML <br clear=all> or {{-}} to avoid text wrapping about the image

An example of its use with a {{clear}} or {{-}} command below is: a {{Lorem}} [[Image:primula_aka.jpg|left|350px]] {{caption
|Fig 2.Yellow Primula : |The flowers are easily damaged.}} <br clear=all> {{Lorem}} {{Lorem}}

gives with typesetters check text around it:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Fig 2.Yellow Primula : The flowers are easily damaged.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Example-3 of its use given the below with typesetters check text, including following bullet delimited paragraphs all around the above code is:

Example-3 of its use code:

(Similar to the First repeated with right situated image and deitalicised |2= parameter)
{{Lorem}}[[Image:primula_aka.jpg|right|350px]]
{{caption|Fig 3.Yellow Primula:|</i>The flowers are easily damaged.
{{Lorem}}<i>}}

* {{LoremS|1}}

* {{LoremS|2}}

And so begins:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Fig 3.Yellow Primula : The flowers are easily damaged. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.