Template:Boilerplate

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Line 31: Line 31:
</noinclude>{{{|<}}}noinclude{{{|>}}}
</noinclude>{{{|<}}}noinclude{{{|>}}}
{{Based On Template|Boilerplate}}
{{Based On Template|Boilerplate}}
-
This is a template for pages that are about ...
+
This is a template for pages that are about {{subst:PAGENAME}}
Include it by saving a blank page with
Include it by saving a blank page with
{{{|<}}}pre{{{|>}}}
{{{|<}}}pre{{{|>}}}
-
{{subst:((}}Subst:Event{{subst:))}}
+
{{subst:((}}Subst:{{subst:PAGENAME}}{{subst:))}}
{{{|<}}}/pre{{{|>}}}
{{{|<}}}/pre{{{|>}}}
Line 40: Line 40:
<hr/>
<hr/>
<hr/>
<hr/>
-
{{quote-page|Template:Person/Boilerplate}}
+
{{quote-page|{{subst:FULLPAGENAME}}/Boilerplate}}
{{{|<}}}/noinclude{{{|>}}}<noinclude>
{{{|<}}}/noinclude{{{|>}}}<noinclude>
Line 49: Line 49:
</noinclude>{{{|<}}}includeonly{{{|>}}}
</noinclude>{{{|<}}}includeonly{{{|>}}}
-
{{subst:Person/Boilerplate}}
+
{{subst:{{subst:PAGENAME}}/Boilerplate}}
{{{|<}}}/includeonly{{{|>}}}<noinclude>
{{{|<}}}/includeonly{{{|>}}}<noinclude>

Revision as of 21:10, 3 October 2012

This is the documentation for the template Template:Boilerplate

Template:Boilerplate/Doc:

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.

Move Template:XXXX to Template:XXXX/Page


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools