Template:Based on template
From PCSAR
(Difference between revisions)
												
			
			| (5 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| - | <noinclude>{{documentation}}</noinclude><includeonly><  | + | <noinclude>{{documentation}}</noinclude><includeonly><noinclude>  | 
| - | + | ;;;;;;;;;;;;; This header box should not be printed, because using templates require live access to the wiki  | |
| - | + |   </noinclude><div class="noprint"><noinclude>  | |
| - | <  | + | |
| + |     </noinclude>{{standout box|  | ||
This page is based on the [[:Template:{{{1}}}|{{{1}}}]] template.  | This page is based on the [[:Template:{{{1}}}|{{{1}}}]] template.  | ||
Use that template to make [[:Category:{{{1}}}|similar pages]].  | Use that template to make [[:Category:{{{1}}}|similar pages]].  | ||
| - | }}{{#if: {{{Templates|}}}|[[Category:{{{1}}}]]|{{not in template|[[Category:{{{1}}}]]}}}}</includeonly>  | + | }}<noinclude>  | 
| + | |||
| + |   </noinclude></div><noinclude>  | ||
| + | |||
| + | ;;;;;;;;;;; Place in the category  | ||
| + | |||
| + |   </noinclude>{{#if:{{{Templates|}}}<noinclude>  | ||
| + | |||
| + | ;;;;;;;;;;;;;;;; If we're allowed in templates, just say we're in the category  | ||
| + | |||
| + |     </noinclude>|[[Category:{{{1}}}]]<noinclude>  | ||
| + | |||
| + | ;;;;;;;;;;;;;;;; Otherwise do it only if we're not in a template page  | ||
| + | |||
| + |     </noinclude>|{{not in template|[[Category:{{{1}}}]]}}<noinclude>  | ||
| + | |||
| + |   </noinclude>}}<noinclude>  | ||
| + | |||
| + | </noinclude></includeonly>  | ||
Current revision
This is the documentation for the template Template:Based on template
| 
 The template  
 
 Include it by putting at the top of the template 
{{Based on template|TemplateName}}
If you do, what you'll then get is this: The page is automatically included in the Category of the same name.  | 
To see how this template is implemented,
edit this page and examine the portion 
between <includeonly> and </includeonly>.

