Template
Anchor link
From Dogcraft Wiki
(Created page with "<includeonly><templatestyles src="Template:Anchor_link/styles.css" /><span class="noexcerpt anchor header-anchor" id="{{{1}}}"></span></includeonly><noinclude> {{TemplateStyles}} === Example === {{anchor link|1}} This sentence has an anchor link in front of it <templatedata> { "params": { "1": { "label": "Name", "description": "This is the text that may be added to the end of a link after a \"#\" to jump to the anchor's position (eg.: https://dogcr...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Anchor_link/styles.css" />[[#{{{1}}}| | <includeonly><templatestyles src="Template:Anchor_link/styles.css" />[[#{{{1}}}|{{anchor|{{{1}}}|class=anchor-visible}}]]</includeonly><noinclude> | ||
{{TemplateStyles}} | {{TemplateStyles}} | ||
An expanded version of {{t|anchor}} which includes a visible and clickable '#' in front of the anchored header or paragraph for easier navigation. The '#' is only visible when the header or paragraph is hovered, focused or targeted. | |||
=== Example === | === Example === | ||
{{anchor link|1}} This sentence has | <code><nowiki>{{anchor link|1}}</nowiki></code>: {{anchor link|1}} This sentence has a visible anchor link in front of it. | ||
<templatedata> | <templatedata> | ||
Line 15: | Line 18: | ||
} | } | ||
}, | }, | ||
"description": "Creates link anchor on the page for easier navigation. (Anchors can be jumped to using https://pageurl#anchorname)", | "description": "Creates visible and clickable link anchor on the page for easier navigation. (Anchors can be jumped to using https://pageurl#anchorname)", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1" |
Revision as of 21:34, 3 December 2023
This template uses TemplateStyles: |
An expanded version of {{anchor}} which includes a visible and clickable '#' in front of the anchored header or paragraph for easier navigation. The '#' is only visible when the header or paragraph is hovered, focused or targeted.
Example
{{anchor link|1}}
: This sentence has a visible anchor link in front of it.
Creates visible and clickable link anchor on the page for easier navigation. (Anchors can be jumped to using https://pageurl#anchorname)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 | This is the text that may be added to the end of a link after a "#" to jump to the anchor's position (eg.: https://dogcraft.net/wiki/Pagename#anchorname)
| String | required |