Difference between revisions of "Template:ITunes/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update examples)
imported>Zyxw
(update usage and examples)
Line 2: Line 2:
 
<!-- Categories go at the bottom of this page. -->
 
<!-- Categories go at the bottom of this page. -->
 
{{lowercase title}}
 
{{lowercase title}}
This template displays a link to an [[iTunes|iTunes Preview]] page.
+
This template displays a link to an [[iTunes]] page.
  
 
== Usage ==
 
== Usage ==
 +
: <code><nowiki>{{</nowiki>iTunes | <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>iTunes | <var>ID</var> | <var>TITLE</var> }}</code>
 +
 +
== Parameters ==
 
The template accepts two parameters, but only the first is required.
 
The template accepts two parameters, but only the first is required.
* <code>1</code> should be all of the content after the "itunes.apple.com/" in a URL to an iTunes Preview page.
+
# <var>ID</var> should be all of the content after the "itunes.apple.com/" in a URL to an iTunes page.
* <code>2</code> is optional and is the title of the work. If not provided, it defaults to {{tl|PAGENAMEBASE}}.
+
# <var>TITLE</var> is optional and is the title of the work. If not provided, it defaults to {{tl|PAGENAMEBASE}}.
 +
 
 +
== Examples ==
 +
 
 +
; One parameter
 +
: <code><nowiki>* {{</nowiki>iTunes | nz/album/sky-single/id573078473 }}</code>
 +
:* {{iTunes | nz/album/sky-single/id573078473 }}
 +
 
 +
; Two parameters
 +
: <code><nowiki>* {{</nowiki>iTunes | nz/album/sky-single/id573078473 | Test track }}</code>
 +
:* {{iTunes | nz/album/sky-single/id573078473 | Test track }}
  
;Example
+
; No parameters
{{code|<nowiki>{{iTunes|nz/album/sky-single/id573078473|Test track}}</nowiki>}} produces:
+
: <code><nowiki>* {{</nowiki>iTunes}}</code>
{{iTunes|nz/album/sky-single/id573078473|Test track}}
+
:* {{iTunes}}
  
 
== See also ==
 
== See also ==
*{{tl|iTunes Preview App}}
+
* {{tl|iTunes Preview App}}
  
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||

Revision as of 03:49, 22 March 2019

This template displays a link to an iTunes page.

Usage

{{iTunes | ID }}
{{iTunes | ID | TITLE }}

Parameters

The template accepts two parameters, but only the first is required.

  1. ID should be all of the content after the "itunes.apple.com/" in a URL to an iTunes page.
  2. TITLE is optional and is the title of the work. If not provided, it defaults to {{PAGENAMEBASE}}.

Examples

One parameter
* {{iTunes | nz/album/sky-single/id573078473 }}
Two parameters
* {{iTunes | nz/album/sky-single/id573078473 | Test track }}
No parameters
* {{iTunes}}
  • {{iTunes}} template missing required parameter.

See also