Jump to content

Template:ViewTest

From DynamicPageList4 Manual
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).
View this template's CSS styles (edit).


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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Enter the base page of the example.

Page namerequired
22

Enter the subpage for the example.

Page namerequired
33

Enter any value to override the "Test in Sandbox" button text.

Stringoptional
basebase

Overrides the default syntax of {{{1}}}}}}/{{{2}}} (or Page/Subpage), in the case that the example isn't a subpage of another page.

Page nameoptional
margintopmargintop

To override the top margin, enter a valid CSS value.

Stringoptional
noresultnoresult

Enter any value to suppress the result display.

Booleanoptional
nosandboxnosandbox

Enter any value to suppress the "test in sandbox" display.

Booleanoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.