Template:Section link

From Parallel Wiki
Revision as of 05:03, 31 October 2023 by Diamondback88 (talk | contribs) (1 revision imported: Imported from minecraft.wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[view] [edit] [history] [⧼smw purge⧽]Documentation
Shortcut

Usage

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 (§).

This template is intended primarily for use in hatnotes. It can also be used in running body text to link to a different section (in optionally a different article), when it doesn't reference the main subject of the text.

Syntax

  • {{slink|Article|Section}}, link to section of other article.
  • {{slink||Section}}, for usage within the same article, supply an empty first parameter.

Example

Instead of:

[[Zombie#Drops]]Zombie#Drops

...you can write:

{{slink|Zombie|Drops}}Zombie § Drops

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:

{{slink||Suppressing page name}}

...is the equivalent of:

[[#Suppressing page name|§ Suppressing page name]]

...and renders as:

§ Suppressing page name


nl:Sjabloon:Sectie link pt:Predefinição:Link de seção

[view] [edit] [history] [⧼smw purge⧽]The above documentation is transcluded from Template:Section link/doc.