Template:Anchor: Difference between revisions
More actions
xhtml / doc |
cat / doc |
||
| Line 7: | Line 7: | ||
'''Code:''' <nowiki><</nowiki>span id="<nowiki>{{{</nowiki>anchor|anchor}}}" /> | '''Code:''' <nowiki><</nowiki>span id="<nowiki>{{{</nowiki>anchor|anchor}}}" /> | ||
'''Usage:''' <nowiki>{{</nowiki>anchor|''anchor_name''}} | '''Usage:''' <nowiki>{{</nowiki>anchor|anchor=''anchor_name''}} | ||
===Example=== | |||
====Header <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.'' | |||
====Header {{anchor|anchor=Example anchor}}==== | |||
[[Category:Miscellaneous templates|{{PAGENAME}}]] | |||
[[ar:template:anchor]] | [[ar:template:anchor]] | ||
Revision as of 07:32, 22 March 2008
Inserts a HTML anchor in a page at the location of its invocation, enabling direct #Links to this location.
Code: <span id="{{{anchor|anchor}}}" />
Usage: {{anchor|anchor=anchor_name}}
Example
====Header {{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.
Header
ar:template:anchor bg:template:anchor ca:template:anchor cs:template:anchor da:template:anchor de:Vorlage:Anker el:template:anchor en:template:anchor eo:template:anchor eu:template:anchor fa:template:anchor fi:template:anchor fr:template:anchor hsb:template:anchor he:תבנית:עוגן2 hu:template:anchor is:template:anchor ja:template:anchor ko:template:anchor ks:template:anchor la:template:anchor mi:template:anchor nds:template:anchor nl:template:anchor nn:template:anchor no:template:anchor oc:template:anchor pl:template:anchor ps:template:anchor pt:template:anchor rmy:template:anchor ro:template:anchor ru:template:anchor sd:template:anchor simple:template:anchor sl:template:Sidro sq:template:anchor sr:template:anchor sv:template:anchor sw:template:anchor te:template:anchor tn:template:anchor uk:template:anchor ur:template:anchor vi:template:anchor yi:template:anchor zh:template:anchor