Template:Anchor/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
k6ka>K6ka No edit summary |
m (1 revision imported: Import from https://sims.wikia.com) |
||
Line 1: | Line 1: | ||
The template <nowiki>{{</nowiki>[[{{ns:Template}}:{{BASEPAGENAME}}|{{lc:{{BASEPAGENAME}}}}]]<nowiki>}}</nowiki> inserts one or more [[Wikipedia:HTML element#Anchor|HTML anchor]]s in a page. Those locations can then be linked to using <code><nowiki>[[#link|...]]</nowiki></code> syntax. {{#ifeq:{{BASEPAGENAME}}|Visible anchor| Unlike {{tl|Anchor}}, the first parameter will be visible text on the page. See the "[[#Usage details|Usage details]]" section for an example.|}} |
|||
⚫ | |||
{{Wikipedia}} |
|||
==Description== |
|||
This creates one or more HTML anchors (up to 10) so you can jump to where this template appears with <code><nowiki>[[</nowiki></code>''pagename''<code>#</code>''anchorname''<code><nowiki>]]</nowiki></code>. The result of the template should not be visible on the page. |
|||
==Syntax== |
|||
Type <code>{{t|Anchor|anchorname1|...|anchorname10}}</code> somewhere. |
|||
==Example== |
|||
:<code><nowiki>{{Anchor|jumphere}}</nowiki></code> → {{Anchor|jumphere}} |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:. |
|||
:[[#jumphere|Click me to jump to anchor]]. |
|||
==Credits== |
|||
The template code was taken from the [[wikia:w:c:templates:Template:Anchor|Templates Wiki]] on Wikia. |
|||
⚫ | |||
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 21:51, 22 February 2019
The template {{anchor}} inserts one or more HTML anchors in a page. Those locations can then be linked to using [[#link|...]]
syntax.
This page uses content from Wikipedia. The original article was at Template:Anchor/doc. The list of authors can be seen in the page history. As with The Sims Wiki, the text of Wikipedia is available under the Creative Commons Attribution-ShareAlike 3.0 license. |