Template:Anchor/doc

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by K6ka (talk | contribs) at 20:52, 19 March 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jump to navigation Jump to search

Description

This creates one or more HTML anchors (up to 10) so you can jump to where this template appears with [[pagename#anchorname]]. The result of the template should not be visible on the page.

Syntax

Type {{Anchor|<anchorname1>|<...>|<anchorname10>}} somewhere.

Example

{{Anchor|jumphere}}
.
.
.
.
.
.
.
.
.
.
.
Click me to jump to anchor.

Limitations

Character Code Template Meaning
" &quot;
&#34;
N/A (double) quotation mark
# &#35; N/A hash
| &#124; {{!}} pipe
= &#61; {{=}} equals

The characters listed on the right will cause problems with the template and should not be used. If you need to use them, replace them with the HTML character code provided. For example, if you need to use quotation marks, substitute them with &quot; or &#34;.

Alternatively, if you need to use pipe (|) or equal sign (=) characters, you may use the {{!}} and {{=}} templates, respectively, to use them.

Credits

The template code was taken from the Templates Wiki on Wikia.

TemplateData

This is the TemplateData documentation for this template used by the VisualEditor and other tools.

TemplateData for Anchor

This template inserts one or more HTML anchors in a page, which can then be linked to using [[#location|...]] syntax, or by going to https://sims.miraheze.org/Name_of_page#Anchor_title. This is useful when you need to link to very specific parts in an article.

Template parameters

ParameterDescriptionTypeStatus
First anchor1

First anchor value.

Stringrequired
Second anchor2

Second anchor value.

Stringoptional
Third anchor3

Third anchor value.

Stringoptional
Fourth anchor4

Fourth anchor value.

Stringoptional
Fifth anchor5

Fifth anchor value.

Stringoptional
Sixth anchor6

Sixth anchor value.

Stringoptional
Seventh anchor7

Seventh anchor value.

Stringoptional
Eight anchor8

Eight anchor value.

Stringoptional
Ninth anchor9

Ninth anchor value.

Stringoptional
Tenth anchor10

Tenth anchor value.

Stringoptional