Help:Procedures - ArchWiki (original) (raw)

A collection of check lists to be used when performing complex changes to articles or other maintenance operations.

Sections

Move a section within the same page

The move should be done in a single edit that does not change anything else:

  1. Cut the text to be moved. Do not save the page now, i.e. do not perform the move in two edits—the first removing the section and the second pasting it—or in the second edit it will seem that you are the author of the section, especially if the accompanying edit summary is not clear.
  2. Paste the cut text at the new position.
  3. Adapt the heading level if needed, but do not make any other adaptations to the content for the moment, otherwise the modifications will not be visible in the resulting edit diff.
  4. Save the page, properly writing the edit summary.

Now you can proceed to editing the section text normally, as required.

Split section to a new subpage

This procedure is useful when moving a section of an article that has become too long to a subpage of that article.

  1. Copy the entire section content.
  2. Open the destination subpage in another editor (another browser tab).
  3. Paste the copied content in the destination editor without any modification.
  4. Save the destination subpage with an edit summary like Content split from [[Origin article#Section]].
    • Make sure to include a link to the original page, or it will seem that you are the author of the content.
  5. In the origin editor, replace the split content with a link to the destination subpage either leaving the section heading in place, or adding a link to the Related articles box of the article.
  6. Save the origin page with an edit summary like Content moved to [[Destination subpage]].
  7. Re-open the destination subpage in an editor.
  8. Categorize the destination subpage like the origin article.
  9. Adapt the levels of the headings of the new subpage to start from the second level.
    Tip This step can be done automatically with Wiki Monkey's plugin.
  10. Save the destination subpage with a proper edit summary.
  11. Check and fix any broken links to sections in both the origin and destination pages, and in pages linking to the origin page.
    Tip This step can be done automatically with Wiki Monkey's plugin.

Pages may occasionally contain broken section links, which is the result of sections being renamed, merged, moved or deleted from the pages. All pages in the main namespace are regularly checked by Lahwaacz.bot, which checks all links and marks them with Template:Broken section link when section links are broken.

To fix a broken section link, do not simply remove the reference to the section links from the wiki, do some research first:

All pages with broken section links are tracked in Category:Pages with broken section links.

Redirects

Deal with talk pages after redirecting a page to another

If page A has been redirected to page B, for example after merging the content of A into page B, and Talk:A exists:

Fix double redirects

  1. Read this section to understand what redirects are.
  2. Check out Special:DoubleRedirects to see if there are any.
  3. For example, if you see Pastebin Clients (Edit) →‎ Common Applications →‎ List of applications, it means Pastebin Clients redirects to Common Applications, and Common Applications redirects to List of applications. Therefore, Pastebin Clients is a double redirect.
  4. To fix it, edit Pastebin Clients and change #REDIRECT [[Common Applications]] to #REDIRECT [[List of applications]] to skip the middleman.
  5. Enter an edit summary such as Fixed double redirect and save.

Tip This task can be done automatically with Wiki Monkey's plugin.

Editing over a redirect

See mw:Help:Redirects#Viewing a redirect.

Revision history as a git repository

This article or section needs language, wiki syntax or style improvements. See Help:Style for reference.

You can save page revisions as git(1) commits, and then use traditional Git tools—e.g. git-bisect(1), git-blame(1), git-log(1), etc.—for history investigation. For example, see Gitify MediaWiki.

See also:

ArchWiki contains many broken links to packages not found either in official repositories or AUR, which is the result of packages being merged, split or removed from the repositories. All pages in the main namespace are regularly checked by a bot, which checks all instances of AUR, Grp and Pkg templates, tries to automatically update them and marks them with Template:Broken package link when it is not possible to update them automatically.

To fix a broken package link, do not simply remove the reference to the packages from the wiki, do some research first:

To help with manual updates, each "broken package link" template provides a hint:

All pages with broken package links are tracked in Category:Pages with broken package links. There is also an automatic report page at User:Lahwaacz.bot/Reports/archpkgs.

Note The bot updates only package links, but not the text around them, which is too context-sensitive. For example, in revision 308608 the AUR link was changed to Pkg, but the surrounding text still says that the package is in AUR. These instances can be fixed and "future-proofed" by simply removing the surrounding description of where the package is; see also Help:Style#Package management instructions. We currently have no means of automatically tracking this kind of problems, suggestions are welcome.

Maintenance of listings of applications

There are a number of lists of applications articles, mostly at List of applications but it also links to sub pages containing listings, e.g PDF, PS and DjVu. Because of the sheer number of them, listings need constant maintenance due to entries becoming irrelevant, breaking, changing or moving to a different place.

See #Fix broken package links above and to a lesser degree also #Fix broken section links.

Obvious signs for an entry needing maintenance are dead or broken links. A common workflow would be as follows:

  1. Is the entry still relevant?
    • E.g a floppy disk manager or token ring networking tool would not be relevant anymore.
    • As are tools for services that ceased to exist, e.g ICQ.
  2. Is it still maintained?
    • Generally, archived repositories also include an explicit hint that it is unmaintained and abandoned, but if the last commit was many years ago, it counts as the same thing.
    • While some programs are considered finished and will stay in working condition for years to come, this is generally an edge case and software should be actively maintained by upstream.
    • Also consider the state of the package. Does it build? Will it break soon? If you discovered that upstream was archived and it serves no use anymore, because there are better alternatives anyways, you may also want to file a deletion request for the package in the AUR.
  3. Are there alternatives listed?
    • Even if upstream is not in the best condition but it is still usable, you may want to avoid removing (one of the) last entries in a listing. Of course, this depends on the relevance of the listing itself. There is no sense in keeping a listing if all entries stopped working entirely.

Page removal

When a page is archived, the guidelines at ArchWiki:Archive#How to archive a page state that all link to the page should be removed prior to archival. In some contexts (in particular for translations, where the context of the sentence does not allow the simple removal of the link without altering the experience of the reader), this might not be done when archiving the page.

To fix a link to an archived page, do not simply remove the link from the page without doing some research first:

All pages with links to archived pages are tracked in Category:Pages with links to archived pages.

Remove an entire page

New but inappropriate page

Old article become obsolete

  1. Mark with one of the following, in order of preference:
  2. Wait at least 7 days.
  3. In absence of objecting discussions, or when these eventually resolve in favor of removal, perform the proposed action:

Create a new page and its translation

See ArchWiki Translation Team#Create a new page and its translation.

Move a discussion to another talk page

  1. Copy the discussion text to the destination talk page, making sure to add, between the new heading and the pasted text, a note like:
    ''[Moved from [[Origin talk page#Heading]]. -- ~~~~]''
  2. Strike the heading in the origin talk page and replace the content with a note like:
    ''[Moved to [[Destination talk page#Heading]]. -- ~~~~]''

Rename a category

  1. Move the category page the same way as you would move a normal page, ensuring a redirect is created from the old title to the new one. This will only rename the category page itself, the members of the category will not be recategorized.
  2. Recategorize all members of the old category to use the new one.
    Tip This can be done automatically with wiki-scripts' recategorize-over-redirect.py, which relies on the redirect from the old category to detect the new name and thus it is not limited to changes in capitalization or similar heuristics.
  3. Update all interlanguage links.
  4. Update all backlinks of the old category to refer to the new one.
    Tip This can be done automatically by running Wiki Monkey's RegExp substitution plugin on the old category's Special:WhatLinksHere page, with a substitution like (\[\[|\{\{Related2?\|):[ _]*[Cc]ategory[ _]*:[ _]*[Oo]ld[ _]name[ _]*(#|\||\]\]|\}\}) -> $1:Category:New name$2 (assuming the old category name is "Category:Old name").
  5. Mark the old category with Template:Archive, without destroying the redirect (the old category is likely still linked from Table of contents).
    Tip If the category has no relevant history, it can be deleted by an administrator, after ensuring that steps 2.-4. have actually been performed.

Patrolling

Checking the recent changes can be done by everybody. Maintenance Team members however can also mark edits and pages as patrolled. This section is primarily about the things everybody can do.

Keep in mind that patrolling the recent changes obviously requires a more constant commitment, while fixing other things is more flexible and can be done whenever you have time.

Recent changes patrolling

There are two main ways you can patrol the recent changes:

For each edit, or group of edits made to the same page, you should assess if it is questionable, according to your experience and knowledge, also taking into account the list of the most frequent problems.

Tip Make patrolling easier by taking the following steps:

Bot edits

MediaWiki does not display edits by bots in the recent changes by default. It may be desirable to check when one of the bots modified pages since it may indicate that changes are necessary. The bots flag broken package links, broken section links and dead links.

It is highly recommended to fix the flagged things as soon as they appear before they get buried under a ton of changes. This also applies to dead links, which are usually external resources.

Common problems and solutions

Abuse

Fortunately, spam and other things that violate the Code of conduct are quite uncommon, but it will still happen occasionally.

The most important task is also applying here. Make sure to fight abuse immediately:

  1. First and foremost, undo all the damage.
  2. Contact the Maintenance Team. You can also do so by joining the ArchWiki IRC channel and mentioning the administrators, which are usually all channel operators.

If there is a wave of abuse and undoing the damage would give the abuser more time to act, report it first.

The MediaWiki patrolling feature

Note This feature can only be used by members of the Maintenance Team.

Marking changes as patrolled is a very useful way to avoid doing things twice when not necessary. Every member of the Maintenance Team is encouraged to make use of this feature to save the time of others.

Sometimes, especially when someone does not have experience with a topic, it is not clear if one should mark the edit as patrolled or not. Not marking an edit as patrolled means that other members of the Maintenance Team are more likely to look at the change. Here are some tips which may help to patrol more changes:

All of these points imply that the change must not violate the code of conduct or the rules described in ArchWiki:Contributing.

Other

There are other things which need to be taken care of:

Request solving

See ArchWiki talk:Requests.

Tip