586
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
<includeonly>{{#if: {{{last|}}} | <includeonly><!-- | ||
| {{{last}}}, {{{first}}} {{#if: {{{date|}}} | ({{{date}}}) | |||
| {{#if: {{{author|}}} | -->{{#if: {{{last|}}} <!-- | ||
If lastname given: | |||
#if: {{{url|}}} | -->|{{{last}}}, {{{first| {{error|First name missing}} }}}{{#if: {{{date|}}} | ({{{date}}})}}. <!-- | ||
| [{{{url}}} {{{title| {{error|No Title provided in cite web template}} }}}]. | Else if author given: | ||
| {{error|No URL provided in cite web template.}} }} {{ | -->|{{#if: {{{author|}}} <!-- | ||
#if: {{{website|}}} | -->|{{{author}}}{{#if: {{{date|}}} | ({{{date}}})}}. <!-- | ||
| ''{{{website}}}''. }} {{ | -->}}<!-- | ||
#if: {{{publisher|}}} | -->}}<!-- | ||
| {{{publisher}}}. }}{{ | |||
#ifeq: {{{last|X}}} {{{author|Y}}} | X Y | -->{{#if: {{{url|}}} | ||
| {{#if: {{{date|}}} | |[{{{url}}} {{{title| {{error|No Title provided in cite web template}} }}}]. | ||
|{{error|No URL provided in cite web template.}} }}<!-- | |||
#if: {{{quote|}}} | |||
| "{{{quote}}}" }}</includeonly> | --> {{#if: {{{website|}}} | ''{{{website}}}''. }}<!-- | ||
--> {{#if: {{{publisher|}}} | {{{publisher}}}. }}<!-- | |||
--> {{#ifeq: {{{last|X}}} {{{author|Y}}} | X Y | {{#if: {{{date|}}} | {{{date}}}. }} }}<!-- | |||
--> {{#if: {{{quote|}}} | "{{{quote}}}" }}<!-- | |||
--></includeonly><noinclude> | |||
Examples of usage follow. | |||
==== No URL ==== | |||
{{cite web |title=Test }} | |||
==== No title ==== | |||
{{cite web |url=https://example.org/ }} | |||
==== Only URL and title ==== | |||
{{cite web |url=https://example.org/ |title=Example }} | |||
==== Date ==== | |||
{{cite web |url=https://example.org/ |title=Example |date=May 4th, 2019 }} | |||
==== Lastname, firstname ==== | |||
{{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name }} | |||
==== Lastname, firstname, date ==== | |||
{{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 }} | |||
==== Author ==== | |||
{{cite web |url=https://example.org/ |title=Example |author=Jane Doe }} | |||
==== Author, date ==== | |||
{{cite web |url=https://example.org/ |title=Example |author=Jane Doe |date=May 4th, 2019 }} | |||
==== All kinds of tags ==== | |||
{{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 |website=example.org |publisher=Example Publishing }} | |||
==== All kinds of tags, and quote ==== | |||
{{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 |website=example.org |publisher=Example Publishing |quote=Blah blah, blah blah! }} | |||
</noinclude> |