Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

Redirect articles



Redirect articles allow to create an article with a redirection to another article or even a title or anchor in another article[1]
This article must be in the same package as the "redirect" articles itself
. These articles can contain only one "redirect" element.

Redirect articles content

The "redirect" article element has the following attributes:
  • "desc": the redirect article description
  • "redirectTo": the id of the redirected article (and optionnally chapter or title). It has the same syntax as the ref element
It will be possible to link to this article by any interwiki elements (such as ref), and the redirect article title will be visible in the categories, the dictionary, and the search box. These will link to the article referenced by the redirection.

Note that as for regular articles, you can add meta and altTitle elements in redirect articles.

Examples

Redirection to another article

  <redirect desc="redirect article" redirectTo="origin article" />

Redirection to an anchor in another article

  <redirect desc="redirect article" redirectTo="origin article#title" >
     <meta desc="meta redirect header" />
  </redirect>

Notes

  1. ^ This article must be in the same package as the "redirect" articles itself

See also


Categories: structure | syntax

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.