Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Anchored list/doc

From Wikipedia, the free encyclopedia

This template can be used to create an ordered list which generates HTML anchors for every bullet point. This makes it much easier to maintain lists where anchors to individual entries are required.

Note that if you use it more than once on the same page, you'll need to use the |name= parameter every time after the first, and with a different name for each, so that the generated anchors are unique. A number or lowercase plain alphabet (non-accented) character is recommended - if you use an invalid character, it will be converted e.g. "x y z á" becomes "x_y_z_.C3.A1"

The anchors generated are of the form "alist-x" where x is the list item number (or with |name=2, the form "alist2-x"). So to link to the first entry of a list, use [[pagename#alist-1|linkname]].

Usage

[edit]
{{ anchored list
|First entry
|Second entry
|So on
...
|Last entry
}}
{{ anchored list |name=2
|First entry
|Second entry
|Third entry
}}
{{ anchored list |name=3
|First entry
|Second entry
|Third entry
}}

Up to 99 entries are supported.

See also

[edit]
Shortcut templates
Template Shortcut Result
{{Shortcut}} {{Sh}}
{{Shortcut compact}} {{Hsh}}
 Shortcut:  WP:THIS 
{{Shortcut mini}} {{Msh}}
WP:THISWP:THIS 📌
{{Template shortcut}} {{Tsh}}
{{Template redirect}} {{Tlr}}
{{Short URL box}} {{Urlb}}
{{Shortcut-style further links}} {{Msh}}
Further info
  • {{Anchor}} – Creates an HTML anchor that can be linked to
    • {{Visible anchor}} – Highlights the linked text, like this.
  • {{Section link}} – Link to an anchor or section
  • {{R for convenience}} – For placement on the redirect page
  • {{Glossary}}