Predefinição:Referência/doc: diferenças entre revisões
Predefinição:Referência/doc (editar)
Revisão das 20h20min de 20 de outubro de 2010
, 20 de outubro de 2010ajuste
[edição não verificada] | [edição não verificada] |
m (moveu Predefinição:Citation/doc para Predefinição:Referência/doc: nome em português) |
(ajuste) |
||
{{For2|the {{Fact}} template|{{Tl|Citation needed}}}}
The '''
If invoked with the right parameters, this template produces output identical to that of the Cite templates, such as {{tl|cite book}} and {{tl|cite web}}. The default behavior sometimes differs from that of the Cite templates; for example, this template by default generates anchors for [[Harvard reference]]s whereas the Cite templates do not (although they can be made to do so), and this template by default uses commas to separate some fields that the Cite templates separate with periods (full stops).
==Anchored citations==
This template can generate a citation that can be combined with [[WP:CITESHORT|shortened footnotes]] or [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref|harv}} generates an ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; this is the default for the {{tl|
* <code><nowiki>{{
which generates the citation:
* {{
Then, the markup "<code><nowiki>([[#CivDis|Freud 1930]])</nowiki></code>" generates a parenthetical reference "([[#CivDis|Freud 1930]])" containing a wikilink to the citation (try clicking on the wikilink).
IDs compatible with Harvard referencing templates such as {{tl|harv}} are computed from the last names of the authors and the year of the cited source. For example, the markup "<code><nowiki>{{harv|Wright|Evans|1851|p=ix}}</nowiki></code>" generates the Harvard reference "{{harv|Wright|Evans|1851|p=ix}}", which wikilinks to the citation whose markup and appearance are shown below:
* <code><nowiki>{{
* {{
In this example the {{tl|
The names of only the first four authors are used; other author names are not concatenated to the ID. If no author names are given, editor names are used instead. For [[#Citing patents|patents]], inventor names are used instead of authors or editors. If these names are not given, this template does not generate an anchor.
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>{{
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 may not work as expected with other formats, so when in doubt it may 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}}.
Names, years, and hand-specified IDs must be chosen so that the IDs are unique within a page; otherwise the HTML will not conform to the W3C standards, and any references to the citations will not work reliably. For example, suppose a page contains the following two citations with {{tl|harv}}-compatible IDs:
* {{
* {{
If these citations were altered to say "2008" rather than "2008a" and "2008b", the resulting page would not work, because the two different citations would both attempt to use the ID "<code>CITEREFMontesHalterman2008</code>". To avoid this problem, distinguish the citations by appending suffixes to the years, ''e.g.'', "{{para|year|2008a}}" and "{{para|year|2008b}}", as was done above. Any Harvard references to these citations should use years with the same suffixes.
{| class="wikitable"
|-
|<pre>{{
|last=
|first=
|One author
|<pre>
{{
| last=Turner
| first=O.
}}
</pre>
|{{
| last=Turner
| first=O.
|Three authors, a volume, and an edition. Ampersand (&) forced before final author's name.
|<pre>
{{
| last1=Lincoln
| first1=A.
}}
</pre>
|{{
| last1=Lincoln
| first1=A.
|-
|<pre>
{{Referência
| last =
| first =
|Journal article
|<pre>
{{Referência
| last=Hill
| first=Marvin S.
}}
</pre>
|{{
| last=Hill
| first=Marvin S.
|Newspaper article
|<pre>
{{Referência
| last=Smith
| first=Joseph III
}}
</pre>
|{{
| last=Smith
| first=Joseph III
|-
|<pre>
{{Referência
| last =
| first =
|Manuscript published in an edited compilation
|<pre>
{{Referência
| last=Bidamon
| first=Emma Smith
}}
</pre>
|{{
| last=Bidamon
| first=Emma Smith
|Work with an editor but no author
|<pre>
{{Referência
| editor-last=Vogel
| editor-first=Dan
}}
</pre>
|{{
| editor-last=Vogel
| editor-first=Dan
|Encyclopedia article by a named author
|<pre>
{{Referência
| last = Kramer
| first = Martin
}}
</pre>
|{{
| last = Kramer
| first = Martin
|Encyclopedia article with no named author
|<pre>
{{Referência
| contribution = Bernard Lewis
| editor-last = Boyd
}}
</pre>
|{{
| contribution = Bernard Lewis
| editor-last = Boyd
|-
|<pre>
{{Referência
| last =
| first =
|Manuscript edited and published in a journal
|<pre>
{{Referência
| last=Knight
| first=Joseph, Sr.
shop/PDFSRC/17.1Jessee.pdf
}}</pre>
|{{
| last=Knight
| first=Joseph, Sr.
|Manuscript written at one date and place, then published in a periodical at a different date and place with commentary by the editor.
|<pre>
{{Referência
| last=Klingensmith
| first=Philip
}}
</pre>
|{{
| last=Klingensmith
| first=Philip
{| class="wikitable"
|-
|<pre>{{
| inventor-last =
| inventor-first =
|United States patent with multiple inventors
|<pre>
{{Referência
| inventor1-last = Degermark
| inventor1-first = Mikael
| country-code = US}}
</pre>
|{{
| inventor1-first = Mikael | inventor1-last = Degermark
| inventor2-first = Andrej | inventor2-last = Brodnik
|