Template talk:Anchor
From Wikipedia, the free encyclopedia
[edit] How to Use
{{anchor}} provides a convenient template for creating other anchors within documents, however, it doesn't do all work for you. Most of the time, you can use anchor like this: {{anchor|section_name}}. However, section name must contain only A-Z, a-z, 0-9, hyphens (-), colons (:) and periods (.) and must start with an alphabetical character. Thus, a section name like:
==This is a section==
Would be anchored like:
{{anchor|This_is_a_section}}
Here are a few more examples, the most notable caveat being that the period is used in place of the percent (%) to signify character encoding.
==Oh, I know, it's a goose!== {{anchor|Oh.2C_I know.2C_it.27s_a_goose.21}} ==Æther blast costs 345€ {{anchor|.C3.86ther blast costs 345.E2.82.AC}}
The easiest way probably is to use a sandbox, make a real heading with unicode characters in it, and see how it turns up in your URL.
The best place to place an anchor when you need it to refer to mulitple sections is here:
=={{anchor|Name1}}{{anchor|Name2}}{{anchor|Name3}}Real Name==
While it may seem convoluted, putting the anchors here has two purposes:
- First, on a section edit, you will be able to edit the anchors (as opposed to putting the anchors right before the heading)
- Second, almost emulates the regular behavior of section headings.
— Ambush Commander(Talk) 13:25, August 17, 2005 (UTC)