Template:Read more
The read_more template is used to collapse text or content.
Usage
{{Read more |1= }}
Surround the text or content to be collapsed with a single {{Read more}}, or a pair of {{Read more top}} and {{Read more bottom}}.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 text content | collapsed text or content | empty | required | |
header | header | (read more ...) | optional | |
bg | background | Sets the background color of header. (Note: to avoid the afterimage issue of the toggle animation, explicitly specification of background color is recommended) | empty | optional |
expand | expand | Sets non-empty to expand by default. | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information The read_more template is used to collapse text or content.
|
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
Localization
This template is not intended to be localized.
Category:Templates not requiring internationalizationExamples
Simple
{{Read more|{{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. |
{{Read more top}}{{lorem ipsum}}{{Read more bottom}}
(read more ...) |
---|
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. |
Customization
{{Read more|{{lorem ipsum}}|header=(click to toggle hide/show)|bg=#FAFAFA|expand=1}}
(click to toggle hide/show) |
---|
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. |
{{Read more top|header=(click to toggle hide/show)|bg=#FAFAFA|expand=1}}
{{divbox|greenv|radius=4em|{{lorem ipsum}}}}
{{Read more bottom}}
(click to toggle hide/show) |
---|
Used on image caption
[[Image:Mandolin.jpg|thumb|225px|center|A "Hauser" mandolin from Germany.
{{read more|It was made in the 1950's and refinished in 2007.|bg=#FAFAFA}}]]
[[Image:Mandolin.jpg|thumb|225px|center|A "Hauser" mandolin from Germany.
{{read more top|bg=#FAFAFA}}
It was made in the 1950's and refinished in 2007.
{{read more bottom}}]]