Templat:Pendokumenan: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
Laman baru: {{Documentation subpage}} {{Intricate template}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Usage== * '''{{tl|Infobox Discography}}''' should be use...
 
Aurora (bincang | sumb.)
kemaskini
Baris 1:
<div class="template-documentation" style="margin-top:1em;">{{#if:{{{heading|defaultnotblank}}}|<div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;">
{{Documentation subpage}}
<span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit]]</span>
{{Intricate template}}
<span style="font-size: 150%">{{{heading|Documentation}}}</span></div>}}
<!--
<div id="template_doc_page_transcluded" class="dablink plainlinks">[[Wikipedia:Dokumen templat|Dokumen]] ini <!--[[Wikipedia:Transclusion|-->dimasukkan<!--]]--> dari [[{{{1|{{SUBJECTPAGENAME}}/doc}}}]]. <small style="font-style: normal">([[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])</small> {{#ifexist: {{#rel2abs: /sandbox }} | {{#ifexist: {{#rel2abs: /testcases}} | <br> This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} edit])</small> and [[/testcases|testcases]] for editors to experiment.}}<!-- else don't show when just 1 of /sandbox or /testcases exists -->}} </div>
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
{{ {{#ifexist:{{{1|{{SUBJECTPAGENAME}}/doc}}}|{{{1|{{SUBJECTPAGENAME}}/doc}}}|ns:0}} }}
-->
<div style="clear:both;" /></div></div>
==Usage==
 
* '''{{tl|Infobox Discography}}''' should be used for the discography section of a band's article '''only when most or all of their albums lack their own article'''. It will then be a useful repository of all known album information that is currently not available elsewhere.
 
* On the other hand, '''for a band article that has most or all of their albums described in a separate article, the standard shorter list should be used instead''' (album year, album title, studio/live/compilation qualifier) in a bulletted list or a table. All the extra information is then provided at each album's own article.
 
* The template can also be used for adding a description to the <CODE>==Summary==</CODE> section of an uploaded image. See an example at [[:Image:Kingspade.jpg#Summary]].
 
This template is adapted from the [[Wikipedia:Infobox|infobox]] for albums, the '''{{tl|Infobox Album}}''' template. Please see that template's documentation for details as indicated below.
 
The table below is an example. You can click on "edit this page" and copy-and-paste the markup to a different article, replacing its information with info on the discography you choose to write about.
 
The template is preferably used within a <CODE>==Discography==</CODE> section.
 
==Example==
 
{{Main|Social Distortion discography}}
 
{{Infobox Discography
| Type = Album
| Name = [[Mommy's Little Monster]]
| Released = 1983
| Label = 13th Floor Records (1983), [[Triple-X]] (1989), [[Time Bomb Recordings]] (1995)
| Producer = [[Social Distortion]], Chaz Ramirez, Thom Wilson
| Format = CD
| Chart position=
| Certification =
| Sales =
| Singles = “Another State of Mind”, “Mommy's Little Monster”
| from Album = <!-- For use with Singles --->
| Writer = <!-- For use with Singles --->
| Tracks = <!-- For use with Singles --->
| Other info =
}}
{{Infobox Discography
| Type = Album
| Name = [[Somewhere Between Heaven and Hell]]
| Released = [[February 11]] [[1992]]
| Label = [[Epic Records|Epic]]
| Producer = [[Social Distortion]]
| Format = CD
| Chart position= #76 U.S.
| Certification = Gold
| Sales =
| Singles = “Ball and Chain”, “Let It Be Me”, “Ring of Fire”
| from Album = <!-- For use with Singles --->
| Writer = <!-- For use with Singles --->
| Tracks = <!-- For use with Singles --->
| Other info =
}}
 
==Code==
 
This self-documented code base can be copy-pasted and filled directly in your article:
 
<PRE>
{{Infobox Discography
| Type = <!-- "Studio/EP/Live/Compilation/...", see codes below -->
| Name = <!-- "Name" or "[[Name]]" (album or EP/single) -->
| Other info = <!-- added between parentheses after Name (album or EP) -->
| from Album = <!-- ONLY FOR EP/SINGLE: added after Name -->
| Released = <!-- "1992" or "[[11 February]] [[1992]] -->
| Format = <!-- "LP/CD/..." -->
| Label = <!-- "Name" or "[[Name Records|Name]]", comma if many -->
| Writer = <!-- "Songwriter name" or "[[Songwriter name]]" -->
| Producer = <!-- "Producer name" or "[[Producer name]]", comma if many -->
| Director = <!-- "Director name" or "[[Director name]]" for music videos -->
| Chart position= <!-- "#1 U.S." or "#12 UK" or such -->
| Sales = <!-- "3 million sold as of 2005" or such -->
| Certification = <!-- "Gold" or such -->
| Tracks = <!-- " "One", "Two", "Three" ", etc. -->
| Bonus tracks = <!-- "Four" (Japan edition) -->
| Singles = <!-- " "Single", "Other Single" ", etc. -->
}}
</PRE>
 
* If you document a full album, delete the "from Album" field, fill the rest, and you will get this heading (depending on whether you also filled "Other info" or not):
<DIV STYLE="margin-left:2em; width:50%;">
{{Infobox Discography
| Type = Studio
| Name = NAME
}}
{{Infobox Discography
| Type = Studio
| Name = NAME
| Other info = OTHER INFO
}}
</DIV>
: In this case, the fields "Writer", "Tracks", "Bonus tracks" are very optional (they are usually used for EPs and single, where there are fewer songs).
 
* If you document an EP or a single, fill the "from Album" field, fill the rest, and you will get this heading (depending on whether you also filled "Other info" or not):
<DIV STYLE="margin-left:2em; width:50%;">
{{Infobox Discography
| Type = Studio
| Name = NAME
| from Album = FROM ALBUM
}}
{{Infobox Discography
| Type = Studio
| Name = NAME
| from Album = FROM ALBUM
| Other info = OTHER INFO
}}
</DIV>
: In this case, the fields "Writer", "Tracks", "Bonus tracks" become more interesting to fill.
 
Preferably, do not deleted unused lines (except "from Album") if there is a chance they could be used or filled later (just keep them blank with the helper commentary). Also note that the name of the fields are case-sensitive, and they all start with a cap except "from Album" (sic).
 
Note: if you do not fill the Type field with one of the predefined keywords (or if you make a typo), the article will be automatically added to [[:Category:Non-standard discography infoboxes]] so as to be able to track and fix errors.
 
==Type and color==
 
The '''type''' refers to the general type of album. Enter a code from the following chart. The type will appear with the appropriate color. If the type is unknown, leave the field blank. The small amount of color does not stand out on its own but when grouped together as shown in the example above, it gives a subtle indication of the type of the albums as a group.
 
{| CLASS="wikitable"
! Code
|-
|STYLE="border-top:3px solid {{Infobox Album/color|studio}};" |studio
|-
|STYLE="border-top:3px solid {{Infobox Album/color|demo}};" |demo
|-
|STYLE="border-top:3px solid {{Infobox Album/color|ep}};" |ep
|-
|STYLE="border-top:3px solid {{Infobox Album/color|live}};" |live
|-
|STYLE="border-top:3px solid {{Infobox Album/color|greatest}};" |greatest
|-
|STYLE="border-top:3px solid {{Infobox Album/color|remix}};" |remix
|-
|STYLE="border-top:3px solid {{Infobox Album/color|box}};" |box
|-
|STYLE="border-top:3px solid {{Infobox Album/color|compilation}};"|compilation
|-
|STYLE="border-top:3px solid {{Infobox Album/color|cover}};" |cover
|-
|STYLE="border-top:3px solid {{Infobox Album/color|tribute}};" |tribute
|-
|STYLE="border-top:3px solid {{Infobox Album/color|soundtrack}};" |soundtrack
|-
|STYLE="border-top:3px solid {{Infobox Album/color|television}};" |television
|-
|STYLE="border-top:3px solid {{Infobox Album/color|film}};" |film
|-
|STYLE="border-top:3px solid {{Infobox Album/color|video}};" |video
|-
|STYLE="border-top:3px solid {{Infobox Album/color|unknown}};" |''(unknown or typo)''
|}
 
==Details==
 
{{Main|Template:Infobox Album}}
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Music infobox templates|Discography]]
[[Category:Templates using ParserFunctions]]
 
</includeonly>