Template:Singles/doc: Difference between revisions

no edit summary
(Modified documentation to accomodate 16 singles)
No edit summary
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
__TOC__
{{Code from Wikipedia}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Lua|Module:Singles|Module:Check for unknown parameters}}
This infobox is to be used as an additional miscellaneous listing at the bottom of {{Ti|Infobox Album}}.
This infobox is to be used as an additional miscellaneous listing at the bottom of {{Ti|Infobox album}}.


==Usage==
==Usage==
You may list up to twelve (16) singles per album.  This infobox should be placed in the "Misc" field as shown below, using the field cases also shown below.  Any unused fields may be left out.
This infobox should be placed in the {{para|misc}} field as shown below, using the field cases also shown below.  Any unused fields may be left out.


<pre>
If this template is substituted, it will return a cleaned-up copy of itself (see [[Wikipedia:Substitution trick]]) with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.
{{Infobox Album <!-- See Wikipedia:WikiProject_Albums -->
 
<syntaxhighlight lang="wikitext">
{{Infobox album <!-- See Wikipedia:WikiProject_Albums -->
...
...
| Misc       = {{Singles
| Misc           =
  | Name          = wait
{{Singles
  | Type          = for
| name        =  
  | Single 1      = the
| type        =  
  | Single 1 date = album
| single1      =  
  | Single 2      = to
| single1date =  
  | Single 2 date = come
| single2      =  
  | Single 3      = out
| single2date =  
  | Single 3 date =  
| single3      =  
  | Single 4      =  
| single3date =  
  | Single 4 date =  
| single4      =  
  | Single 5      =  
| single4date =  
  | Single 5 date =  
| single5      =  
  | Single 6      =  
| single5date =  
  | Single 6 date =  
| single6      =  
  | Single 7      =  
| single6date =  
  | Single 7 date =  
| single7      =  
  | Single 8      =  
| single7date =  
  | Single 8 date =  
| single8      =  
  | Single 9      =  
| single8date =  
  | Single 9 date =  
| single9      =  
  | Single 10      =
| single9date =  
  | Single 10 date =
| single10    =  
  | Single 11      =
| single10date =  
  | Single 11 date =
| single11    =  
  | Single 12      =
| single11date =  
  | Single 12 date =
| single12    =  
  | Single 13      =  
| single12date =  
  | Single 13 date =  
}}
  | Single 14      =  
  | Single 14 date =  
  | Single 15      =
  | Single 15 date =
  | Single 16      =  
  | Single 16 date =  
  }}
}}
}}
</pre>
</syntaxhighlight>


;Name : The name of the album.
;Name : The name of the album (the formatting will add ''italics'').
;Type : The album type, specified in [[Template:Infobox Album#Type]].
;Type : The album type, e.g., studio, live, compilation, etc., specified in [[Template:Infobox album#Type]].
;Single # : The name of the single.  Should be wikilinked to single's article, if applicable.
;Single # : The name of the single (the formatting will add "quote" marks)If it has a WP article, add a link.
;Single # date : The date of single release.  Should be entered in [[WP:DATE|wikidate]] format. If full date is unknown, just use "Month Year" or "Year".
;Single # date : The date the single was released. If full date is unknown, use month and year or just year. Do not use the {{tl|Start date}} template in this field.


Note that all fields are already properly formatted, so italics or quotation marks need not be entered in fields.
Note that all fields are already properly formatted, so italics or quotation marks need not be entered in fields.
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Music infobox templates]]
[[Category:WikiProject Albums templates]]
[[Category:Templates that add a tracking category]]
}}</includeonly>