Template:Anchor: Difference between revisions
Cross your fingers... |
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.. |
||
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||}} |
Revision as of 20:24, 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
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor
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}}
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
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}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf}}
Template loop detected: Template:Anchor
{{anchor|omg|wtf|bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||bbq}}
Template loop detected: Template:Anchor
{{anchor|omg||}} <-- view source
Template loop detected: Template:Anchor