Template:Al: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
m (test)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Template: al - anchor link ==
== Template: al - anchor link ==
<onlyinclude>[[#{{{1}}}|{{color|#000066|{{{2|{{{1}}}}}}}}]]</onlyinclude>
<onlyinclude>[[#{{{1}}}|{{color|#000077|{{{2|{{{1}}}}}}}}]]</onlyinclude>


== Syntax ==
== Syntax ==
Line 13: Line 13:
  <nowiki>{{al|little anchor}}</nowiki>
  <nowiki>{{al|little anchor}}</nowiki>
{{al|little anchor}}
{{al|little anchor}}
[[Main Page|an ordinary Wiki link to compare the colors]]


Code:
Code:
  <nowiki>{{al|little anchor|a different link text}}</nowiki>
  <nowiki>'''{{al|little anchor|a different link text}}'''</nowiki>
'''{{al|little anchor|a different link text}}'''
'''{{al|little anchor|a different link text}}'''
'''[[Main Page|a bold Wiki link to compare the colors]]'''


== Motivation ==
== Motivation ==
Line 28: Line 32:


[[Category:Templates]]
[[Category:Templates]]





Latest revision as of 13:38, 26 October 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

little anchor

Code:

{{al|little anchor}}

little anchor

an ordinary Wiki link to compare the colors

Code:

'''{{al|little anchor|a different link text}}'''

a different link text

a bold Wiki link to compare the colors

Motivation

This template is thought to link to an anchor on the current page.

See also

Note: The space below exists to be able to test the example links.