Difference between revisions of "Template:ITunes/doc"

From blackwiki
Jump to navigation Jump to search
imported>Theopolisme
(creat)
 
imported>Filmman3000
m (It works for artist as well I meant in previous edit)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Categories go at the bottom of this page. -->
Provides a link to an [[iTunes|iTunes Preview]] page.
+
{{lowercase title}}
 +
This template displays a link to an [[iTunes]] page.
  
===Usage===
+
== Usage ==
This template uses {{tl|BASEPAGENAME}} to get the name of the page.
+
: <code><nowiki>{{</nowiki>iTunes | <var>ID</var> }}</code>
;Example
+
: <code><nowiki>{{</nowiki>iTunes | <var>ID</var> | <var>TITLE</var> }}</code>
{{code|<nowiki>{{itunes|nz/album/sky-single/id573078473}}</nowiki>}} produces:
 
{{itunes|nz/album/sky-single/id573078473}}
 
  
;Paramaters
+
== Parameters ==
This template accepts one paramater, which is all of the content after the "itunes.apple.com/" in a URL to an iTunes Preview page.
+
The template accepts two parameters, but only the first is required.
 +
# <var>ID</var> should be all of the content after the "itunes.apple.com/" in a URL to an iTunes page.
 +
# <var>TITLE</var> is optional and is the title of the work, the name of the artist, or musical ensemble. 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 }}
 +
 
 +
; No parameters
 +
: <code><nowiki>* {{</nowiki>iTunes}}</code>
 +
:* {{iTunes}}
 +
 
 +
== See also ==
 +
* {{tl|iTunes Preview App}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- categories -->
 +
[[Category:Catalog lookup templates]]
 +
[[Category:Music external link templates]]
 +
}}</includeonly>

Latest revision as of 19:50, 8 August 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, the name of the artist, or musical ensemble. 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