Template:Doc example/doc
This is a documentation subpage for Template:Doc example It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]Template to demarcate examples in documentation
- content or 1: The example content
- title: example title, optional, blank if not given
- pre_title: title prefix, optional, default is "Example"
- collapsed:
yes
collapses the box by default
{{doc example |<pre>{{lorem ipsum}}</pre> {{lorem ipsum}} }}
Example
{{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.
{{doc example | title = Title of the example | pre_title = Prefix | collapsed = yes |<pre>{{lorem ipsum}}</pre> {{lorem ipsum}} }}
Prefix: Title of the example
{{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.
See also
[edit source]- {{collapsible box}}: template this template is built on