Template:Cite web: differenze tra le versioni

nessun oggetto della modifica
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 1: Riga 1:
<includeonly>{{#if: {{{last|}}}
<includeonly><!--
| {{{last}}}, {{{first}}} {{#if: {{{date|}}} | ({{{date}}}). }}
 
| {{#if: {{{author|}}}
-->{{#if: {{{last|}}} <!--
  | {{{author}}} {{#if: {{{date|}}} | ({{{date}}}). }} }} }} {{
If lastname given:
#if: {{{url|}}}
-->|{{{last}}}, {{{first| {{error|First name missing}} }}}{{#if: {{{date|}}} |&nbsp;({{{date}}})}}.&nbsp;<!--
| [{{{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|}}} |&nbsp;({{{date}}})}}.&nbsp;<!--
| ''{{{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}} }}}].
  | {{{date}}}. }} }}{{
|{{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>