ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Anchor

From ModEnc
Revision as of 22:24, 20 May 2008 by Vinifera7 (talk | contribs) (Well it is functional, but it seems to show weird symbols when prefix is not defined once i save the page, even though it works perfectly in preview mode and on wikipedia's sandbox. grrr..)
Jump to: navigation, search

Usage

{{Anchor|id|prefix?|hypertext?}}

Creates an anchor to this page specified by id, to easily reference the text specified by hypertext. If not empty, prefix_ will be added before id in the anchor namespace. prefix defaults to anchor if undefined. Hypertext for the anchor will be created if hypertext is not empty. hypertext defaults to id.

Example

{{Anchor|reference1}}

This code results in reference1


Well it is functional, but it seems to show weird symbols when prefix is not defined once i save the page, even though it works perfectly in preview mode and on wikipedia's sandbox. grrr..

{{anchor|omg}}
omg
{{anchor|omg|wtf}}
omg
{{anchor|omg|wtf|bbq}}
bbq
{{anchor|omg||bbq}}
bbq
{{anchor|omg||}} <-- view source