Bản mẫu:Sfnaut/doc
![]() | Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Sfnaut. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
This is an alternative to {{sfnm}}
optimized for articles that
- have to be very heavily sourced,
- regularly cite four, five or more sources for a single sentence,
- have a tendency towards longer-than-average author names and/or location strings.
Features:
- Simple syntax without named parameters, like
{{sfn}}
. - Improves body text readability by creating single footnote marks for groups of four, five, six, ... citations, like
{{sfnm}}
. - Produces scannable citation sections that an auto-width
{{reflist}}
will display without annoying line break, like{{sfn}}
. - Currently supports up to 10 (ten) sources per invocation.
Disadvantages:
- Sources with multiple authors will generally need an explicit
{{sfnref}}
in the{{cite xxx}}
invocation.
Usage
sửaYou type this:
Hello.{{sfnaut|Weissensteiner|1983|85|Barth-Scalmani et al.|1997|54–55|Raschauer|2009|Rz 356–358}}
{{reflist}}
You see this:
Hello.[1]
The list of parameters is interpreted as a bunch of three-element tuples describing one citation each. The elements of each tuple are:
- the name of the author;
- the date;
- the in-source location:
- If the location consists of digits only, the value is taken to be a page number and is passed to the underlying
{{harvnb}}
template using ap
parameter. - If the location does not consist of digits only but does start with a digit, the value is assumed to be a set of page numbers or page ranges – the nondigit characters are probably just separators such as commas, dashes, or spaces – and is passed using
pp
. - If the location starts with a nondigit, the value is assumed to be a numbered paragraph of some sort (Art., §, Rz or similar) and is passed using
loc
.
- If the location consists of digits only, the value is taken to be a page number and is passed to the underlying
If the work has more than one author, create a fake author name with {{sfnref}}
, like so:
{{cite book| ref={{sfnref|Adamovich et al.|2011}}| author-last1=Adamovich| ........ }}
The lack of built-in support for works with multiple authors is the price the template pays for avoiding named parameters. The {{sfnm}}
method of numbered sets of named parameters makes template invocations verbose, error-prone, and difficult to type; it also makes it cumbersome to move citations around because you keep having to renumber parameter names. In some areas (say, articles on the Austrian legal system) virtually all sources have one author only, and the very few that have more than one are conventionally cited as First et al. anyway.