Template:Commerce button: Difference between revisions
Template page
More actions
Created page with "<includeonly>{{#if:{{{url|}}}|{{#tag:a|{{{label|Visit}}}|href={{{url}}}|target=_blank|rel=nofollow sponsored noopener|class=vw-commerce-link}}}}</includeonly> <noinclude> == Usage == <pre> {{Commerce button |url=https://example.com/ |label=Visit }} </pre> This template is used for externally hosted commercial and affiliate links. Affiliate URLs should normally be stored in destination records rather than directly inside articles. </noinclude>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{url|}}}|{{ | <includeonly>{{#if:{{{url|}}}|[{{{url}}} {{{label|Visit}}}]}}</includeonly> | ||
<noinclude> | <noinclude> | ||
| Line 11: | Line 11: | ||
</pre> | </pre> | ||
This template | This template creates commercial external links. | ||
Affiliate URLs should normally be stored in destination records rather than directly inside articles. | Affiliate URLs should normally be stored in destination records rather than directly inside articles. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:42, 15 October 2026
Usage
{{Commerce button
|url=https://example.com/
|label=Visit
}}
This template creates commercial external links.
Affiliate URLs should normally be stored in destination records rather than directly inside articles.