Template:A: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
(Created new template...)
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude><div id="{{anchorencode:{{{1}}}}}">'''{{{1}}}{{{2|}}}'''</div>
<onlyinclude><span id="{{anchorencode:{{{1}}}}}">'''{{{1}}}{{{2|}}}'''</span></onlyinclude>
[[Category:Templates]]</onlyinclude>
 
== Motivation ==
This template is thought to colour a piece of text in bold letters and at the same time make it function as an anchor.


== Syntax ==
== Syntax ==
Line 9: Line 11:


== Examples ==
== Examples ==
{{a|my anchor}}
: {{a|my anchor}}


Code:
Code:
Line 16: Line 18:
[[Template:A#my_anchor|Link]]
[[Template:A#my_anchor|Link]]


{{a|my second anchor| including more text}}
 
: {{a|my second anchor| including more text}} Text that is not included.


Code:
Code:
  <nowiki>{{a|my second anchor| including more text}}</nowiki>
  <nowiki>{{a|my second anchor| including more text}} Text that is not included.</nowiki>


[[Template:A#my_second_anchor|Link]]
[[Template:A#my_second_anchor|Link]]


== Motivation ==
== See also ==
This template is thought to colour a piece of text in bold letters and at the same time make it function as an anchor.
* [[Template:Anchor|Anchor template]]: An other template that allows to set anchors.
* [[Template:al|Anchor link template]]: A template used to link to anchors on a page.
 
Note: The space below exists to be able to test the example links.
 
[[Category:Templates]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


== See also ==
&nbsp;
* [[Template:Anchor]]

Latest revision as of 10:36, 20 August 2010

Template

{{{1}}}

Motivation

This template is thought to colour a piece of text in bold letters and at the same time make it function as an anchor.

Syntax

{{a|arg_1|arg_2}}
  • arg_1: this is a necessary parameter. It contains the text that used as the anchor text.
  • arg_2: this parameter is not necessary. It is not included in the anchor link, but it is added to the first parameter text. It works a bit like [[testlink]]s, which results in testlinks, where the 's' is not part of the linked to page name, but included in the link itself.

Examples

my anchor

Code:

{{a|my anchor}}

Link


my second anchor including more text Text that is not included.

Code:

{{a|my second anchor| including more text}} Text that is not included.

Link

See also

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