Template:Section link/doc

Usage
This template is appropriate for use to create any page sections, or to reference sections within the same page, and gives more typical view.

Syntax (overview)

 * or, link to section of other article. → Example:
 * , link to section of other article, only displaying the section's title → Example:
 * , for usage within the same page, supply an empty first parameter → Example:

Single section
This template, section link, or its shortcut, slink, is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§).

Instead of:

France

...you can write:

...or

Multiple sections
This template may generate consecutive links to several sections of the same page. You can write:

...or:



Suppressing page name
Sometimes the page name needs not to appear, e.g. to avoid redundancy and wordiness. For the page on which the template is used, not specifying a page name creates a section link only. The following: ...is the equivalent of: ...and renders as:

For other pages, y can be used to suppress the page name. This can be used when the page name is clear from context, such as on talk pages referring to the article being discussed.

Underscores
It is a practice to copy article and section name from the browser's address bar. When doing that, the article and section names may contain underscores:

This template automatically replaces the underscores with space characters:

To retain the underscores in the rendered output, use yes