Jump to content

Template:උපුටා දැක්වීම/උපදෙස්

From Wikisource


භාවිතය

[edit]

This template is for formatting a quotation. The second and third parameters are used for the cited author and work. They should not be used if the quotation has different formatting to the one provided.

The default style is an extra margin on the left and right sides, but this can be set on a per-work basis with Index CSS.

The split templates {{quote/s}} and {{quote/e}} are available for spanning page breaks. The citation parameters are not available in this case.

පැරාමිති

[edit]
  • 1: the quoted text
  • 2: a citation author, which comes after the quote (not available for the /s, /e split version)
  • 3: a citation work, which comes after the author (not available for the /s, /e split version)
  • class: extra CSS classes (wst-quote is always applied in addition). You can target these classes with Index CSS.
  • align: text alignment of the content (e.g. center).
  • style: extra CSS style to apply to the quoted text. Do not use quotes, the template supplies them.

උදාහරණ

[edit]
{{lorem ipsum}}
{{උපුටා දැක්වීම|'''With citation''': {{lorem ipsum}}|Albert Einstein|Life and Works}}
{{lorem ipsum}}
{{උපුටා දැක්වීම|style=color:blue;|'''With CSS''': {{lorem ipsum}}}}
{{lorem ipsum}}

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.

With citation: 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.

Albert EinsteinLife and Works

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.

With CSS: 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.

CSS

[edit]

Target the wst-quote class with CSS to apply styles to this template. You can also specify your own class name with the class parameter (e.g. if the work has multiple quote styles).

A common use case is to remove the default right margin inset:

.wst-quote {
    margin-right: 0;		
}

මේවාත් බලන්න

[edit]

Insert a block of quoted text

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The quoted content

Contentrequired
classclass

Additional classes for targeting CSS

Example
_custom_class
Lineoptional
alignalign

Text alignment

Suggested values
center right left justify
Stringoptional
stylestyle

Additional CSS styling

Lineoptional
22

Citation author (rarely used in actual works)

Unknownoptional
33

The cited work (rarely used in actual works)

Unknownoptional