Template:Boilerplate/Doc
From PCSAR
(Difference between revisions)
Line 9: | Line 9: | ||
<pre> | <pre> | ||
<noinclude> | <noinclude> | ||
- | {{Based On Template|Boilerplate}} | + | {{Based On Template|Boilerplate|Templates=y}} |
- | This is a template for pages that are about XXXX | + | This is a template for pages that are about XXXX. |
Include it by saving a blank page with | Include it by saving a blank page with | ||
<pre> | <pre> | ||
Line 17: | Line 17: | ||
If you do, what you'll then get is this: | If you do, what you'll then get is this: | ||
- | {{quote-page| | + | {{quote-page|Sandbox/Boilerplate}} |
- | </noinclude><includeonly> | + | </noinclude><includeonly>{{subst:XXXX/Boilerplate}}</includeonly> |
- | {{subst:XXXX/Boilerplate}} | + | |
- | </includeonly> | + | |
</pre> | </pre> | ||
Where XXXX is the template name. | Where XXXX is the template name. |
Revision as of 18:51, 31 December 2012
The template {{Boilerplate}}
creates a new template
suitable for use as a boilerplate.
On a new or blank template page, type:
{{subst:boilerplate}}
This will create a template of the form:
<noinclude> {{Based On Template|Boilerplate|Templates=y}} This is a template for pages that are about XXXX. Include it by saving a blank page with <pre> {{Subst:XXXX}} </pre> If you do, what you'll then get is this: {{quote-page|Sandbox/Boilerplate}} </noinclude><includeonly>{{subst:XXXX/Boilerplate}}</includeonly>
Where XXXX is the template name.