Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 16:35, 20 April 2024 by imported>Simanelix (add support for short template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Template:Documentation header Template:Shortcut

Usage

This template, Template:Tl, or its shortcut, Template:Tl, 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}}Template:Slink

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:

Template:Slink

es:Plantilla:Section link fr:Modèle:Lien de section ja:Template:Section link nl:Sjabloon:Sectie link pt:Predefinição:Link de seção th:แม่แบบ:Section link uk:Шаблон:Посилання на розділ

zh:Template:Format link
The above text is transcluded from Template:MC/Section link/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Section link/doc. (View all subpages of this page.)