Difference between revisions of "Template:Cite web"

From Surfing Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{author|}}}
    | {{{author}}}
    {{#if: {{{date|}}}
        | ({{{date}}}).
    | <!--else-->
        .<!--no date-->
    }}
| <!--else-->
    {{#if: {{{last|}}}
        | {{{last}}}
        {{#if: {{{first|}}}
            | , {{{first}}}
            {{#if: {{{date|}}}
                | ({{{date}}}).
            | <!--else-->
                .<!--no date-->
            }}
        | <!--else-->
            .<!--no last name, no first name-->
        }}
    | <!--else-->
        <!--no last name-->
    }}
}}
{{#if: {{{title|}}}  
{{#if: {{{title|}}}  
     | {{#if: {{{url|}}}  
     | {{#if: {{{archiveurl|}}}  
         | [{{{url}}} {{{title}}}].
         | [{{{archiveurl}}} {{{title}}}].
     | <!--else-->
     | <!--else-->
         {{{title}}}.
         {{#if: {{{url|}}}
            | [{{{url}}} {{{title}}}].
        | <!--else-->
            {{{title}}}.
        }}
     }}
     }}
| <!--else-->
| <!--else-->
     {{#if: {{{url|}}}  
     {{#if: {{{archiveurl|}}}  
         | {{{url}}}.
         | {{{archiveurl}}}.
     | <!--else-->
     | <!--else-->
         <!--no title, no url-->  
         {{#if: {{{url|}}}
            | {{{url}}}.
        | <!--else-->
            <!--no title, no url, no archiveurl-->  
        }}
     }}
     }}
}}
}}
{{#if: {{{website|}}}  
{{#if: {{{website|}}}  
     | {{{website}}}  
     | ''{{{website}}}''.
| <!--else-->
| <!--else-->
     <!--no website-->
     <!--no website-->
}}
{{#if: {{{publisher|}}}
    | {{{publisher}}}.
| <!--else-->
    <!--no publisher-->
}}
{{#if: {{{archiveurl|}}}
    | Archived from [{{{url}}} the original] on {{{archivedate}}}.
| <!--else-->
    <!--no archiveurl-->
}}
{{#if: {{{accessdate|}}}
    | Retrieved {{{accessdate}}}.
| <!--else-->
    <!--no accessdate-->
}}
{{#if: {{{quote|}}}
    | "{{{quote}}}"
| <!--else-->
    <!--no quote-->
}}
}}
</includeonly>
</includeonly>
Line 24: Line 76:
<noinclude>
<noinclude>
==Usage:==
==Usage:==
* Everything is optional;
* Everything is optional.
* Must have a last name if you want a first name.
<pre>
<pre>
{{cite web |url= |title= |last1= |first1= |last2= |first2= |date= |website= |publisher= |accessdate=}}
{{cite web |url= |title= |author= |publisher= |date= |website= |accessdate= |archiveurl= |archivedate= |quote=}}
{{cite web |url= |title= |last= |first= |publisher= |date= |website= |accessdate= |archiveurl= |archivedate= |quote=}}
</pre>
</pre>
{{cite web |url=http://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |date=30 April 2005 |website=Encyclopedia of Things |accessdate=2 February 2015}}
Doe, John (30 April 2005). "My Favorite Things, Part II". Encyclopedia of Things. Retrieved 2 February 2015.
</noinclude>
</noinclude>

Latest revision as of 07:45, 13 February 2015



Usage:

  • Everything is optional.
  • Must have a last name if you want a first name.
{{cite web |url= |title= |author= |publisher= |date= |website= |accessdate= |archiveurl= |archivedate= |quote=}}
{{cite web |url= |title= |last= |first= |publisher= |date= |website= |accessdate= |archiveurl= |archivedate= |quote=}}