Template
Anchor
From Dogcraft Wiki
m (added templatedata (long overdue)) |
m (Added category: Tool templates) |
||
(5 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> | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": "Name", | "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)", | "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)", | ||
Line 10: | Line 9: | ||
"type": "string", | "type": "string", | ||
"required": true | "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)", | "description": "Creates link anchor on the page for easier navigation. (Anchors can be jumped to using https://pageurl#anchorname)", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "1", | ||
"class" | |||
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata>[[Category:Tool templates]] | ||
</noinclude> | </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 |