Difference between revisions of Template:Citation/doc
Viceroy Sam (talk | contribs) →Deprecated: delete |
Viceroy Sam (talk | contribs) update help links to Wikipedia: |
||
| Line 5: | Line 5: | ||
{{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{High-risk|189000+}}}} | {{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{High-risk|189000+}}}} | ||
{{csdoc|lua|lua=yes}} | {{csdoc|lua|lua=yes}} | ||
The '''Citation''' template generates a citation for a book, periodical, contribution in a collective work, or a web page. It determines the citation type by examining which parameters are used. As with other citation templates, this template can be used either in a footnote (between {{tag|ref}} tags) or in a section that lists sources. This template uses the same [[WP:Lua|Lua]] code as [[help:Citation Style 1|citation style 1 (CS1)]] templates with parameters to change the displayed format to [[help:Citation Style 2|citation style 2 (CS2)]]. | The '''Citation''' template generates a citation for a book, periodical, contribution in a collective work, or a web page. It determines the citation type by examining which parameters are used. As with other citation templates, this template can be used either in a footnote (between {{tag|ref}} tags) or in a section that lists sources. This template uses the same [[WP:Lua|Lua]] code as [[Wikipedia:help:Citation Style 1|citation style 1 (CS1)]] templates with parameters to change the displayed format to [[Wikipedia:help:Citation Style 2|citation style 2 (CS2)]]. | ||
If the correct parameters are used, this template produces output identical to that of the Cite templates, such as {{Tl|Cite book}} and {{Tl|Cite web}}, with one important exception: By default, this Citation template uses commas in places where the Cite templates use periods (full stops) by default; either type of template can use periods (full stops) or commas by using an optional parameter. | If the correct parameters are used, this template produces output identical to that of the Cite templates, such as {{Tl|Cite book}} and {{Tl|Cite web}}, with one important exception: By default, this Citation template uses commas in places where the Cite templates use periods (full stops) by default; either type of template can use periods (full stops) or commas by using an optional parameter. | ||