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
imported>DePiep
expand on "nopp="
Koavf (discussão | contribs)
m fmt
Linha 9:
All parameter names are [[lowercase]].
 
== 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|citation}} template. If an empty {{para|ref}} is given, no anchor is generated; this is the default for the Cite templates such as {{tl|cite book}} and {{tl|cite news}}. You can also specify the ID directly, using the {{para|ref|<var>ID</var>}} parameter. For example, suppose an article's ''References'' section contains the markup:
Linha 17:
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).
 
=== Anchors for Harvard referencing templates ===
 
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:
Linha 30:
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 but has known problems, so when in doubt it is safer to use {{para|year}}.
 
=== IDs must be unique ===
 
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:
Linha 107:
* '''author2-link''', '''author3-link''', '''author4-link''': Title of an existing Wikipedia article about the second, third, and fourth author, if applicable.
* '''author-separator''': override the default semi-colon that separates authors' names.
* '''author-name-separator''': override the default comma that separates authors' names.
* '''display-authors''': Truncate the list of authors at an arbitrary point with "''et al''". Still include the first 9 authors to allow metadata to be generated.
* '''publication-date''' (or '''date'''): Date<ref group="n" name="dates" /> of publication.
Linha 113:
* '''year''': Year of authorship or publication. (Mandatory for use with links from [[:Template:Harvard citation]]. In some situations, the template may be able to derive a year from the full ''date''.)
* '''origyear''': Year of first publication, if different.
* '''title''': Title of the book. If the title includes [square brackets], these must be encoded: [ &rarr;as "<code>&amp;#91;</code>" ;for ]"[" &rarr;and "<code>&amp;#93;</code>" for "]"
* '''edition''': Number or name of the edition, if not the first; for example: ''edition''=2nd.
* '''volume''': The volume number of a multi-volume book.
Linha 257:
| issue=2
| year=1976
| pages=1&ndash;81–8
| url=https://byustudies.byu.edu/
shop/PDFSRC/12.2Hill.pdf
Linha 270:
| issue=2
| year=1976
| pages=1&ndash;81–8
| url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf
}}
Linha 369:
* '''editor2-first''', '''editor3-first''', '''editor4-first''': The second, third, and fourth editors' first or given name(s), if applicable.
* '''editor2-link''', '''editor3-link''', '''editor4-link''': Title of an existing Wikipedia article about the second, third, and fourth editor, if applicable.
* '''title''': Title of the book or compilation. If the title includes [square brackets], these must be encoded: [ &rarr;as "<code>&amp;#91;</code>" ;for ]"[" &rarr;and "<code>&amp;#93;</code>" for "]"
* '''edition''': Number or name of the edition, if not the first; for example: ''edition''=2nd.
* '''series''': Series of which this periodical is a part.
Linha 456:
and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
Linha 474:
| title = Encyclopedia of Historians and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
Linha 490:
and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
Linha 505:
| title = Encyclopedia of Historians and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
Linha 574:
* '''editor2-first''', '''editor3-first''', '''editor4-first''': The second, third, and fourth editors' first or given name(s), if applicable.
* '''editor2-link''', '''editor3-link''', '''editor4-link''': Title of an existing Wikipedia article about the second, third, and fourth editor, if applicable.
* '''title''': Title of the book or compilation. If the title includes [square brackets], these must be encoded: [ &rarr;as "<code>&amp;#91;</code>" ;for ]"[" &rarr;and "<code>&amp;#93;</code>" for "]"
* '''periodical''' (or '''journal''', '''newspaper''', '''magazine'''): Name of the periodical.
* '''series''': Series of which this periodical is a part.
Linha 695:
* '''publication-date''': Date of publication or filing.
* '''issue-date''' (or '''date'''): Date patent was issued by patent agency.
* '''title''': Title of the patent. If the title includes [square brackets], these must be encoded: [ &rarr;as "<code>&amp;#91;</code>" ;for ]"[" &rarr;and "<code>&amp;#93;</code>" for "]"
* '''country-code''': [[ISO 3166-1 alpha-2|Two-letter abbreviation]] of the country issuing the patent.
* '''description''': Type of patent; shown between country code and number.
Linha 755:
{{UF-COinS}}
 
== Additional Parameters parameters==
{{AuthorMask doc}}
 
<includeonly>
[[Category:Citation templates|* ]]
 
[[da:Skabelon:Citation]]