Template:Article section/doc

From blackwiki
Jump to navigation Jump to search

Usage

This simple template is used to generate a link to a certain section of the current/associated article or other non-talk page, and render an appropriate section mark (§). This link points to a section of the article or page, even if it the template is used within that article's talk page.

Markup Renders as
Are the dates in {{article section|Early life}} accurate? ~~~~

Are the dates in Script error: No such module "Section link". accurate? User:Example 00:00, 1 January 2000 (UTC)

This template is meant to save the editors from writing the same thing twice. For example, instead of the following:

[[History of IBM#1969: Antitrust, the Unbundling of software and services|§ 1969: Antitrust, the Unbundling of software and services]] within Talk:History of IBM, or
[[#1969: Antitrust, the Unbundling of software and services|§ 1969: Antitrust, the Unbundling of software and services]] within History of IBM article

...you can write:

{{Article section|1969: Antitrust, the Unbundling of software and services}}

...which is much shorter and does not require you to search for the section mark character.

Both generate:

Script error: No such module "Section link".
Q: What if the target anchor is different from what must be displayed?
A: This might happen if the section title contains characters that cannot appear in an HTML anchor or HTML ID. In that case, you are already in need of writing the ID and the display text separately; use of this template would be pointless as it only makes you type an additional "article section|". Stick to standard Wikipedia linking syntax.

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Article section

This simple template is used to generate a link to a certain section the current/associated article and render an appropriate section mark (§). This link points to a section of the article even if the template is used within the article's talk page. This template is meant to save the editors from writing the same thing twice.

Template parameters

ParameterDescriptionTypeStatus
Section name1

Name of the section in the current/associated article to which you'd like to link.

Stringrequired