Difference between revisions of "Template:TemplateDoc"

From Conservapedia
Jump to navigation Jump to search
m (Update documentation)
m (Protected "Template:TemplateDoc" [edit=sysop:move=sysop])
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
{{TemplateDoc|pages=Template documentation pages|purpose=Documenting templates (this template)}}
 
{{TemplateDoc|pages=Template documentation pages|purpose=Documenting templates (this template)}}
{{Parms2|
+
{{Parms|
{{Parm2|Name|The name of the template|no|Defaults to the name of the page}}
+
{{Parm|Name|The name of the template|no|Defaults to the name of the page}}
{{Parm2|pages|What type of pages to use the template on|yes}}
+
{{Parm|pages|What type of pages to use the template on|yes}}
{{Parm2|purpose|The purpose of the template|yes}}
+
{{Parm|purpose|The purpose of the template|yes}}
{{Parm2|cat|A category that the page is added to (see notes)|no|Defaults to "(none)"}}
+
{{Parm|cat|A category that the page is added to (see notes)|no|Defaults to "(none)"}}
 
}}
 
}}
 
Notes:
 
Notes:

Latest revision as of 10:07, July 26, 2007


Template: TemplateDoc
Use on Template documentation pages
Use for Documenting templates (this template)
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
Name The name of the template no Defaults to the name of the page
pages What type of pages to use the template on yes
purpose The purpose of the template yes
cat A category that the page is added to (see notes) no Defaults to "(none)"

Notes:

  • This is a category that this template adds to any page on which it is placed. That is, it is a category for categorising the article, not the template. If the template does not add a category to pages, leave this parameter blank (or omit it).
  • If more than one category is applied by the template, or alternative categories depending on parameters, put (see note) and list them separately on the documentation page. NB: This has a bug, but do it anyway.