Template:Example/doc

From DynamicPageList3 Manual
Revision as of 01:52, 3 April 2022 by imported>FrozenPlum (update the docs to be clearer)
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

Creates links to either parameter examples pages, or singular example pages.

Usage

  • {{example|Non-existing page}} gives Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
  • {{example|Non-existing page|text label}} gives Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
  • {{example|category|text label|p=y}} gives Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

(prepends "Parameter:_" to the URL only, where parameter pages will have multiple examples, plural, on the same page)

  • {{example|category|p=y}} gives Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

(prepends "Parameter:_" to the URL only)