Template:Doc example
Sarna News
- HEXTECH Review - Wave 3 Brings More Urban Options To Your Battlefield
- Your BattleTech News Round-Up For March, 2024
- Crashing 'Mechs With Jennifer Brozek, Author Of The Rogue Academy Trilogy
- Getting The Word Out With Rem Alternis, Catalyst Community & Marketing Director
- Bad 'Mechs - Yeoman
- Read more →
Usage[edit]
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. Optional, default false. - {{{margin-left}}}: left margin for indenting on talk pages, etc. Optional, default
1.5em
.
{{doc example |<pre>{{lorem ipsum}}</pre> {{lorem ipsum}} }}
Example
{{lorem ipsum}}Lorem ipsum dolor sit amet, consectetur adipiscing 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 adipiscing 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]
- {{collapsible box}}: template this template is built on
Example block used in documentation
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | content 1 | The example content | Content | required |
Title | title | Title of the example | Unknown | optional |
Pre_title | pre_title | no description | Unknown | optional |
Margin-left | margin-left | Manual left margin (for indenting on talk pages)
| Line | optional |
Collapsed | collapsed | Auto-collapse this example
| Boolean | optional |