Template:Infobox album/link

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

{{{1}}}

Usage

This template is an auxiliar one and should be only used by the {{Infobox Album}} template. Based on the type of album this template receives, it returns the wikified version of the text.

Valid arguments

  • EP
  • Studio album
  • Live album
  • Greatest hits
  • Box set
  • Compilation album
  • Remix album
  • Cover album
  • Tribute album
  • Soundtrack
  • Television theme
  • Film score

Unit test

If at any time the Expected and Obtained columns do not match, this template can be considered broken. This table makes the template automatically check itself. If a Yes mark is seen, it means that self test worked fine. if there is a No mark, it means the test failed. Whenever you make a modification to the template, please save the page, hit CTRL+F5, and check if all the self tests have passed. If you add a new type to the template, remember to add the type using this format:

| {{Infobox Album/link|typename}}
| typereplace
| {{Infobox Album/link|typename}}
| {{#ifeq:{{Infobox Album/link|typename}}|typereplace|{{y}}|{{n}}}}

Replace typename with the new type name (in example, Epic soundtrack), and typereplace with the text that will appear as album type (in example, [[Soundtrack|Epic soundtrack]]).

Note: Sometimes the test may pass while previewing the page, but once saved the test would fail, no matter how many times the cache is cleared. In this case, please click this link to purge the cache. If that doesn't solve the problem, please post a note in the Talk page of the template and an editor will review the changes.

Template usage Expected Obtained Test
Extended play
{{Infobox Album/link|EP}} EP EP Yes
{{Infobox Album/link|Extended play}} EP Extended play No
{{Infobox Album/link|[[EP]]}} EP EP Yes
{{Infobox Album/link|[[Extended play]]}} EP Extended play No
Studio album
{{Infobox Album/link|Studio album}} Studio album Studio album Yes
{{Infobox Album/link|[[Studio album]]}} Studio album Studio album Yes
{{Infobox Album/link|[[Album]]}} Studio album Studio album Yes
{{Infobox Album/link|Album}} Studio album Studio album Yes
{{Infobox Album/link|Original studio album}} Studio album Studio album Yes
{{Infobox Album/link|Studio}} Studio album Studio album Yes
{{Infobox Album/link|LP}} Studio album LP No
Live album
{{Infobox Album/link|Live album}} Live album Live album Yes
{{Infobox Album/link|[[Live album]]}} Live album Live album Yes
{{Infobox Album/link|Live}} Live album Live album Yes
Greatest hits
{{Infobox Album/link|Greatest hits}} Greatest hits Greatest hits Yes
{{Infobox Album/link|[[Greatest hits]]}} Greatest hits Greatest hits Yes
{{Infobox Album/link|Greatest}} Greatest hits Greatest hits Yes
Box set
{{Infobox Album/link|Box set}} Box set Box set Yes
{{Infobox Album/link|[[Box set]]}} Box set Box set Yes
{{Infobox Album/link|Box}} Box set Box set Yes
{{Infobox Album/link|[[Boxed set]]}} Box set Box set Yes
Compilation album
{{Infobox Album/link|Compilation album}} Compilation album Compilation album Yes
{{Infobox Album/link|Compilation}} Compilation album Compilation album Yes
{{Infobox Album/link|[[Compilation album]]}} Compilation album Compilation album Yes
Remix album
{{Infobox Album/link|Remix album}} Remix album Remix album Yes
{{Infobox Album/link|Remix}} Remix album Remix album Yes
{{Infobox Album/link|[[Remix]]}} Remix album Remix album Yes
{{Infobox Album/link|[[Remix album]]}} Remix album Remix album Yes
Cover album
{{Infobox Album/link|Cover album}} Cover album Cover album Yes
{{Infobox Album/link|Cover}} Cover album Cover album Yes
{{Infobox Album/link|[[Cover album]]}} Cover album Cover album Yes
{{Infobox Album/link|[[Cover version]]}} Cover album Cover album Yes
Tribute album
{{Infobox Album/link|Tribute album}} Tribute album Tribute album Yes
{{Infobox Album/link|Tribute}} Tribute album Tribute album Yes
{{Infobox Album/link|[[Tribute album]]}} Tribute album Tribute album Yes
Soundtrack
{{Infobox Album/link|Soundtrack}} Soundtrack Soundtrack Yes
{{Infobox Album/link|Movie soundtrack}} Soundtrack Soundtrack Yes
{{Infobox Album/link|[[Soundtrack]]}} Soundtrack Soundtrack Yes
{{Infobox Album/link|[[Soundtrack album]]}} Soundtrack Soundtrack Yes
Television theme
{{Infobox Album/link|Television theme}} Television theme Television theme Yes
{{Infobox Album/link|Television}} Television theme Television theme Yes
Film score
{{Infobox Album/link|Film score}} Film score Film score Yes
{{Infobox Album/link|Film}} Film score Film score Yes
{{Infobox Album/link|[[Film score]]}} Film score Film score Yes
Other cases
{{Infobox Album/link|}} Yes
{{Infobox Album/link|xyz|}} xyz xyz Yes