Jump to content

Template:Lead to body link/doc

From Wikipedia, the free encyclopedia

Usage[edit]

This template provides an easy way to create section links that are differentiable from generic wikilinks.

{{lead to body link|TemplateData|foobar}}

becomes foobar.

This template accepts two unnamed parameters:

  • 1 - the name of the section to be linked to
  • 2 - the text to display

Note that this template can only link to sections that are on the same page.

Example[edit]

Instead of [[#TemplateData|foobar]] which returns foobar, or {{section link||TemplateData}} which returns § TemplateData (unsuitable for a lead section), {{lead to body link|TemplateData|foobar}} returns foobar.

lblink or l2b can be used as aliases: {{lblink|TemplateData|foo}}, {{l2b|TemplateData|bar}} returns foo, bar.

TemplateData[edit]

This template provides an easy way to create section links that are differentiable from generic wikilinks.

Template parameters

ParameterDescriptionTypeStatus
Page name1

The name of the section to be linked to

Stringrequired
Label2

The text to display

Stringrequired