Template:Anchor/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:Anchor.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Anchor.

Description

Inserts invisible HTML identifiers ("anchors") into the page. This allows for jumping to a particular page area, without creating a different visible section name.

Usage

This should be substituted within section headings. Otherwise, the template name itself will appear in edit summaries attached to that section, and may break edit summary section links to that section. It can be left unsubstituted elsewhere.

Outside section headings

{{Anchor|name|…}}

Inside section headings

{{subst:Anchor|name|…}}

Examples

#something interesting and #alternate title don't appear in the table of contents above but can still be clicked on. Spaces are legal. Problematic characters are ", #, |, and =.

Example 1

{{Lorem ipsum}}

{{Anchor|something interesting}} Something interesting.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Something interesting.

Example 2

==== Example section heading{{subst:Anchor|alternate title}} ====

Example section heading

History

Originally wikicode, the Wikipedia Lua version was installed to make substitution "clean": it prevents the entire code of the template from appearing upon substitution.

Further reading