Template:Cite web: Difference between revisions

    From FeministWiki
    No edit summary
    (Add archive-url tag.)
     
    (3 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    <includeonly><!--
    <includeonly><!--


    -->{{#if: {{{last|}}} <!--
    -->{{#if: {{{author|}}} <!--
    If lastname given:
    -->|{{{author}}}{{#if: {{{date|}}} |&nbsp;({{{date}}})}}.<nowiki> </nowiki><!--
    -->|{{{last}}}, {{{first| {{error|First name missing}} }}}{{#if: {{{date|}}} |&nbsp;({{{date}}})}}.&nbsp;<!--
    -->|{{#if: {{{last|}}} |{{{last}}}, {{{first}}}}}<!--
    Else if author given:
    -->{{#if: {{{last1|}}} |{{{last1}}}, {{{first1}}}}}<!--
    -->|{{#if: {{{author|}}} <!--
    -->{{#if: {{{last2|}}} |<nowiki>;</nowiki> {{{last2}}}, {{{first2}}}}}<!--
        -->|{{{author}}}{{#if: {{{date|}}} |&nbsp;({{{date}}})}}.&nbsp;<!--
    -->{{#if: {{{last3|}}} |<nowiki>;</nowiki> {{{last3}}}, {{{first3}}}}}<!--
        -->}}<!--
    -->{{#if: {{{last4|}}} |<nowiki>;</nowiki> {{{last4}}}, {{{first4}}}}}<!--
    -->{{#if: {{{last5|}}} |<nowiki>;</nowiki> {{{last5}}}, {{{first5}}}}}<!--
    -->{{#if: {{{last|}}} {{{last1|}}} | {{#if: {{{date|}}} |&nbsp;({{{date}}})}}.}}<nowiki> </nowiki><!--
    -->}}<!--
    -->}}<!--


    -->{{#if: {{{url|}}}
    -->{{#if: {{{url|}}}
    |[{{{url}}} {{{title| {{error|No Title provided in cite web template}} }}}].
    |[{{{url}}} {{{title| {{error|No Title provided in web citation.}} }}}].
    |{{error|No URL provided in cite web template.}} }}<!--
    |{{error|No URL provided in web citation.}} }}<!--


    --> {{#if: {{{website|}}}   | ''{{{website}}}''. }}<!--
    --> {{#if: {{{website|}}} | ''{{{website}}}''. }}<!--
    --> {{#if: {{{publisher|}}} | {{{publisher}}}.   }}<!--
     
    --> {{#ifeq: {{{last|X}}} {{{author|Y}}} | X Y | {{#if: {{{date|}}} | {{{date}}}. }} }}<!--
    --> {{#if: {{{publisher|}}} | {{{publisher}}}. }}<!--
    --> {{#if: {{{quote|}}}     | "{{{quote}}}"     }}<!--
     
    --> {{#ifeq: {{{author|X}}} {{{last|Y}}} {{{last1|Z}}} | X Y Z | {{#if: {{{date|}}} | {{{date}}}. }} }}<!--
     
    --> {{#if: {{{quote|}}} | "{{{quote}}}" }}<!--
     
    --> {{#if: {{{access-date|}}} | Retrieved {{{access-date}}}. }}<!--
     
    --> {{#if: {{{archive-url|}}} | ''[{{{archive-url}}} Archived]'' }}<!--


    --></includeonly><noinclude>
    --></includeonly><noinclude>
    Examples of usage follow.
    View source to see examples of use.


    ==== No URL ====
    No URL:


    {{cite web |title=Test }}
    * {{cite web |title=Test }}


    ==== No title ====
    No title:


    {{cite web |url=https://example.org/ }}
    * {{cite web |url=https://example.org/ }}


    ==== Only URL and title ====
    Only URL and title:


    {{cite web |url=https://example.org/ |title=Example }}
    * {{cite web |url=https://example.org/ |title=Example }}


    ==== Date ====
    Date:


    {{cite web |url=https://example.org/ |title=Example |date=May 4th, 2019 }}
    * {{cite web |url=https://example.org/ |title=Example |date=May 4th, 2019 }}


    ==== Lastname, firstname ====
    Lastname, firstname:


    {{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name }}
    * {{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name }}


    ==== Lastname, firstname, date ====
    Lastname, firstname, date:


    {{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 }}
    * {{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 }}


    ==== Author ====
    Author:


    {{cite web |url=https://example.org/ |title=Example |author=Jane Doe }}
    * {{cite web |url=https://example.org/ |title=Example |author=Jane Doe }}


    ==== Author, date ====
    Author, date:


    {{cite web |url=https://example.org/ |title=Example |author=Jane Doe |date=May 4th, 2019 }}
    * {{cite web |url=https://example.org/ |title=Example |author=Jane Doe |date=May 4th, 2019 }}


    ==== All kinds of tags ====
    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 }}
    * {{cite web |url=https://example.org/ |title=Example |last=Surname |first=Name |date=May 4th, 2019 |website=example.org |publisher=Example Publishing |access-date=May 5th, 2019 |archive-url=https://example.org/ }}


    ==== All kinds of tags, and quote ====
    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! }}
    * {{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! |access-date=May 5th, 2019 |archive-url=https://example.org/ }}


    </noinclude>
    </noinclude>

    Latest revision as of 18:15, 4 January 2021

    View source to see examples of use.

    No URL:

    • ERROR: No URL provided in web citation.

    No title:

    Only URL and title:

    Date:

    Lastname, firstname:

    Lastname, firstname, date:

    • Surname, Name (May 4th, 2019). Example.

    Author:

    Author, date:

    • Jane Doe (May 4th, 2019). Example.

    All kinds of tags:

    • Surname, Name (May 4th, 2019). Example. example.org. Example Publishing. Retrieved May 5th, 2019. Archived

    All kinds of tags, and quote:

    • Surname, Name (May 4th, 2019). Example. example.org. Example Publishing. "Blah blah, blah blah!" Retrieved May 5th, 2019. Archived