Difference between revisions of "Template:Extra chronology/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
m (→‎Usage: ce)
imported>Ojorojo
(partial update (more to come))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
===Usage===
+
=Usage=
 
{{Main|Template:Infobox album#Template:Extra chronology}}
 
{{Main|Template:Infobox album#Template:Extra chronology}}
 +
 +
Extra chronologies may be added to {{tl|Infobox album}} and {{tl|Infobox single}}, depending on which version of this template is used.  Both add the proper header, color, and formatting (depending on the {{para|type}} designation) and are added to the infoboxes in the {{para|misc}} field.
 +
 +
==Infobox album version==
 
{{infobox|title=Albums and EPs|data1={{parameter names example|artist|type=studio|prev_title|prev_year|title|year|next_title|next_year}}}}
 
{{infobox|title=Albums and EPs|data1={{parameter names example|artist|type=studio|prev_title|prev_year|title|year|next_title|next_year}}}}
{{infobox|title=Singles|data1={{parameter names example|artist|type=single|prev_title|prev_year|title|year|next_title|next_year}}}}
+
The album version provides the previous, current, and next albums and their associated dates. The titles appear in italics, with the current title also in bold.
For use with {{tl|Infobox album}} or {{tl|Infobox single}} use this template in {{para|misc}} like this:
 
  
<pre>{{Infobox album or Infobox single
+
;Code :
 +
<pre>{{Infobox album
 
...
 
...
 
| misc        = {{Extra chronology
 
| misc        = {{Extra chronology
Line 21: Line 25:
 
}}</pre>
 
}}</pre>
  
;artist : The name of the artist, with "singles" appended for singles chronologies to produce either "Artist chronology" or "Artist singles chronology".
+
;artist : The name of the artist, with <code>album</code>, <code>EP</code>, etc., appended to produce either "Artist album chronology", "Artist EP chronology", etc.  If just the artist's name is used, the header will display "Artist chronology".
;type : Add single for singles; for albums, add studio, live, compilation, etc., as specified in {{tl|Infobox album/doc/type}}. (This will trigger the header color and different formatting for singles and albums.)
+
;type : Specify <code>album</code>, <code>studio</code>, <code>live</code>, <code>compilation</code>, etc., as detailed in {{tl|Infobox album/doc/type}} – this triggers the header color and formatting.
;prev_title : Enter the name of the previous single or album (the formatting will add "quote" marks for singles and ''italics'' for albums). If it has an article, add a link.
+
;prev_title : Enter the name of the previous album. If it has an article, add a link.
;prev_year : The year the previous title was released.
+
;prev_year : The year the previous album was released.
;title : Enter the name of the current or article title (the formatting will add '''bold''' and "quote" marks for singles and ''italics'' for albums). This should not be wikilinked, since it should be the subject of the article.
+
;title : Enter the name of the current or article title. This should not be wikilinked, since it should be the subject of the article.
;year : The year the current title was released.  
+
;year : The year the current album was released.  
;next_title : Enter the name of the next single or album (it will be formatted appropriately). If it has a WP article, add a link.
+
;next_title : Enter the name of the next album. If it has a WP article, add a link.
;next_year : The year the next title was released.
+
;next_year : The year the next album was released.
 +
;Notes : All parameters are optional except {{para|title}} and {{para|type}}. Horizontal lines replace the header row if you omit {{para|artist}}.
  
'''Notes:''' All parameters are optional except {{para|title}} and {{para|type}}. Horizontal lines replace the header row if you omit {{para|artist}}.
+
==Infobox single version==
 +
{{infobox|title=Singles|data1={{parameter names example|artist|type=single|prev_title|prev_year|title|year|next_title|next_year}}}}
 +
 
 +
;Code :
 +
<pre>{{Infobox single
 +
...
 +
| misc        = {{Extra chronology
 +
| artist     =
 +
| type        =
 +
| prev_title  =
 +
| prev_title2 =
 +
| prev_year  =
 +
| title      =
 +
| title2      =
 +
| year        =
 +
| next_title  =
 +
| next_title2 =
 +
| next_year  =
 +
}}
 +
}}
 +
</pre>
  
 +
{{clear}}
 
==Template data==
 
==Template data==
 
{{TemplateDataHeader}}
 
{{TemplateDataHeader}}

Revision as of 20:58, 17 May 2017

Usage

Extra chronologies may be added to {{Infobox album}} and {{Infobox single}}, depending on which version of this template is used. Both add the proper header, color, and formatting (depending on the |type= designation) and are added to the infoboxes in the |misc= field.

Infobox album version

Albums and EPs
Template:Parameter names example

The album version provides the previous, current, and next albums and their associated dates. The titles appear in italics, with the current title also in bold.

Code 
{{Infobox album
...
| misc        = {{Extra chronology
 | artist     = 
 | type       = 
 | prev_title = 
 | prev_year  = 
 | title      = 
 | year       = 
 | next_title = 
 | next_year  = 
 }}
}}
artist 
The name of the artist, with album, EP, etc., appended to produce either "Artist album chronology", "Artist EP chronology", etc. If just the artist's name is used, the header will display "Artist chronology".
type 
Specify album, studio, live, compilation, etc., as detailed in {{Infobox album/doc/type}} – this triggers the header color and formatting.
prev_title 
Enter the name of the previous album. If it has an article, add a link.
prev_year 
The year the previous album was released.
title 
Enter the name of the current or article title. This should not be wikilinked, since it should be the subject of the article.
year 
The year the current album was released.
next_title 
Enter the name of the next album. If it has a WP article, add a link.
next_year 
The year the next album was released.
Notes 
All parameters are optional except |title= and |type=. Horizontal lines replace the header row if you omit |artist=.

Infobox single version

Singles
Template:Parameter names example
Code 
{{Infobox single
...
| misc         = {{Extra chronology
 | artist      = 
 | type        = 
 | prev_title  = 
 | prev_title2 = 
 | prev_year   = 
 | title       = 
 | title2      = 
 | year        = 
 | next_title  = 
 | next_title2 = 
 | next_year   = 
 }}
}}

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Extra chronology

For use with {{Infobox album}} or {{Infobox single}} – adds an extra chronology range

Template parameters

ParameterDescriptionTypeStatus
Typetype Type

The type of album/single. Valid values are: studio, demo, ep, live, greatest, remix, box, compilation, mixtape, soundtrack, film, cast, video, other

Stringrequired
Artistartist Artist

The name of the recording artist

Stringoptional
Prev titleprev_title

The title of the artist's previous release

Stringoptional
Prev yearprev_year

The year that the previous work was released

Numberoptional
Titletitle

The title of the current work

Stringrequired
Yearyear

The year that the current work was released

Numberoptional
Next titlenext_title

The title of the following work

Stringoptional
Next yearnext_year

The year the following work was released

Numberoptional
lastlast_single Last single last_album Last album

previous in chronology

Stringdeprecated
thisthis_single This single this_album This album

this single or album in chronology

Stringdeprecated
nextnext_single Next single next_album Next album

next in chronology

Stringdeprecated