Template:Harvnb
Usage
编辑{{Harvard citation no brackets | ''Last name of author(s)'' | ''Year'' | ''Location in the text'' }}
Alternative to using Location, you may also use the following parameters:
p = page pp = pages
- Notes
- The abbreviation Harvnb may be used.
- The first parameter is the author's last name.
- The second parameter is the year of publication.
- The third parameter is the location of the cited material within the reference. This parameter is optional.
- The parameter p is an optional page parameter (e.g., "{{ Harvnb | Smith | 2006 | p=25 }}" yields Smith 2006, p. 25.
- The parameter pp is an optional page range parameter (e.g., "{{ Harvnb | Smith | 2006 | pp=25-26 }}" yields Smith 2006, pp. 25-26.
If Ref=none, then no hyperlink is created.
Examples
编辑- {{Harvard citation no brackets | Smith | 2006 | loc=ch. 100}}
- {{Harvnb | Smith | 2006 | p=25}}
- {{Harvnb | Smith | 2006 | pp=25-26}}
- {{Harvnb | Smith | 2006 | pp=25-26 | Ref=none}}
- {{Harvnb | Smith | Jones | 2006 | p=25}}
- {{Harvnb | Smith | Jones | Brown | 2006 | p=25}}
- {{Harvnb | Smith | Jones | Brown | Black | 2006 | p=25}}
yields:
- Template:Harvard citation no brackets
- Smith 2006, p. 25
- Smith 2006, pp. 25-26
- Smith 2006, pp. 25-26
- Smith & Jones 2006, p. 25
- Smith, Jones & Brown 2006, p. 25
- Smith et al. 2006, p. 25
Purpose
编辑There are limited situations in which it is undesirable to surround a Harvard citation by brackets. An example may be where the citation has been formatted as an inline citation using cite.php. See also Template:Harvard citation.
這個模板在原始碼中包含了一些非常複雜的可选參數和構造。 这个模版的结构精密,除非您确认非常了解它的用途和构造细节,并且能够修复这个修改所有可能引起的变更,否则请不要随意更动这个模板。所有实验性的步骤请在沙盒模版内,或是您的用户页内进行。使用前请参阅讨论页。 |
上述文档嵌入自Template:Harvnb/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |