| | 78 | |
| | 79 | === Parameters === |
| | 80 | |
| | 81 | In order to have additional parameters on the link use the {{{stub:argument}}} template: |
| | 82 | |
| | 83 | {{{ |
| | 84 | <stub:link page="DslHome"> |
| | 85 | <stub:argument name="id">303</stub:argument> |
| | 86 | Go to DSL home page |
| | 87 | </stub:link> |
| | 88 | }}} |
| | 89 | |
| | 90 | === Bot link cloaking === |
| | 91 | |
| | 92 | Sometimes it is necessary to have another URL for bots which visit the site in order to spider it for seach engines. To use another URL then the given one, you can use the bot attribute: |
| | 93 | |
| | 94 | {{{ |
| | 95 | <stub:link page="download" bot="http://downloads.example.net/important.pdf"> |
| | 96 | <stub:argument name="id">303</stub:argument> |
| | 97 | Important PDF file |
| | 98 | </stub:link> |
| | 99 | }}} |
| | 100 | |
| | 101 | This will force the usage of the bot URL in case the visiting user agent is recognized as a search bot. Currently this recognition includes the Googlebot, Msnbot and Slurp (Yahoo!). |