Still working to recover. Please don't edit quite yet.

Difference between revisions of "Template:Cite book"

From Anarchopedia
Jump to: navigation, search
m (testing an older version of the template)
m (test)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
+
<includeonly><cite class="book" style="font-style:normal" {{#if: {{{ref|}}}
  #if: {{{ref|}}}
+
 
   |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
 
   |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
 
   |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
 
   |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
}}>{{
+
}}>{{#if: {{{author|{{{last|}}}}}}
  #if: {{{author|{{{last|}}}}}}
+
   | {{#if: {{{authorlink|}}}
   | {{
+
     | [[{{{authorlink}}}|{{#if: {{{last|}}}
    #if: {{{authorlink|}}}
+
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
     | [[{{{authorlink}}}|{{
+
      #if: {{{last|}}}
+
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
 
       | {{{author}}}
 
       | {{{author}}}
 
     }}]]
 
     }}]]
     | {{
+
     | {{#if: {{{last|}}}
      #if: {{{last|}}}
+
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
 
       | {{{author}}}
 
       | {{{author}}}
 
     }}
 
     }}
 
   }}
 
   }}
}}{{
+
}}{{#if: {{{author|{{{last|}}}}}}
  #if: {{{author|{{{last|}}}}}}
+
   | {{#if: {{{coauthors|}}} | ,&#32;{{{coauthors}}} }}
   | {{ #if: {{{coauthors|}}} | ,&#32;{{{coauthors}}} }}
+
}}{{#if: {{{origdate|}}}
}}{{
+
  #if: {{{origdate|}}}
+
 
   | &#32;<nowiki>[</nowiki>{{{origdate}}}]
 
   | &#32;<nowiki>[</nowiki>{{{origdate}}}]
   | {{
+
   | {{#if: {{{origyear|}}}
    #if: {{{origyear|}}}
+
     | {{#if: {{{origmonth|}}}
     | {{
+
      #if: {{{origmonth|}}}
+
 
       | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 
       | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 
       | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 
       | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 
     }}
 
     }}
 
   }}
 
   }}
}}{{
+
}}{{#if: {{{date|}}}
  #if: {{{date|}}}
+
 
   | &#32;({{{date}}})
 
   | &#32;({{{date}}})
   | {{
+
   | {{#if: {{{year|}}}
    #if: {{{year|}}}
+
     | {{#if: {{{month|}}}
     | {{
+
      #if: {{{month|}}}
+
 
       | &#32;({{{month}}} {{{year}}})
 
       | &#32;({{{month}}} {{{year}}})
 
       | &#32;({{{year}}})
 
       | &#32;({{{year}}})
 
     }}
 
     }}
 
   }}
 
   }}
}}{{ #if: {{{author|{{{last|}}}}}} | .
+
}}{{#if: {{{author|{{{last|}}}}}} | .
}}{{
+
}}{{#if: {{{chapter|}}}
  #if: {{{chapter|}}}
+
   | &#32;“{{#if: {{{chapterurl|}}}
   | &#32;“{{
+
    #if: {{{chapterurl|}}}
+
 
     | [{{{chapterurl}}} {{{chapter}}}]
 
     | [{{{chapterurl}}} {{{chapter}}}]
 
     | {{{chapter}}}
 
     | {{{chapter}}}
}}”,}}{{
+
}}”,}}{{#if: {{{editor|}}}
  #if: {{{editor|}}}
+
 
   | &#32;{{{editor}}}
 
   | &#32;{{{editor}}}
}} ''{{
+
}} ''{{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
+
}}''{{#if: {{{format|}}} | &#32;({{{format}}})
}}''{{
+
}}{{#if: {{{others|}}} | , {{{others}}}
  #if: {{{format|}}} | &#32;({{{format}}})
+
}}{{#if: {{{edition|}}} | , {{{edition}}}
}}{{
+
}}{{#if: {{{language|}}} | &#32;(in {{{language}}})
  #if: {{{others|}}} | , {{{others}}}
+
}}{{#if: {{{publisher|}}}
}}{{
+
   | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{#if: {{{location|}}}  
  #if: {{{edition|}}} | , {{{edition}}}
+
}}{{
+
  #if: {{{language|}}} | &#32;(in {{{language}}})
+
}}{{
+
  #if: {{{publisher|}}}
+
   | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{  
+
    #if: {{{location|}}}  
+
 
     | {{{location}}}:&#32;
 
     | {{{location}}}:&#32;
 
   }}{{{publisher}}}
 
   }}{{{publisher}}}
}}{{
+
}}{{#if: {{{pages|}}} | ,&#32;{{{pages}}}
  #if: {{{pages|}}} | ,&#32;{{{pages}}}
+
}}{{#if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
}}{{
+
}}{{#if: {{{id|}}} | . {{{id}}}
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
+
}}{{#if: {{{accessdate|}}}
}}{{
+
  #if: {{{id|}}} | . {{{id}}}
+
}}{{
+
  #if: {{{accessdate|}}}
+
 
   | . Retrieved on [[{{{accessdate}}}]]
 
   | . Retrieved on [[{{{accessdate}}}]]
   | {{
+
   | {{#if: {{{accessyear|}}}
    #if: {{{accessyear|}}}
+
     | . Retrieved {{#if: {{{accessmonth|}}}
     | . Retrieved {{
+
      #if: {{{accessmonth|}}}
+
 
       | on [[{{{accessmonth}}} {{{accessyear}}}]]
 
       | on [[{{{accessmonth}}} {{{accessyear}}}]]
 
       | during [[{{{accessyear}}}]]
 
       | during [[{{{accessyear}}}]]
 
     }}
 
     }}
 
   }}
 
   }}
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}”
+
}}.{{#if: {{{quote|}}} | &nbsp;“{{{quote}}}”
 
}}</cite></includeonly><noinclude>{{/doc}}</noinclude>
 
}}</cite></includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 00:58, 6 July 2008

Template:/doc