Template:Example/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
m (Undo revision 1551 by me, nope, what I had was fine)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Documentation here -->
<!-- Documentation here -->
Creates a "view result" and "text in sandbox" link
Creates links to parameter example pages, which are a subpage of the manual page (for non parameter examples, don't use this template, use regular links).
==Example==
==Usage==
* <code><nowiki>{{example|category}}</nowiki></code> gives {{example|category}}
* <code><nowiki>{{example|category}}</nowiki></code>
* <code><nowiki>{{example|category|alt text}}</nowiki></code> gives {{example|category|alt text}}
* <code><nowiki>{{example|category|noparam=any value}}</nowiki></code>
* <code><nowiki>{{example|category|text|eg=2}}</nowiki></code> gives {{example|category|text|eg=2}}
* <code><nowiki>{{example|category|base=Main Page}}</nowiki></code>
* <code><nowiki>{{example|base=Criteria for page selection|category}}</nowiki></code> {{example|base=Criteria for page selection|category}}


<includeonly>
<includeonly>
Line 11: Line 12:
[[Category:Templates]]
[[Category:Templates]]
[[Category:Link templates]]
[[Category:Link templates]]


</includeonly>
</includeonly>

Latest revision as of 04:43, 6 April 2022

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

Creates a "view result" and "text in sandbox" link

Usage

  • {{example|category}}
  • {{example|category|noparam=any value}}
  • {{example|category|base=Main Page}}
  • {{example|base=Criteria for page selection|category}} Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").