| abstract
| - For example, there may be categories: VimTip Usage Folding The purpose of the is to allow readers to easily find all tips that relate to using folding in Vim. If a tip concerns folding, it should be in the Folding category (which has the Usage category as its parent). It should not also be in the Usage category, because that would be redundant. An exception is the VimTip category, which is meant to collect all tips. See all categories for a list of all the categories, including some that deal with the rest of the wiki. Categories for Vim tips start at . Here is an ajax based category tree (requires javascript) using VimTip To track the review process, there is a statistics page for each category: Just append /stats to the URL, or follow the link below the headline. See and . Think twice before you add a new category. A category should contain a reasonable number of tips. It makes little sense to add a category just for one tip. 1.
* You may edit a tip on folding and find the wikitext: |category1=Usage 2.
* The tip template uses that line to put the tip in the Usage category (which will be shown at the bottom of the tip page). In that case, you should change the category by replacing "Usage" with "Folding", so it reads: |category1=Folding 3.
* If the tip is not in the Usage category, you would simply add the above line to the bottom of the tip template. A tip can be in more than one category. For example, a tip on folding Python programs should be in and . However, multiple categories should not be predecessors of each other. So don't put a tip in category Folding and category Usage. Here is an example showing categories in a TipImported template (the same procedure works with the TipNew and the TipProposed templates): {{TipImported |id=741 |previous=740 |next=742 |created=June 7, 2004 |complexity=intermediate |author=Anon |version=6.0 |rating=21/11 |category1=Folding |category2=Python |category3= }} You can insert up to six categories using parameters category1, category2, category3, ... category6. In this example, category3 has a blank value, so it will have no effect. Note that "VimTip" does not appear in the wikitext – it is inserted automatically by (on each tip imported from vim.org), or (on each accepted new tip created on this wiki). Proposed new tips (not yet accepted) use which inserts . After editing a tip, click Preview to preview the result. The last line of the page will list the categories, allowing you to confirm that your edit will be successful when you save it. Put the categories just before the "}}" as shown above (the "}}" should be on a line by itself). The traditional method of assigning a page to the Folding category would be to include the following line at the bottom: [[Category:Folding]] That method also works, but we are avoiding it to reduce confusion when users edit the Comments section. Periodically, a bot is run to move categories from the body of the tip into the tip template (however, the bot does not move a category unless it is on a line by itself, with no other wikitext, and the bot does not move ).
|