Template:Example/doc
Appearance
| Documentation subpage |
|---|
| View this documentation's related template: Template:Example (edit). |
| Template styles: CSS styles (edit). |
Example(s)
[edit source]{{example|category}}{{example|category|noparam=any value}}{{example|category|base=Main Page}}{{example|base=Criteria for page selection|category}}
Template Data
[edit source]Creates "view result" and "text in sandbox" links, depending on parameter values given.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Enter the parameter name. | String | required |
| 2 | 2 | To override the second button text, enter a value.
| String | optional |
| noparam | noparam | If any value is set, omits the default prefix ("Parameter:_").
| Boolean | optional |
| nosandbox | nosandbox | If any value is specified, omits the sandbox button. | Boolean | optional |
| (top) margin | margin | To override the default (top) margin height, specify a value and valid CSS units.
| String | optional |
| base | base | To change the base page name for the example, specify a value. Used for when the example's base page is not the same as the current page.
| String | optional |
| eg | eg | To override the default example number, enter a value.
| Number | optional |
| noresult | noresult | Set any value to suppress the "view result" button. | Boolean | optional |