This is a documentation subpage for Template:Infobox album/link. It contains usage information, categories and other content that is not part of the original template page. |
Important
When modifying this template, don't forget to update Template:Infobox album/color.
Usage
This is an auxiliary template which should be only used by the {{Infobox album}} template. The first parameter should be one of the codes from the table below, representing a type of album. The template returns the wikilinked version of the text.
Quick reference table
Template:Infobox album/doc/type
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 mark is seen, it means that self test worked fine. if there is a Template:N 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:
| 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
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.Code | Expected | Obtained | Test |
---|---|---|---|
Studio album | |||
studio | Studio album | Studio album | Template:N |
Studio album | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Studio album]] | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Album]] | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Album | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Original studio album | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
LP | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Double album | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Double album]] | Studio album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Demo album | |||
demo | Demo album | Demo album | Template:N |
EP | |||
ep | EP | EP | Template:N |
EP | EP | EP | Template:N |
Extended play | EP | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[EP]] | EP | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Extended play]] | EP | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Single album | |||
Single album | Single album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Single album]] | Single album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Live album | |||
live | Live album | Live album | Template:N |
Live album | Live album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Live album]] | Live album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Greatest hits | |||
greatest | Greatest hits album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Greatest hits | Greatest hits album | Compilation album | Template:N |
[[Greatest hits]] | Greatest hits album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Remix album | |||
remix | Remix album | Remix album | Template:N |
Remix album | Remix album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Remix]] | Remix album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Remix album]] | Remix album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Box set | |||
box | Box set | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Box set | Box set | Box set | Template:N |
[[Box set]] | Box set | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Boxed set]] | Box set | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Compilation album | |||
compilation | Compilation album | Compilation album | Template:N |
Compilation album | Compilation album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Compilation album]] | Compilation album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Cover album | |||
cover | Cover album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Cover album | Cover album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Cover album]] | Cover album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Cover version]] | Cover album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Tribute album | |||
tribute | Tribute album | Tribute album | Template:N |
Tribute album | Tribute album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Tribute album]] | Tribute album | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Soundtrack | |||
soundtrack | Soundtrack | Soundtrack | Template:N |
Movie soundtrack | Soundtrack | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Soundtrack]] | Soundtrack | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
[[Soundtrack album]] | Soundtrack | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Television theme | |||
television | Television theme | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Television theme | Television theme | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Film score | |||
film | Film score | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Film score | Film score | Soundtrack album | Template:N |
[[Film score]] | Film score | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Video album | |||
video | Video | Video release | Template:N |
DVD | Video | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |
Other cases | |||
Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N | ||
xyz | xyz | Lua error in Module:Infobox_album at line 99: attempt to index field '?' (a nil value). | Template:N |