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

m
fmt
imported>DePiep
(expand on "nopp=")
m (fmt)
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:
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:
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:
* '''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.
* '''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.
| issue=2
| year=1976
| pages=1&ndash;81–8
| url=https://byustudies.byu.edu/
shop/PDFSRC/12.2Hill.pdf
| issue=2
| year=1976
| pages=1&ndash;81–8
| url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf
}}
* '''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.
and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
| title = Encyclopedia of Historians and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
| title = Encyclopedia of Historians and Historical Writing
| volume = 1
| pages = 719&ndash;720719–720
| publisher = Fitzroy Dearborn
| place = London
* '''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.
* '''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.
{{UF-COinS}}
 
== Additional Parameters parameters==
{{AuthorMask doc}}
 
<includeonly>
[[Category:Citation templates|* ]]
 
[[da:Skabelon:Citation]]
1

edição