Template:Example/doc: Difference between revisions
Content deleted Content added
imported>FrozenPlum template doc |
imported>FrozenPlum m update the docs to be clearer |
||
Line 5: | Line 5: | ||
* <code><nowiki>{{example|Non-existing page}}</nowiki></code> gives {{example|Non-existing page}} |
* <code><nowiki>{{example|Non-existing page}}</nowiki></code> gives {{example|Non-existing page}} |
||
* <code><nowiki>{{example|Non-existing page|text label}}</nowiki></code> gives {{example|Non-existing page|text label}} |
* <code><nowiki>{{example|Non-existing page|text label}}</nowiki></code> gives {{example|Non-existing page|text label}} |
||
* <code><nowiki>{{example|category|text label|p=y}}</nowiki></code> gives {{example|category|text label|p=y}} |
* <code><nowiki>{{example|category|text label|p=y}}</nowiki></code> gives {{example|category|text label|p=y}} (prepends "Parameter:_" to the URL only, where parameter pages will have multiple examples, plural, on the same page) |
||
* <code><nowiki>{{example|category|p=y}}</nowiki></code> gives {{example|category|p=y}} |
* <code><nowiki>{{example|category|p=y}}</nowiki></code> gives {{example|category|p=y}} (prepends "Parameter:_" to the URL only) |
||
<includeonly> |
<includeonly> |
||
<!-- Template categories/interwikis here --> |
<!-- Template categories/interwikis here --> |
Revision as of 01:52, 3 April 2022
[purge]
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more informationCreates 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)