Template:Based on template/Doc

From PCSAR

(Difference between revisions)
Jump to: navigation, search
(New page: {{Template Doc|TemplateName}} is a template for use by "subst:" templates. It puts a header at the top of the replaced page that says how to access the template for similar pages. Include...)
Current revision (18:00, 31 October 2012) (edit) (undo)
 
(3 intermediate revisions not shown.)
Line 1: Line 1:
-
{{Template Doc|TemplateName}}
+
{{Template Doc|<nowiki>TemplateName|Templates=y</nowiki>}}
is a template for use by "subst:" templates.
is a template for use by "subst:" templates.
It puts a header at the top of the replaced page that says how to access the template for similar pages.
It puts a header at the top of the replaced page that says how to access the template for similar pages.
 +
 +
; TemplateName : the name of the template the page is based on.
 +
 +
; Templates : (optional) if set to any value, templates will be included in the category. Default is to not include templates. This helps keep the category clear of documentation pages that use the template as an example.
Include it by putting at the top of the template
Include it by putting at the top of the template
<pre><nowiki>
<pre><nowiki>
-
{{Based On Template|TemplateName}}
+
{{Based on template|TemplateName}}
</nowiki></pre>
</nowiki></pre>
If you do, what you'll then get is this:
If you do, what you'll then get is this:
-
{{Based On Template|TemplateName}}
+
{{Based on template|TemplateName}}
The page is automatically included in the Category of the same name.
The page is automatically included in the Category of the same name.

Current revision

The template {{Based on template|TemplateName|Templates=y}} is a template for use by "subst:" templates. It puts a header at the top of the replaced page that says how to access the template for similar pages.

TemplateName 
the name of the template the page is based on.
Templates 
(optional) if set to any value, templates will be included in the category. Default is to not include templates. This helps keep the category clear of documentation pages that use the template as an example.

Include it by putting at the top of the template

{{Based on template|TemplateName}}

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

This page is based on the TemplateName template.

Use that template to make similar pages.

The page is automatically included in the Category of the same name.

Personal tools