Jump to content

Template:Example/doc

From DynamicPageList4 Manual
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.

Template parameters

ParameterDescriptionTypeStatus
11

Enter the parameter name.

Stringrequired
22

To override the second button text, enter a value.

Default
Test in sandbox
Stringoptional
noparamnoparam

If any value is set, omits the default prefix ("Parameter:_").

Default
Parameter:_
Booleanoptional
nosandboxnosandbox

If any value is specified, omits the sandbox button.

Booleanoptional
(top) marginmargin

To override the default (top) margin height, specify a value and valid CSS units.

Default
0.5em
Example
1em
Stringoptional
basebase

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.

Default
{{FULLPAGENAME}}
Stringoptional
egeg

To override the default example number, enter a value.

Default
1
Numberoptional
noresultnoresult

Set any value to suppress the "view result" button.

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