Template:Al: Difference between revisions
Jump to navigation
Jump to search
m (test) |
m (slight color change) |
||
Line 1: | Line 1: | ||
== Template: al - anchor link == | == Template: al - anchor link == | ||
<onlyinclude>[[#{{{1}}}|{{color| | <onlyinclude>[[#{{{1}}}|{{color|000022|{{{2|{{{1}}}}}}}}]]</onlyinclude> | ||
== Syntax == | == Syntax == | ||
Line 16: | Line 16: | ||
Code: | Code: | ||
<nowiki>{{al|my anchor|a different link text}}</nowiki> | <nowiki>{{al|my anchor|a different link text}}</nowiki> | ||
{{al|my anchor|a different link text}} | '''{{al|my anchor|a different link text}}''' | ||
== Motivation == | == Motivation == |
Revision as of 14:17, 3 August 2010
Template: al - anchor link
[[#{{{1}}}|{{{1}}}]]
Syntax
{{a|arg_1|arg_2}}
- arg_1: this is a necessary parameter. It must contain the anchor name and if the second parameter is missing, it is also the link text to be used.
- arg_2: this parameter is not necessary. If it is given, it is used as the link text instead of the first parameters text.
Examples
- my anchor
Code:
{{al|my anchor}}
Code:
{{al|my anchor|a different link text}}
Motivation
This template is thought to link to an anchor on the current page.
See also
- Template:Anchor: A template that allows to set anchors.
- Template:A: A template that also allows to set anchors.
Note: The space below exists to be able to test the example links.