Template
Anchor
From Dogcraft Wiki
m (removing extra newline so this template stops breaking headings everywhere) |
m (Added category: Tool templates) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span class="noexcerpt" id="{{{1}}}"></span><noinclude> | <span class="noexcerpt anchor {{{class|}}}" id="{{{1}}}"></span><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 9: | 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" | "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 |