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

Template:Anchor: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Vinifera7 (talk | contribs)
m 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..
Vinifera7 (talk | contribs)
m Reverted: Just kidding.. it works! Yay!
 
Line 8: Line 8:
This code results in {{Anchor|reference1}}
This code results in {{Anchor|reference1}}
</noinclude>
</noinclude>
''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..''
<pre>{{anchor|omg}}</pre>{{anchor|omg}}
<pre>{{anchor|omg|wtf}}</pre>{{anchor|omg|wtf}}
<pre>{{anchor|omg|wtf|bbq}}</pre>{{anchor|omg|wtf|bbq}}
<pre>{{anchor|omg||bbq}}</pre>{{anchor|omg||bbq}}
<pre>{{anchor|omg||}} <-- view source</pre>{{anchor|omg||}}

Latest revision as of 20:27, 20 May 2008

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