Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Anchor: Difference between revisions

Template page
cat / doc
backwards-compatible {{{anchor|{{{1|anchor}}}}}} to also allow a simple {{anchor|NAME}} as on WP
Line 1: Line 1:
<span id="{{{anchor|anchor}}}" /><noinclude>
<span id="{{{anchor|{{{1|anchor}}}}}}" /><noinclude>


 
==Usage {{anchor|Example anchor}}==
----
Inserts a HTML anchor in a page at the location of its invocation, enabling direct #Links to this location.
Inserts a HTML anchor in a page at the location of its invocation, enabling direct #Links to this location.


'''Code:''' <nowiki><</nowiki>span id="<nowiki>{{{</nowiki>anchor|anchor}}}" />
;Code
: <nowiki><</nowiki>span id="<nowiki>{{{anchor|{{{1|anchor}}}}}}</nowiki>" />


'''Usage:''' <nowiki>{{</nowiki>anchor|anchor=''anchor_name''}}
;Usage
: <nowiki>{{</nowiki>anchor|''anchor_name''}}
: <nowiki>{{</nowiki>anchor|1=''anchor_name''}}
: <nowiki>{{</nowiki>anchor|anchor=''anchor_name''}}


===Example===
==Example==


  ====Header <nowiki>{{</nowiki>anchor|anchor=Example anchor}}====
  ====Usage <nowiki>{{</nowiki>anchor|Example anchor}}====
or
====Usage <nowiki>{{</nowiki>anchor|anchor=Example anchor}}====


''[[Template:Anchor#Example anchor]] or [[#Example anchor]] (on this page) will now link to the section called "Header", as shown below.''
''[[Template:Anchor#Example anchor]] (from another page) or [[#Example anchor]] (from this page) will now link to the section called "Usage", as seen above.''


====Header {{anchor|anchor=Example anchor}}====


[[Category:Miscellaneous templates|{{PAGENAME}}]]
[[Category:Miscellaneous templates|{{PAGENAME}}]]

Revision as of 22:58, 4 June 2008

Cookies help us deliver our services. By using our services, you agree to our use of cookies.