Template
Anchor
From Dogcraft Wiki
(Created page with "<span class="noexcerpt" id="{{{1}}}"></span>") |
m (Added category: Tool templates) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span class="noexcerpt" id="{{{1}}}"></span> | <span class="noexcerpt anchor {{{class|}}}" id="{{{1}}}"></span><noinclude> | ||
<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://dogcraft.net/wiki/Pagename#anchorname)", | |||
"example": "History", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"class": { | |||
"label": "Class", | |||
"description": "This property may be used to expand the base classlist (anchor and noexcerpt)", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Creates link anchor on the page for easier navigation. (Anchors can be jumped to using https://pageurl#anchorname)", | |||
"paramOrder": [ | |||
"1", | |||
"class" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata>[[Category:Tool templates]] | |||
</noinclude> |
Latest revision as of 10:54, 4 December 2023
Creates 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 |
Class | class | This property may be used to expand the base classlist (anchor and noexcerpt) | String | optional |