Vim Tips Wiki
Register
m (Lowercase "Examples and explanation")
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 10: Line 10:
   
 
To flag the tips:
 
To flag the tips:
*Edit tip 1 and insert <tt><nowiki>{{Duplicate|5}}</nowiki></tt> at the top.
+
*Edit tip 1 and insert <code><nowiki>{{Duplicate|5}}</nowiki></code> at the top.
*Edit tip 5 and insert <tt><nowiki>{{Duplicate|1}}</nowiki></tt> at the top.
+
*Edit tip 5 and insert <code><nowiki>{{Duplicate|1}}</nowiki></code> at the top.
   
 
You can flag several tips as being duplicates &ndash; see [[Template:Duplicate]]. Each ''Duplicate'' tip will be listed in [[:Category:Duplicate]] as a reminder that the tips need to be merged.
 
You can flag several tips as being duplicates &ndash; see [[Template:Duplicate]]. Each ''Duplicate'' tip will be listed in [[:Category:Duplicate]] as a reminder that the tips need to be merged.
Line 19: Line 19:
 
# Copy any wanted material from tip 5 into tip 1.
 
# Copy any wanted material from tip 5 into tip 1.
 
# Put the following line at the top of tip 5:
 
# Put the following line at the top of tip 5:
#:<tt><nowiki>{{Merged|1}}</nowiki></tt>
+
#:<code><nowiki>{{Merged|1}}</nowiki></code>
# If tip 5 contains a <tt><nowiki>{{Review}}</nowiki></tt> line, delete it (so tip 5 is not listed in [[:Category:Review]] as needing review).
+
# If tip 5 contains a <code><nowiki>{{Review}}</nowiki></code> line, delete it (so tip 5 is not listed in [[:Category:Review]] as needing review).
# Remove <tt><nowiki>{{Duplicate|1}}</nowiki></tt> from tip 5 (so tip 5 is not listed in [[:Category:Duplicate]] as needing merging).
+
# Remove <code><nowiki>{{Duplicate|1}}</nowiki></code> from tip 5 (so tip 5 is not listed in [[:Category:Duplicate]] as needing merging).
# Similarly, remove <tt><nowiki>{{Duplicate|5}}</nowiki></tt> from tip 1.
+
# Similarly, remove <code><nowiki>{{Duplicate|5}}</nowiki></code> from tip 1.
   
 
The Merged template will advise anyone viewing tip 5 that they should be reading tip 1 instead. It also flags tip 5 for deletion.
 
The Merged template will advise anyone viewing tip 5 that they should be reading tip 1 instead. It also flags tip 5 for deletion.

Latest revision as of 08:33, 15 July 2012

Vim Tip Guidelines
Quick reference
General guidelines
Titles and renaming a tip
Comments
Categories
Discussion page
Merging similar tips
Deleting a tip
Templates
Formatting code blocks
Entities and other magic
Script comments

In short[]

Tips which cover the same material should be merged. Keep the first similar tip, and delete the others (after copying any useful material to the tip you are keeping).

Examples and explanations[]

Flag duplicate tips[]

Suppose you notice that tips 1 and 5 cover essentially the same material, but you're not currently able to take the time to merge the tips. In that case, you would flag each tip as being a Duplicate to alert readers that the tips need to be merged. That will also help someone reading one tip, because they will see that there is another tip covering similar material.

To flag the tips:

  • Edit tip 1 and insert {{Duplicate|5}} at the top.
  • Edit tip 5 and insert {{Duplicate|1}} at the top.

You can flag several tips as being duplicates – see Template:Duplicate. Each Duplicate tip will be listed in Category:Duplicate as a reminder that the tips need to be merged.

Merge duplicate tips[]

Suppose you want to merge tip 5 into tip 1:

  1. Copy any wanted material from tip 5 into tip 1.
  2. Put the following line at the top of tip 5:
    {{Merged|1}}
  3. If tip 5 contains a {{Review}} line, delete it (so tip 5 is not listed in Category:Review as needing review).
  4. Remove {{Duplicate|1}} from tip 5 (so tip 5 is not listed in Category:Duplicate as needing merging).
  5. Similarly, remove {{Duplicate|5}} from tip 1.

The Merged template will advise anyone viewing tip 5 that they should be reading tip 1 instead. It also flags tip 5 for deletion.

See also[]