Talk:Rules/TemplatesFrom MozillaZine Knowledge Base
[edit] Asqueella's Proposal(Summarized by Mozcerize) We shall be moving to the use of categories, and it would be really nice if a "This article applies to..." message was generated from categories data. This can be done using templates with parameters. Without more powerful templates it won't be very clean, but it's still pretty cool. The basic idea is to create an "Applies to" template with parameters that has both the "This article applies to..." message and the [[Category:...]] links that put the article in appropriate category/categories. Since mediawiki's template support is very limited at this moment, we'll have to create a few different templates, each with different number of params, ie: {{appliesto1|Firefox}} and {{appliesto2|Firefox|Mozilla Suite}}. We can create a template like (please suggest a name for it, remember it should be easy to type) {{appliesto2 subsection|Firefox|Thunderbird|Issues}} that becomes : ''This article applies to [[Firefox]] and [[Thunderbird]] [[Category:Firefox]] [[Category:Thunderbird]] [[Category:Firefox issues]] [[Category:Thunderbird issues]] Additional text (mentioned by wintogreen) may be provided through an additional parameter or put in a separate paragraph, right after the template call. I have set up an example here: Browser will not start up using Template:test. The article is not perfect, but it requires the most complex template to be used. What do you think?
[edit] Started adding content to the article itselfI started adding content to the article, feel free to correct me or add information. --asqueella
[edit] ConcernsI thought about using templates a bit more; looks like
[edit] List of useful templates for "content organizers"I'm making a list of templates which will be useful for those involved in reorganizing the KB through the use of categories. Useful templates listed on | Special pages - All pages - Templates are:
Other templates not currently listed on that page (and perhaps not yet implemented are:
Asqueella, if these last two are not yet implemented, would you mind doing so? Thanks!
Note that we should decide on a format for template names, particularly as regards whether or not they should contain spaces and use camelCase. Personally, I prefer no spaces and lowercase, as it's easier to type ;-) --Mozcerize 08:55, 18 September 2005 (PDT) I went ahead and added these to the article, more or less as is, just to make it easier for people to know what templates are actually being used. --wintogreen 18:44, 6 November 2005 (PST)
[edit] Pretty tableI've basically copied over the prettytable template from Wikipedia word for word except for toning down the gray background color a little. Just mentioning it here in case there's an issue with it. --hao2lian [edit] New template for articles to be updatedI was thinking that since the 1.5 releases are not far off, it might be nice to have a template something like this to slap onto articles that need to be updated. (This is based on the cleanup template.) It would also include [[Category:Articles to update|{{PAGENAME}}]] at the end. The wording isn't exactly elegant, but I figure it would be simpler to have a shared template than separate ones for Firefox and Thunderbird. Maybe someone else can do better with the wording. Anyway, the basic idea is to flag the page for kb users (in case they're perplexed about "wrong" info in articles) and for kb editors (so we can more easily keep track of these articles). What do you think? --wintogreen 03:16, 31 October 2005 (PST)
[edit] Delete this articleThis article doesn't seem to be of much use - there are no rules defined for templates that aren't defined elsewhere. Templates are listed here, and we can put the usage of each template on its talk page.--Np 20:22, 8 September 2006 (UTC) |
|