Template:Boilerplate


 * Some tags require extra work to be properly used in a
 * template like this one. "noinclude" and "includeonly"
 * control what is shown when the template is viewed and
 * what is produced when the template is transcluded
 * (e.g. subst:'d).
 * Those tags cannot be written literal in comments like
 * this one. They would be interpreted and cause portions
 * of this comment block to be included in the template
 * output. For purposes of documentation in this comments
 * like this, instead of angle brakets: < >, we will use
 * parentheses, such as (noinclude) (/noinclude),
 * (includeonly) (/includeonly).
 * To cause this template to produce these tags in its
 * substitution output, we use a trick to cause the angle
 * brackets to be delayed until output.
 * : produces a single <
 * : produces a single >
 * This trick works by using the named _blank_ parameter
 * which normally is never defined in a template call.
 * Because it's not defined, a default value is used
 * instead.
 * Because it's not defined, a default value is used
 * instead.


 * The first line in this page (above), displays the
 * documentation from a separate page only when the template
 * is viewed.
 * (noinclude)(/noinclude)
 * (noinclude)(/noinclude)


 * The remainder of the file is processed only when
 * transcluded (which should be by subst:)
 * (includeonly)...(/includeonly)
 * (includeonly)...(/includeonly)


 * Within the transclusion part, comments (like this one)
 * can be created which will be entirely ignored, by placing
 * them in noinclude blocks:
 * (noinclude) any comment (/noinclude)
 * (noinclude) any comment (/noinclude)


 * The newly created template starts with a
 * (noinclude)...(/noinclude) section which is what happens
 * when the template page is veiwed.

noinclude

This is a template for pages that are about.

Include it by saving a blank page with

pre

Subst:

/pre

If you do, what you'll then get is this:

/noinclude


 * Only when the template is transcluded, use the
 * following substitution code.
 * (includeonly)...(/includeonly)
 * (includeonly)...(/includeonly)

includeonly

;;;;;;;;;;;; Call using the specified page. Since ;;;;;;;;;;;; we're already being subst'd, this will cause the ;;;;;;;;;;;; specified page to be subst'd in immediately.

subst:

;;;;;;;;;;;; The page that has the boilerplate text. This is a   ;;;;;;;;;;;; separate page with no (noinclude) or (includeonly) ;;;;;;;;;;;; directives, so that it can be used with preload. See ;;;;;;;;;;;; Template:Link/Create for example.

/Boilerplate

/includeonly