Template:ViewTest/doc
Appearance
| Documentation subpage |
|---|
| View this documentation's related template: Template:ViewTest (edit). |
| (create). |
Example(s)
[edit source]{{ViewTest|Examples|Recent Changes}}gives:
{{ViewTest|Examples|Recent Changes}}gives:
{{ViewTest|Examples|Recent Changes|nosandbox=y}}gives:
{{ViewTest|Examples|Recent Changes|noresult=y}}gives:
{{ViewTest|category|base=Criteria for page selection|Link Text|noresult=y|margintop=.5em}}gives:
Template Data
[edit source]Creates viewing and testing buttons for examples that pre-loads the example content as a section of the current user's User:Name/sandbox page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Enter the base page of the example. | Page name | required |
| 2 | 2 | Enter the subpage for the example. | Page name | required |
| 3 | 3 | Enter any value to override the "Test in Sandbox" button text. | String | optional |
| base | base | Overrides the default syntax of {{{1}}}}}}/{{{2}}} (or Page/Subpage), in the case that the example isn't a subpage of another page. | Page name | optional |
| margintop | margintop | To override the top margin, enter a valid CSS value. | String | optional |
| noresult | noresult | Enter any value to suppress the result display. | Boolean | optional |
| nosandbox | nosandbox | Enter any value to suppress the "test in sandbox" display. | Boolean | optional |