Difference between revisions of "Template:Bare anchored list/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
imported>Zarex (→Usage) |
||
| Line 14: | Line 14: | ||
|First entry | |First entry | ||
|Second entry | |Second entry | ||
| − | | | + | |and so on |
| − | ... | + | |... |
|Last entry | |Last entry | ||
}} | }} | ||
</pre> | </pre> | ||
| + | |||
| + | Example: | ||
| + | {{bare anchored list | ||
| + | |First entry | ||
| + | |Second entry | ||
| + | |and so on | ||
| + | |... | ||
| + | |Last entry | ||
| + | }} | ||
Up to 99 entries are supported. | Up to 99 entries are supported. | ||
Latest revision as of 19:32, 9 September 2020
| This is a documentation subpage for Template:Bare anchored list. It contains usage information, categories and other content that is not part of the original template page. |
This template can be used to create an ordered list which generates numbered HTML anchors for every bullet point. This makes it much easier to maintain lists where anchors to individual entries are required.
The generated anchors are named "1", "2", etc., so naturally there should be only one instance of {{bare anchored list}} per page.
| Inserting an element in the middle of a list will break any backlinks to later elements of the list. So don't use this template for such lists; only use it if either the list is complete or any additions are guaranteed to be at the end. |
Usage
{{bare anchored list
|First entry
|Second entry
|and so on
|...
|Last entry
}}
Example:
- First entry
- Second entry
- and so on
- ...
- Last entry
Up to 99 entries are supported.
See also
- {{Anchored list}}
- {{Anchor}}
- {{Glossary}}
- {{Shortcut}}
- {{Visible anchor}}