Difference between revisions of "Template:ITunes/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mogism
m (→‎Usage: Cleanup/Typo fixing, typos fixed: Paramaters → Parameters (2) using AWB)
imported>Theopolisme
(→‎Usage: upd)
Line 4: Line 4:
  
 
===Usage===
 
===Usage===
This template uses {{tl|BASEPAGENAME}} to get the name of the page.
+
The template accepts two parameters, but only the first is required
;Parameters
+
* <code>1</code> should be all of the content after the "itunes.apple.com/" in a URL to an iTunes Preview page.
This template accepts one parameter, which is all of the content after the "itunes.apple.com/" in a URL to an iTunes Preview page.
+
* <code>2</code> is optional and is the title of the work. If not provided, it defaults to {{tl|BASEPAGENAME}}.
 +
 
 
;Example
 
;Example
{{code|<nowiki>{{itunes|nz/album/sky-single/id573078473}}</nowiki>}} produces:
+
{{code|<nowiki>{{itunes|nz/album/sky-single/id573078473|Test track}}</nowiki>}} produces:
{{itunes|nz/album/sky-single/id573078473}}
+
{{itunes|nz/album/sky-single/id573078473|Test track}}
  
 
===See also===
 
===See also===

Revision as of 17:40, 20 April 2014

Provides a link to an iTunes Preview page.

Usage

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

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

{{itunes|nz/album/sky-single/id573078473|Test track}} produces: Test track on iTunes

See also