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:NextLink"
From OWASP
(Handled the case when the first parameter is omitted or empty) |
("first" -> "last") |
||
Line 1: | Line 1: | ||
<noinclude>==Purpose== | <noinclude>==Purpose== | ||
− | Generates a "Next" 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. If the first parameter is absent, the label [This is the | + | Generates a "Next" 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. If the first parameter is absent, the label [This is the last page] is generated. |
==Usage== | ==Usage== | ||
Line 8: | Line 8: | ||
<pre>{{ #if: {{{1|}}} | <pre>{{ #if: {{{1|}}} | ||
| [[{{{1}}}|&raquo;&raquo;{{{2|{{{1}}}}}}&raquo;&raquo;]] | | [[{{{1}}}|&raquo;&raquo;{{{2|{{{1}}}}}}&raquo;&raquo;]] | ||
− | | [This is the | + | | [This is the last page] |
}}</pre> | }}</pre> | ||
</noinclude> | </noinclude> | ||
Line 14: | Line 14: | ||
{{ #if: {{{1|}}} | {{ #if: {{{1|}}} | ||
| [[{{{1}}}|»»{{{2|{{{1}}}}}}»»]] | | [[{{{1}}}|»»{{{2|{{{1}}}}}}»»]] | ||
− | | [This is the | + | | [This is the last page] |
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 17:51, 8 September 2010
Purpose
Generates a "Next" 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. If the first parameter is absent, the label [This is the last page] is generated.
Usage
{{NextLink|link|label}}
Code
{{ #if: {{{1|}}} | [[{{{1}}}|»»{{{2|{{{1}}}}}}»»]] | [This is the last page] }}