Template:Boilerplate/Doc

From PCSAR

(Difference between revisions)
Jump to: navigation, search
(New page: {{Template Doc}} creates a new template suitable for use as a boilerplate. On a new or blank template page, type: <pre>{{subst:boilerlate}}</pre> This will create a template of the form...)
Current revision (15:42, 2 October 2017) (edit) (undo)
 
(5 intermediate revisions not shown.)
Line 4: Line 4:
On a new or blank template page, type:
On a new or blank template page, type:
-
<pre>{{subst:boilerlate}}</pre>
+
<pre>{{subst:boilerplate}}</pre>
This will create a template of the form:
This will create a template of the form:
<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>
{{Subst:XXXX}}
{{Subst:XXXX}}
-
</pre>
+
&lt;/pre>
If you do, what you'll then get is this:
If you do, what you'll then get is this:
-
<hr/>
+
{{quote-page|Sandbox/Boilerplate}}
-
<hr/>
+
</noinclude><includeonly>{{subst:XXXX/Boilerplate}}</includeonly>
-
{{quote-page|XXXX/Boilerplate}}
+
-
</noinclude><includeonly>
+
-
{{subst:XXXX/Boilerplate}}
+
-
</includeonly>
+
</pre>
</pre>
 +
 +
Where XXXX is the template name.
 +
 +
Move Template:XXXX to Template:XXXX/Page

Current revision

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