Difference between revisions of "Template:Anchor/doc"

From EVE University Wiki
Jump to: navigation, search
m (Rewrite doc.)
m (Clarify limitations.)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
: {{T|Anchor|id}}
 
: {{T|Anchor|id}}
 
:; Parameters
 
:; Parameters
::; id : Identification of the anchor. Must be unique for the page used on. This uniqueness goes over {{Tl|Anchor}} ,headers and html/CSS ids
+
::; id : Identification of the anchor. Anchor names must be unique on a page, and must not duplicate any heading titles or CSS ids. Duplicate ids will not work as expected since the '''id''' links go to the first anchor with that name. This limitation includes the {{Tl|Anchor}} template, headers, and html/CSS ids.
  
 
<includeonly>[[Category:Link templates]]</includeonly>
 
<includeonly>[[Category:Link templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 09:46, 15 July 2024

Description
This template creates an invisible "anchor" tag that can be targeted by links in the same manner as headers.
Syntax
{{Anchor|<id>}}
Parameters
id
Identification of the anchor. Anchor names must be unique on a page, and must not duplicate any heading titles or CSS ids. Duplicate ids will not work as expected since the id links go to the first anchor with that name. This limitation includes the {{Anchor}} template, headers, and html/CSS ids.