Template:Article section/doc
![]() | This is a documentation subpage for Template:Article section. It may contain usage information, categories and other content that is not part of the original template page. |
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 § Early life 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:
- 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
- {{Section link}}
TemplateData
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Section name | 1 | Name of the section in the current/associated article to which you'd like to link. | String | required |