Difference between revisions of "Template:AllMusic/testcases"
Jump to navigation
Jump to search
blackwiki>BDD m (BDD moved page Template:Allmusic/testcases to Template:AllMusic/testcases: RM; see talk page) |
blackwiki>Zyxw (update and expand) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Testcases notice <!--|toc=on-->}} |
| − | == | + | == no id == |
| − | + | {{Test case nowiki|format=tablerows|collapsible=yes|title=no parameters | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__}}</nowiki> | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class, missing id (unnamed parameters) |
| − | + | |code=<nowiki>{{__TEMPLATENAME__ | artist }}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class, missing id (named parameters) | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__ | class= artist }}</nowiki> | |
| − | = | + | }} |
| − | |||
| − | |||
| − | == | + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class, empty id (unnamed parameters) |
| − | + | |code=<nowiki>{{__TEMPLATENAME__ | artist | }}</nowiki> | |
| − | === | + | }} |
| − | + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class, empty id (named parameters) | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__ | class= artist | id= }}</nowiki> | |
| − | === | + | }} |
| − | + | ||
| − | + | == id only (class defaults to ''artist'') == | |
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id only (unnamed parameter) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | <!--class--> | mn0000139026 }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id only (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | id= mn0000139026 }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id and empty title (unnamed parameter) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | <!--class--> | mn0000139026 | }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id and empty title (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | id= mn0000139026 | title= }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == id and title (class defaults to ''artist'') == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id and title (unnamed parameter) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | <!--class--> | mn0000139026 | Led Zeppelin }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=id and title (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | id= mn0000139026 | title= Led Zeppelin }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == class and id == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class and id (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | album | mw0000191493 }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class and id (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= album | id= mw0000191493 }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class and id, empty title (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | song | mt0013834783 | }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=class and id, empty title (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= song | id= mt0013834783 | title= }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == class, id, title == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title= class=album, id, title (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | album | mw0000191493 | News of the World }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title= class=album, id, title (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= album | id= mw0000191493 | title= News of the World }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title= class=song, id, title (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | song | mt0013834783 | "Dust in the Wind" }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title= class=song, id, title (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= song | id= mt0013834783 | title= "Dust in the Wind" }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == tab parameter == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=tab parameter (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | artist | mn0000139026 | Led Zeppelin discography | tab= discography }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=tab parameter (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= artist | id= mn0000139026 | title= Led Zeppelin discography | tab= discography }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == author name and access date == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=author name and access date (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | album | mw0000190771 | Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014 }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=author name and access date (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014 }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | == pure_url == | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=pure_url (unnamed parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | album | mw0000190771 |pure_url= yes }}</nowiki> | ||
| + | }} | ||
| + | {{Test case nowiki|format=tablerows|collapsible=yes|title=pure_url (named parameters) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | class= album | id= mw0000190771 |pure_url= yes }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | <!-- | ||
| + | {{clear}} | ||
| + | == References == | ||
| + | {{reflist}} | ||
| + | --> | ||
Revision as of 23:51, 5 August 2018
| This is the template test cases page for the sandbox of Template:AllMusic. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
no id
| no parameters | ||||||
|---|---|---|---|---|---|---|
{{AllMusic}}
|
| class, missing id (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | artist }}
|
| class, missing id (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= artist }}
|
| class, empty id (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | artist | }}
|
| class, empty id (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= artist | id= }}
|
id only (class defaults to artist)
| id only (unnamed parameter) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | <!--class--> | mn0000139026 }}
|
| id only (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | id= mn0000139026 }}
|
| id and empty title (unnamed parameter) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | <!--class--> | mn0000139026 | }}
|
| id and empty title (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | id= mn0000139026 | title= }}
|
id and title (class defaults to artist)
| id and title (unnamed parameter) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | <!--class--> | mn0000139026 | Led Zeppelin }}
|
| id and title (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | id= mn0000139026 | title= Led Zeppelin }}
|
class and id
| class and id (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | album | mw0000191493 }}
|
| class and id (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= album | id= mw0000191493 }}
|
| class and id, empty title (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | song | mt0013834783 | }}
|
| class and id, empty title (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= song | id= mt0013834783 | title= }}
|
class, id, title
| class=album, id, title (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | album | mw0000191493 | News of the World }}
|
| class=album, id, title (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= album | id= mw0000191493 | title= News of the World }}
|
| class=song, id, title (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | song | mt0013834783 | "Dust in the Wind" }}
|
| class=song, id, title (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= song | id= mt0013834783 | title= "Dust in the Wind" }}
|
tab parameter
| tab parameter (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | artist | mn0000139026 | Led Zeppelin discography | tab= discography }}
|
| tab parameter (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= artist | id= mn0000139026 | title= Led Zeppelin discography | tab= discography }}
|
author name and access date
| author name and access date (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | album | mw0000190771 | Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014 }}
|
| author name and access date (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014 }}
|
pure_url
| pure_url (unnamed parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | album | mw0000190771 |pure_url= yes }}
|
| pure_url (named parameters) | ||||||
|---|---|---|---|---|---|---|
{{AllMusic | class= album | id= mw0000190771 |pure_url= yes }}
|