Predefinição:Referência/doc: diferenças entre revisões

m
→‎Anchors for Harvard referencing templates: must use year=2005 rather than date=2005
[edição não verificada][edição não verificada]
("doi_inactivedate" better conveys that the DOI does not need "fixing".)
m (→‎Anchors for Harvard referencing templates: must use year=2005 rather than date=2005)
Last names are used, as specified by the parameters {{para|last1}} (or {{para|last}}), {{para|last2}}, {{para|last3}}, and {{para|last4}}, and similarly for {{para|editor1-last}} etc. and for {{para|inventor1-last}} etc. If a full name is given but no last name is specified, this template falls back on the full name, but this usage is not recommended. For example, in "<code><nowiki>{{Citation |author=Sigmund Freud |title=The Ego and the Id |year=1923}}</nowiki></code>" no last name is given, so this citation cannot be combined with the Harvard reference "<code><nowiki>{{harv|Freud|1923}}</nowiki></code>". To make these {{tl|citation}} and {{tl|harv}} invocations compatible, either replace "{{para|author|Sigmund Freud}}" with "{{para|first|Sigmund}} {{para|last|Freud}}", or add "{{para|ref|<nowiki>{{harvid|Freud|1923}}</nowiki>}}" to the {{tl|citation}} invocation, or add the same ref parameter (say, "{{para|ref|EgoId}}") to both the {{tl|citation}} and the {{tl|harv}} invocations.
 
Similarly, the year is used, as specified by {{para|year}}. If no year is given, this template attempts to derive the year from {{para|date}} (or, if no date is given, from {{para|publication-date}}) by applying the [[m:Help:Extension:ParserFunctions#.23time:|MediaWiki #time function]]. This heuristic works with many common date formats (American, International and YYYY-MM-DD as listed in [[WP:MOS]]) but hasmay knownnot problemswork as expected with other formats, so when in doubt it ismay be safer to use {{para|year}}. Note that if only a year, say 2005, is known you must use {{para|year|2005}} rather than {{para|date|2005}}.
 
===IDs must be unique===
0

edição