Template:Example
Appearance
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this template's documentation (edit) (about template documentation). |
No TemplateStyles exist (create). Remember to add after the opening <includeonly> tag:
|
<templatestyles src="Template:Example/styles.css" />
|
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 |