Template:Cite web: Difference between revisions

    From FeministWiki
    No edit summary
    No edit summary
    Line 1: Line 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>

    Revision as of 18:18, 30 May 2019

    Examples of usage follow.

    No URL

    ERROR: No URL provided in cite web template.

    No title

    ERROR: No Title provided in cite web template .

    Only URL and title

    Example.

    Date

    Example. May 4th, 2019.

    Lastname, firstname

    Surname, Name. Example.

    Lastname, firstname, date

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

    Author

    Jane Doe. Example.

    Author, date

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

    All kinds of tags

    Surname, Name (May 4th, 2019). Example. example.org. Example Publishing.

    All kinds of tags, and quote

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