Difference between revisions of "Template:TemplateDoc"
Jump to navigation
Jump to search
(quote marks) |
(Change appearance of category listing, and add bug note.) |
||
| Line 8: | Line 8: | ||
| ''Use for'' ||{{{purpose}}} | | ''Use for'' ||{{{purpose}}} | ||
|- | |- | ||
| − | | ''Category'' ||{{#if:{{{cat|}}}|[[:category:{{{cat}}}]]|(none)}} | + | | ''Category'' ||{{#if:{{{cat|}}}|[[:category:{{{cat}}}|{{{cat}}}]]|(none)}} |
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{TemplateDoc|pages=Template documentation pages|purpose=Documenting templates (this template)}} | {{TemplateDoc|pages=Template documentation pages|purpose=Documenting templates (this template)}} | ||
| Line 17: | Line 17: | ||
{{Parm|cat|yes|A category that the page is added to (see note)|"(none)"}} | {{Parm|cat|yes|A category that the page is added to (see note)|"(none)"}} | ||
}} | }} | ||
| − | Note: 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. | + | Note: 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.'' |
</noinclude> | </noinclude> | ||
Revision as of 17:03, May 29, 2007
| Template: TemplateDoc | |
|---|---|
| Use on | Template documentation pages |
| Use for | Documenting templates (this template) |
| Category | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| Name | Yes | The name of the template | The name of the page |
| pages | no | What type of pages to use the template on | |
| purpose | no | The purpose of the template | |
| cat | yes | A category that the page is added to (see note) | "(none)" |
Note: 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.