This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:PrevLink"

From OWASP
Jump to: navigation, search
(Added documentation)
(Escaped ampersands in "Code" section)
Line 6: Line 6:
  
 
==Code==
 
==Code==
<pre>[[{{{1}}}|&laquo;&laquo;{{{2|{{{1}}}}}}&laquo;&laquo;]]</pre>
+
<pre>[[{{{1}}}|&amp;laquo;&amp;laquo;{{{2|{{{1}}}}}}&amp;laquo;&amp;laquo;]]</pre>
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
 
[[{{{1}}}|&laquo;&laquo;{{{2|{{{1}}}}}}&laquo;&laquo;]]
 
[[{{{1}}}|&laquo;&laquo;{{{2|{{{1}}}}}}&laquo;&laquo;]]
 
</includeonly>
 
</includeonly>

Revision as of 15:02, 8 September 2010

Purpose

Generates a link to the URL/page given in the first parameter with a link label equal to the value of the second parameter, if present, otherwise with a link label equal to the value of the first parameter.

Usage

{{PrevLink|link|label}}

Code

[[{{{1}}}|&laquo;&laquo;{{{2|{{{1}}}}}}&laquo;&laquo;]]