Difference between revisions of "Template:Cite web"

From Surfing Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{title}}}
{{#if: {{{author|}}}  
     | {{#if: {{{url}}}  
     | {{{author}}}
        | [{{{url}}} {{{title}}}]
    {{#if: {{{date|}}}  
    | {{{title}}} }}
        | ({{{date}}}).
| <!--no title-->  
    | <!--else-->
    {{#if: {{{url}}}
         .<!--no date-->
        | {{{url}}}
    |
         <!--no title, no url-->  
     }}
     }}
| <!--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: {{{archiveurl|}}}
        | [{{{archiveurl}}} {{{title}}}].
    | <!--else-->
        {{#if: {{{url|}}}
            | [{{{url}}} {{{title}}}].
        | <!--else-->
            {{{title}}}.
        }}
    }}
| <!--else-->
    {{#if: {{{archiveurl|}}}
        | {{{archiveurl}}}.
    | <!--else-->
        {{#if: {{{url|}}}
            | {{{url}}}.
        | <!--else-->
            <!--no title, no url, no archiveurl-->
        }}
    }}
}}
{{#if: {{{website|}}}
    | ''{{{website}}}''.
| <!--else-->
    <!--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 17: 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=}}