Forum:Template for category info
From Vim Tips Wiki
I'm moving towards trying to clean up tips on searching, so the first job is to make a category for searching. I think I've got my brain around it, but now I've got the urge to make a template to standardise category descriptions.
What do you think of the following? Will it work? Is it worthwhile?
Create Template:CatInfo with wikitext:
[[Category:{{{parent}}}]]
'''This [[m:Help:Category|category]] is for tips about {{{name}}}.'''
{{ #if: {{{help|}}}
|== References ==
*{{help|{{{help}}}}}
Example usage – create Category:Searching with wikitext:
{{CatInfo|name=searching|parent=Usage|help=pattern.txt}}
This would display (I hope):
This category is for tips about searching.
[edit] References
--JohnBeckett 10:22, 13 July 2007 (UTC)
If I understandard correctly, this {{CatInfo}} template would serve to write category pages.
Somewhere this is a good idea as it would help have an uniform look accross all category pages. This is useful: everytime I open another category page because I can't never remember whether I've filled them with tips related to xxxx or xxx related tips.
However, I'm afraid some categories are quite unique and may:
- be tied to several help topics,
- have a more complex description ; see Category:Brackets
If it could help people define new (missing and pertinent) categories, why not.
--Luc Hermitte 12:23, 13 July 2007 (UTC)
OK. I've created Template:CatInfo and have tried it on a couple of categories. See Category:Brackets and Category:Searching.
If there were several help references, you could just add them below the template. However I'm sure you're right and some categories will need custom editing.
--JohnBeckett 05:16, 14 July 2007 (UTC)