الگو:Infobox album/link

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

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[ویرایش]

CodeLink Display
studiodouble album
double album by artist
demoنسخه آزمایشی
نسخه آزمایشی by artist
EPآلبوم چندآهنگه
آلبوم چندآهنگه by artist
single albumتک‌آهنگ
تک‌آهنگ by artist
liveآلبوم زنده
آلبوم زنده by artist
greatestGreatest hits album
Greatest hits album by artist
remixآلبوم ریمیکس
آلبوم ریمیکس by artist
boxکلکسیون جعبه‌ای
کلکسیون جعبه‌ای by artist
compilationآلبوم گردآوری‌شده
آلبوم گردآوری‌شده by artist
mixtapeمیکس‌تیپ
میکس‌تیپ by artist
soundtrackآلبوم موسیقی متن
آلبوم موسیقی متن by artist
filmموسیقی فیلم
موسیقی فیلم by artist
castCast recording
Cast recording by artist
videoموزیک ویدئو
موزیک ویدئو by artist
otherother
other by artist

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 Red XN 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 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.

Code Expected Obtained Test
Studio album
studio Studio album double album Red XN
Studio album Studio album double album Red XN
[[Studio album]] Studio album Studio album Red XN
[[آلبوم موسیقی]] Studio album آلبوم موسیقی Red XN
Album Studio album double album Red XN
Original studio album Studio album double album Red XN
LP Studio album double album Red XN
Double album Studio album double album Red XN
[[Double album]] Studio album double album Red XN
Demo album
demo Demo album نسخه آزمایشی Red XN
EP
ep EP آلبوم چندآهنگه Red XN
EP EP آلبوم چندآهنگه Red XN
Extended play EP آلبوم چندآهنگه Red XN
[[EP]] EP EP Red XN
[[Extended play]] EP Extended play Red XN
Single album
Single album Single album تک‌آهنگ Red XN
[[Single album]] Single album Single album Red XN
Live album
live Live album آلبوم زنده Red XN
Live album Live album آلبوم زنده Red XN
[[Live album]] Live album Live album Red XN
Greatest hits
greatest Greatest hits album Greatest hits album ✓
Greatest hits Greatest hits album Greatest hits album ✓
[[Greatest hits]] Greatest hits album Greatest hits album ✓
Remix album
remix آلبوم ریمیکس آلبوم ریمیکس ✓
Remix album آلبوم ریمیکس آلبوم ریمیکس ✓
[[Remix]] آلبوم ریمیکس Remix Red XN
[[آلبوم ریمیکس]] آلبوم ریمیکس آلبوم ریمیکس ✓
Box set
box Box set کلکسیون جعبه‌ای Red XN
Box set Box set کلکسیون جعبه‌ای Red XN
[[Box set]] Box set Box set Red XN
[[Boxed set]] Box set Boxed set Red XN
Compilation album
compilation Compilation album آلبوم گردآوری‌شده Red XN
Compilation album Compilation album آلبوم گردآوری‌شده Red XN
[[Compilation album]] Compilation album Compilation album Red XN
Cover album
cover Cover album double album Red XN
Cover album Cover album double album Red XN
[[Cover album]] Cover album Cover album Red XN
[[Cover version]] Cover album Cover version Red XN
Tribute album
tribute Tribute album double album Red XN
Tribute album Tribute album double album Red XN
[[Tribute album]] Tribute album double album Red XN
Soundtrack
soundtrack Soundtrack آلبوم موسیقی متن Red XN
Movie soundtrack Soundtrack آلبوم موسیقی متن Red XN
[[Soundtrack]] Soundtrack Soundtrack Red XN
[[Soundtrack album]] Soundtrack Soundtrack album Red XN
Television theme
television Television theme television theme Red XN
Television theme Television theme television theme Red XN
Film score
film Film score موسیقی فیلم Red XN
Film score Film score موسیقی فیلم Red XN
[[Film score]] Film score Film score Red XN
Video album
video Video موزیک ویدئو Red XN
DVD Video موزیک ویدئو Red XN
Other cases
Red XN
xyz xyz xyz Red XN