Difference between revisions of "Template:Cite book"

From Surfing Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {{#if: {{{author|}}} | {{{author}}} {{#if: {{{date|}}} | ({{{date}}}). | <!--else--> .<!--date--> }} | <!--else--> <!--no a...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{author|}}}  
{{#if: {{{author|}}}  
     | {{{author}}} {{#if: {{{date|}}}  
     | {{{author}}}
            | ({{{date}}}).
    {{#if: {{{date|}}}  
        | <!--else-->
        | ({{{date}}}).
            <!--date-->
    | <!--else-->
        }}
        .<!--date-->
    }}
| <!--else-->
| <!--else-->
     <!--no author-->
     <!--no author-->
}}
}}{{#if: {{{title|}}}  
{{#if: {{{title|}}}  
     | ''{{{title}}}''
     | ''{{{title}}}''
| <!--else-->
| <!--else-->
     <!--no title-->
     <!--no title-->
}}
}}{{#if: {{{publisher|}}}  
{{#if: {{{publisher|}}}  
     | {{{publisher}}}.
     | {{{publisher}}}.
| <!--else-->
| <!--else-->
     <!--no publisher-->
     <!--no publisher-->
}}
}}{{#if: {{{isbn|}}}  
{{#if: {{{isbn|}}}  
     | ISBN {{{isbn}}}.
     | ISBN {{{isbn}}}.
| <!--else-->
| <!--else-->
     <!--no isbn-->
     <!--no isbn-->
}}
}}{{#if: {{{oclc|}}}  
</includeonly>
    | OCLC [http://www.worldcat.org/oclc/{{{oclc}}} {{{oclc}}}].
 
| <!--else-->
<noinclude>
    <!--no oclc-->
}}</includeonly><noinclude>
==Usage:==
==Usage:==
* Everything is optional.
* Everything is optional.
<pre>
<pre>
{{cite book |author= |date= |title= |publisher= |isbn=}}
{{cite book |author= |date= |title= |publisher= |isbn= |oclc=}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 20:22, 19 February 2015

Usage:

  • Everything is optional.
{{cite book |author= |date= |title= |publisher= |isbn= |oclc=}}