Jump to content
Toggle menu
  • 63 articles
  • 2 files
  • 2 users
  • 227 edits
Virginia.wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Commerce button: Difference between revisions

Template page
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|}}}|{{#tag:a|{{{label|Visit}}}|href={{{url}}}|target=_blank|rel=nofollow sponsored noopener|class=vw-commerce-link}}}}</includeonly>
<includeonly>{{#if:{{{url|}}}|[{{{url}}} {{{label|Visit}}}]}}</includeonly>


<noinclude>
<noinclude>
Line 11: Line 11:
</pre>
</pre>


This template is used for externally hosted commercial and affiliate links.
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.