|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| This category encompasses all '''Bibliography Templates'''. | | This category encompasses all '''Bibliography Templates'''. |
| | | |
− | A Bibliography template, in the new form, is one that can either be used for a compact citation in the article body or to provide a complete source ID for use in an article's bibliography.
| + | These should be renamed and converted over to the new form of [[:Category:Citable Source Templates|Citable Source Templates]], which make adding footnotes easy as cake. |
− | | |
− | Here is an example of how these are used. As a citation, a single parameter is used to specify the page number (or similar details particular to this citation, but not to the source itself).
| |
− | | |
− | <blockquote>
| |
− | <nowiki>
| |
− | The cheetah is the fastest animal on earth.{{BibTest|p. 5}}
| |
− | </nowiki>
| |
− | </blockquote>
| |
− | | |
− | When citing this source in a Bibliography section, however, no parameter is used. The template spits out a long format reference with a leading bullet.
| |
− | | |
− | <blockquote>
| |
− | <nowiki>==Bibliography==</nowiki>
| |
− | <br>
| |
− | <nowiki>{{BibTest}}</nowiki>
| |
− | </blockquote>
| |
− | | |
− | How does one write such a template? The basic form is
| |
− | | |
− | <blockquote>
| |
− | <nowiki>{{Fn|Complete bibliography reference|Abbreviated reference|{{{1|}}}}}<noinclude>[[Category:Bibliography Templates]]</noinclude></nowiki>
| |
− | </blockquote>
| |
− | | |
− | Note that it calls another template called Fn, and hands it three parameters:
| |
− | * the bibliographic (long format) description of the source (final period omitted). This should refer to the entire book, generally.
| |
− | * the abbreviated footnote mention of the same work (again, no final period)
| |
− | * three open braces, digit 1, a pipe character, and five close braces: <nowiki>{{{1|}}}</nowiki>
| |
− | * there should be NO line breaks anywhere, or ugly whitespace and bullets may result in use
| |