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

Difference between revisions of "Template:Cite book"

From Anarchopedia
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
+
<cite class="book" style="font-style:normal">{{qif
   #if: {{{ref|}}}
+
   |test={{{author|{{{last|}}}}}}
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
+
   |then={{qif
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
+
    |test={{{authorlink|}}}
}}>{{
+
     |then=[[{{{authorlink}}}|{{qif
   #if: {{{author|}}}{{{last|}}}
+
       |test={{{last|}}}
  | {{
+
       |then={{{last}}}{{qif
    #if: {{{authorlink|}}}
+
        |test={{{first|}}}
     | [[{{{authorlink}}}|{{
+
        |then=, {{{first}}}
       #if: {{{last|}}}
+
      }}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
       |else={{{author}}}
       | {{{author}}}
+
 
     }}]]
 
     }}]]
     | {{
+
     |else={{qif
       #if: {{{last|}}}
+
       |test={{{last|}}}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
       |then={{{last}}}{{qif
       | {{{author}}}
+
        |test={{{first|}}}
 +
        |then=, {{{first}}}
 +
      }}
 +
       |else={{{author}}}
 
     }}
 
     }}
 
   }}
 
   }}
}}{{
+
}}{{qif
   #if: {{{author|}}}{{{last|}}}
+
   |test={{{author|{{{last|}}}}}}
   | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
+
   |then={{qif
}}{{
+
    |test={{{coauthors|}}}
   #if: {{{origdate|}}}
+
    |then=<nowiki>;</nowiki>&#32;{{{coauthors}}}
   | &#32;<nowiki>[</nowiki>{{{origdate}}}]
+
  }}
   | {{
+
}}{{qif
     #if: {{{origyear|}}}
+
   |test={{{origdate|}}}
     | {{
+
   |then=&#32;<nowiki>[</nowiki>{{{origdate}}}]
       #if: {{{origmonth|}}}
+
   |else={{qif
       | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
+
     |test={{{origyear|}}}
       | &#32;<nowiki>[</nowiki>{{{origyear}}}]
+
     |then={{qif
 +
       |test={{{origmonth|}}}
 +
       |then=&#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 +
       |else=&#32;<nowiki>[</nowiki>{{{origyear}}}]
 
     }}
 
     }}
 
   }}
 
   }}
}}{{
+
}}{{qif
   #if: {{{date|}}}
+
   |test={{{date|}}}
   | &#32;({{{date}}})
+
   |then=&#32;({{{date}}})
   | {{
+
   |else={{qif
     #if: {{{year|}}}
+
     |test={{{year|}}}
     | {{
+
     |then={{qif
       #if: {{{month|}}}
+
       |test={{{month|}}}
       | &#32;({{{month}}} {{{year}}})
+
       |then=&#32;({{{month}}} {{{year}}})
       | &#32;({{{year}}})
+
       |else=&#32;({{{year}}})
 
     }}
 
     }}
 
   }}
 
   }}
}}{{ #if: {{{author|}}}{{{last|}}} | .
+
}}{{qif
}}{{
+
  |test={{{author|{{{last|}}}}}}
   #if: {{{chapter|}}}
+
  |then=.
   | &#32;"{{
+
}}{{qif
    #if: {{{chapterurl|}}}
+
   |test={{{chapter|}}}
    | [{{{chapterurl}}} {{{chapter}}}]
+
   |then=&#32;"{{qif
    | {{{chapter}}}
+
  |test={{{chapterurl|}}}
}}",}}{{
+
  |then=[{{{chapterurl}}} {{{chapter}}}]
   #if: {{{editor|}}}
+
  |else={{{chapter}}}
   | &#32;in {{{editor}}}:
+
}}"}}{{qif
}} <i>{{
+
   |test={{{editor|}}}
   #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
+
   |then=&#32;{{{editor}}}
}}</i>{{
+
}} ''{{qif
   #if: {{{format|}}} | &#32;({{{format}}})
+
   |test={{{url|}}}
}}{{
+
  |then=[{{{url}}} {{{title}}}]
   #if: {{{others|}}} | , {{{others}}}
+
  |else={{{title}}}
}}{{
+
}}''{{qif
   #if: {{{edition|}}} | , {{{edition}}}
+
   |test={{{format|}}}
}}{{
+
  |then=&#32;({{{format}}})
   #if: {{{series|}}} | , {{{series}}}
+
}}{{qif
}}{{
+
   |test={{{others|}}}
   #if: {{{language|}}} | &#32;(in {{{language}}})
+
  |then=, {{{others}}}
}}{{
+
}}{{qif
   #if: {{{publisher|}}}
+
   |test={{{edition|}}}
   | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{  
+
  |then=, {{{edition}}}
     #if: {{{location|}}}  
+
}}{{qif
     | {{{location}}}:&#32;
+
   |test={{{language|}}}
 +
   |then=&#32;(in {{{language}}})
 +
}}{{qif
 +
   |test={{{pages|}}}
 +
   |then=, p. {{{pages}}}
 +
}}{{qif
 +
  |test={{{publisher|}}}
 +
  |then=, {{qif
 +
     |test={{{location|}}}
 +
     |then={{{location}}}:&#32;
 
   }}{{{publisher}}}
 
   }}{{{publisher}}}
}}{{
+
}}{{qif
   #if: {{{pages|}}} | ,&#32;{{{pages}}}
+
   |test={{{id|}}}
}}{{
+
   |then=. {{{id}}}
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
+
}}{{qif
}}{{
+
   |test={{{accessdate|}}}
   #if: {{{id|}}} | . {{{id}}}
+
   |then=. URL accessed [[{{{accessdate}}}]]
}}{{
+
   |else={{qif
   #if: {{{isbn|}}} | . ISBN {{{isbn}}}
+
     |test={{{accessyear|}}}
}}{{
+
     |then=. URL accessed {{qif
  #if: {{{oclc|}}} | . [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
+
       |test={{{accessmonth|}}}
}}{{
+
       |then=on [[{{{accessmonth}}} {{{accessyear}}}]]
  #if: {{{accessdate|}}}
+
       |else=during [[{{{accessyear}}}]]
   | . Retrieved on [[{{{accessdate}}}]]
+
   | {{
+
     #if: {{{accessyear|}}}
+
     | . Retrieved {{
+
       #if: {{{accessmonth|}}}
+
       | on [[{{{accessmonth}}} {{{accessyear}}}]]
+
       | during [[{{{accessyear}}}]]
+
 
     }}
 
     }}
 
   }}
 
   }}
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}”
+
}}.{{qif
}}</cite><!--
+
   |test={{{quote|}}}
--><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
+
   |then=&nbsp;"{{{quote}}}"
   -->&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook<!--
+
}}</cite><noinclude>
  -->&rft.genre=book<!--
+
 
  -->&rft.btitle={{urlencode:{{{title|}}}}}<!--
+
 
  -->&rft.title={{urlencode:{{{title|}}}}}<!--
+
This template replaces the deprecated {{tl|book reference}}.
   -->{{#if: {{{chapter|}}}  | &rft.atitle={{urlencode:{{{chapter}}}}}  }}<!--
+
{{esoteric}}
  -->{{#if: {{{last|}}}      | &rft.aulast={{urlencode:{{{last}}}}}      }}<!--
+
[[Category:Citation templates|Book]]
  -->{{#if: {{{first|}}}    | &rft.aufirst={{urlencode:{{{first}}}}}    }}<!--
+
 
  -->{{#if: {{{author|}}}    | &rft.au={{urlencode:{{{author}}}}}        }}<!--
+
[[sk:Šablóna:Knižná_referencia]]
  -->{{#if: {{{date|}}}
+
</noinclude>
      | &rft.date={{urlencode:{{{date}}}}}
+
      | {{#if: {{{year|}}}  | &rft.date={{urlencode:{{{year}}}}} }}    }}<!--
+
  -->{{#if: {{{edition|}}}  | &rft.edition={{urlencode:{{{edition}}}}}  }}<!--
+
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}    }}<!--
+
  -->{{#if: {{{location|}}}  | &rft.place={{urlencode:{{{location}}}}}  }}<!--
+
  -->{{#if: {{{pages|}}}    | &rft.pages={{urlencode:{{{pages}}}}}      }}<!--
+
  -->{{#if: {{{series|}}}    | &rft.series={{urlencode:{{{series}}}}}      }}<!--
+
  -->{{#if: {{{isbn|}}}      | &rft.isbn={{{isbn}}}                      }}<!--
+
  -->{{#if: {{{oclc|}}}      | &rft_id=info:oclcnum/{{{oclc}}}          }}<!--
+
  -->{{#if: {{{doi|}}}      | &rft_id=info:doi/{{urlencode:{{{doi}}}}}  }}<!--
+
  -->{{#if: {{{url|}}}      | &rft_id={{urlencode:{{{url}}}}}          }}<!--
+
  -->">&nbsp;</span></includeonly>
+

Latest revision as of 02:13, 2 August 2008

{{{title}}}.


This template replaces the deprecated {{book reference}}. Template:esoteric