Jump to content

Template:Example

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).
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.

Template parameters[Edit template data]

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.