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 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.



Example block used in documentation

ਫਰਮੇ ਦੇ ਮਾਪਦੰਡ

ਮਾਪਦੰਡਵੇਰਵਾਕਿਸਮਦਰਜਾ
contentcontent 1

The example content

Contentrequired
titletitle

Title of the example

Unknownoptional
pre_titlepre_title

no description

Unknownoptional
margin-leftmargin-left

Manual left margin (for indenting on talk pages)

ਮੂਲ ਰੂਪ
1.5em
Example
3em
Lineoptional
collapsedcollapsed

Auto-collapse this example

ਮੂਲ ਰੂਪ
false
Booleanoptional