Predefinição:Referência/doc: diferenças entre revisões
[edição não verificada] | [edição não verificada] |
Conteúdo apagado Conteúdo adicionado
m moveu Predefinição:Citation/doc para Predefinição:Referência/doc: nome em português |
ajuste |
||
Linha 3:
{{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).
Linha 11:
==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).
Linha 20:
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}}.
Linha 34:
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.
Linha 45:
{| class="wikitable"
|-
|<pre>{{
|last=
|first=
Linha 147:
|One author
|<pre>
{{
| last=Turner
| first=O.
Linha 159:
}}
</pre>
|{{
| last=Turner
| first=O.
Linha 171:
|Three authors, a volume, and an edition. Ampersand (&) forced before final author's name.
|<pre>
{{
| last1=Lincoln
| first1=A.
Linha 187:
}}
</pre>
|{{
| last1=Lincoln
| first1=A.
Linha 209:
|-
|<pre>
{{Referência
| last =
| first =
Linha 248:
|Journal article
|<pre>
{{Referência
| last=Hill
| first=Marvin S.
Linha 263:
}}
</pre>
|{{
| last=Hill
| first=Marvin S.
Linha 277:
|Newspaper article
|<pre>
{{Referência
| last=Smith
| first=Joseph III
Linha 294:
}}
</pre>
|{{
| last=Smith
| first=Joseph III
Linha 316:
|-
|<pre>
{{Referência
| last =
| first =
Linha 391:
|Manuscript published in an edited compilation
|<pre>
{{Referência
| last=Bidamon
| first=Emma Smith
Linha 407:
}}
</pre>
|{{
| last=Bidamon
| first=Emma Smith
Linha 425:
|Work with an editor but no author
|<pre>
{{Referência
| editor-last=Vogel
| editor-first=Dan
Linha 435:
}}
</pre>
|{{
| editor-last=Vogel
| editor-first=Dan
Linha 447:
|Encyclopedia article by a named author
|<pre>
{{Referência
| last = Kramer
| first = Martin
Linha 466:
}}
</pre>
|{{
| last = Kramer
| first = Martin
Linha 484:
|Encyclopedia article with no named author
|<pre>
{{Referência
| contribution = Bernard Lewis
| editor-last = Boyd
Linha 500:
}}
</pre>
|{{
| contribution = Bernard Lewis
| editor-last = Boyd
Linha 519:
|-
|<pre>
{{Referência
| last =
| first =
Linha 597:
|Manuscript edited and published in a journal
|<pre>
{{Referência
| last=Knight
| first=Joseph, Sr.
Linha 613:
shop/PDFSRC/17.1Jessee.pdf
}}</pre>
|{{
| last=Knight
| first=Joseph, Sr.
Linha 630:
|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
Linha 650:
}}
</pre>
|{{
| last=Klingensmith
| first=Philip
Linha 673:
{| class="wikitable"
|-
|<pre>{{
| inventor-last =
| inventor-first =
Linha 706:
|United States patent with multiple inventors
|<pre>
{{Referência
| inventor1-last = Degermark
| inventor1-first = Mikael
Linha 723:
| country-code = US}}
</pre>
|{{
| inventor1-first = Mikael | inventor1-last = Degermark
| inventor2-first = Andrej | inventor2-last = Brodnik
|