Difference between revisions of "Template:Bare anchored list/doc"

From blackwiki
Jump to navigation Jump to search
imported>Manul
(copied from Template:anchored list/doc with modifications)
 
imported>Zarex
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
|First entry
 
|First entry
 
|Second entry
 
|Second entry
|So on
+
|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.
Line 29: Line 38:
 
* {{tl|Visible anchor}}
 
* {{tl|Visible anchor}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:list templates]]
+
[[Category:List formatting and function templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 19:32, 9 September 2020

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.

Usage

{{bare anchored list
|First entry
|Second entry
|and so on
|...
|Last entry
}}

Example:

  1. First entry
  2. Second entry
  3. and so on
  4. ...
  5. Last entry

Up to 99 entries are supported.

See also