Template:BDh

{{documentation|content= Bach Digital harvard (BDh)

Based on {{tl|cite web}}, the BDh template produces a citation for a page at the Bach Digital website, which can be used in combination with "harvard" type templates such as {{tl|sfn}}.

There are only unnamed parameters, of which only the first is mandatory. The second parameter is recommended when using a number with less than five digits for the first parameter (but leading zeros can also be added to the first parameter). When used in combination with a {{tl|sfn}} type template, the third parameter is recommended. The parameters are: If parameters above the 3rd are used, then the 4th parameter has to be defined as either "Work" or "Source".
 * 1) Digits at the end of the web address of the Bach Digital page, that is, only the digits after the leading zeros
 * 2) leading zeros to be added to result in a 5-digit number
 * 3) "Last changed" date of the Bach Digital page
 * 4) "Work" or "Source", to indicate the type of page (default: "Work")
 * 5) Title of the page (overrides title created based on the digits entered for the first parameter)
 * 6) Editor of the Bach Digital page (single name) – leave empty if parameter 7 and 8 are used
 * 7) Last name of editor of the Bach Digital page
 * 8) First name of editor of the Bach Digital page

Examples: No space or line break adjacent to a pipe for the first four parameters: {{BDh| 1067 | 0
 * https://www.bach-digital.de/receive/BachDigitalWork_Work_00001338
 * {{BDh|01338}} produces:
 * {{BDh|01338}}
 * {{BDh|1338|0|2019-02-14}} produces:
 * {{BDh|1338|0|2019-02-14}}
 * {{BDh|1338|0|14 February 2019|Work|Magnificat in C BWV Anh. 30}} produces:
 * {{BDh|1338|0|14 February 2019|Work|Magnificat in C BWV Anh. 30}}
 * https://www.bach-digital.de/receive/BachDigitalSource_source_00001067
 * {{BDh|1067|0|2020-01-09|Source}} produces:
 * {{BDh|1067|0|2020-01-09|Source}}
 * {{BDh|1067|0|9 January 2020|Source|D-B Mus.ms. Bach P 195}} produces:
 * {{BDh|1067|0|9 January 2020|Source|D-B Mus.ms. Bach P 195}}
 * Using {{tl|sfn}}:
 * If an "editor" (6th or 7th parameter) is defined: use editor/date pair as usual for harvard type references
 * If no "editor" (6th or 7th parameter) is defined and a "title" (5th parameter) is defined: use the title as defined in the 5th parameter, followed by a space and the text "at Bach Digital"
 * If neither "editor" (6th or 7th parameter) nor "title" (5th parameter) are defined: write "Work" or "Source" (whatever is applicable), followed by a space and then the characteristic number (= 1st parameter as entered in the BDh template), followed by a space and the text "at Bach Digital":
 * {{sfn|www.bach.gwdg.de|2020}} produces:{{sfn|www.bach.gwdg.de|2020}}
 * {{sfn|Ehre sei dir, Gott, gesungen (Christmas oratorio, part 5) BWV 248 V at Bach Digital}} produces:{{sfn|Ehre sei dir, Gott, gesungen (Christmas oratorio, part 5) BWV 248 V at Bach Digital}}
 * {{sfn|Work 11265 at Bach Digital}} produces:{{sfn|Work 11265 at Bach Digital}}
 * 9 January 2020 | Source |D-B Mus.ms. Bach P 195}} doesn't work.