「テンプレート:Cite book/和書」の版間の差分

提供: miniwiki
移動先:案内検索
ja>Glayhours
(coauthors 前の中黒を読点に変更。ノート参照。)
 
(ページの作成:「<cite class="book" style="font-style:normal" {{ #if: {{{ref|}}} |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}} |{{#if:{{{year|}}} | {{#if:{{{last|}}} | id="Re…」)
1行目: 1行目:
 
<cite class="book" style="font-style:normal" {{
 
<cite class="book" style="font-style:normal" {{
 
+
  #if: {{{ref|}}}
   #switch:{{{ref|}}}
+
   |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
   | = {{#if:{{{year|}}}
+
   |{{#if:{{{year|}}}  
        | {{#if:{{{last|}}}   | id="Reference-{{{last}}}-{{{year}}}" }}
+
    | {{#if:{{{last|}}}
          {{#if:{{{author|}}} | id="Reference-{{{author}}}-{{{year}}}" }}
+
      | id="Reference-{{{last}}}-{{{year}}}"
 +
      | {{#if:{{{author|}}}
 +
        | id="Reference-{{{author}}}-{{{year}}}"
 
       }}
 
       }}
  |none =
+
     }}
  |#default = id="{{anchorencode:{{{ref}}}}}"
 
  |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
 
    |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
 
      |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 
      |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 
     }}{{#if:{{{year|}}}|{{{year}}}|{{padleft:|4|{{{date|}}}}}}}}}"
 
 
   }}
 
   }}
 
}}>{{
 
}}>{{
20行目: 16行目:
 
     | [[{{{authorlink}}}|{{
 
     | [[{{{authorlink}}}|{{
 
       #if: {{{last|}}}
 
       #if: {{{last|}}}
       | {{{last}}}{{ #if: {{{first|}}} |, {{{first}}} }}
+
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
 
       | {{{author}}}
 
       | {{{author}}}
 
     }}]]
 
     }}]]
 
     | {{
 
     | {{
 
       #if: {{{last|}}}
 
       #if: {{{last|}}}
       | {{{last}}}{{ #if: {{{first|}}} |, {{{first}}} }}
+
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
 
       | {{{author}}}
 
       | {{{author}}}
    }}
 
  }}{{
 
  #if:{{{author2|}}}{{{last2|}}}
 
  | 、{{
 
    #if: {{{authorlink2|}}}
 
    | [[{{{authorlink2}}}|{{
 
      #if: {{{last2|}}}
 
      | {{{last2}}}{{ #if: {{{first2|}}} |, {{{first2}}} }}
 
      | {{{author2}}}
 
    }}]]
 
    | {{
 
      #if: {{{last2|}}}
 
      | {{{last2}}}{{ #if: {{{first2|}}} |, {{{first2}}} }}
 
      | {{{author2}}}
 
    }}
 
  }}{{
 
  #if:{{{author3|}}}{{{last3|}}}
 
  | 、{{
 
    #if: {{{authorlink3|}}}
 
    | [[{{{authorlink3}}}|{{
 
      #if: {{{last3|}}}
 
      | {{{last3}}}{{ #if: {{{first3|}}} |, {{{first3}}} }}
 
      | {{{author3}}}
 
    }}]]
 
    | {{
 
      #if: {{{last3|}}}
 
      | {{{last3}}}{{ #if: {{{first3|}}} |, {{{first3}}} }}
 
      | {{{author3}}}
 
    }}
 
  }}{{
 
  #if:{{{author4|}}}{{{last4|}}}
 
  | 、{{
 
    #if: {{{authorlink4|}}}
 
    | [[{{{authorlink4}}}|{{
 
      #if: {{{last4|}}}
 
      | {{{last4}}}{{ #if: {{{first4|}}} |, {{{first4}}} }}
 
      | {{{author4}}}
 
    }}]]
 
    | {{
 
      #if: {{{last4|}}}
 
      | {{{last4}}}{{ #if: {{{first4|}}} |, {{{first4}}} }}
 
      | {{{author4}}}
 
 
     }}
 
     }}
 
   }}
 
   }}
}}}}}}}}{{
+
}}{{
 
   #if: {{{author|}}}{{{last|}}}
 
   #if: {{{author|}}}{{{last|}}}
   | {{ #if: {{{coauthors|}}} | {{{coauthors}}} }}
+
   | {{ #if: {{{coauthors|}}} | {{{coauthors}}} }}
 
}}{{ #if: {{{author|}}}{{{last|}}} | &#32;}}{{
 
}}{{ #if: {{{author|}}}{{{last|}}} | &#32;}}{{
 
   #if: {{{chapter|}}}
 
   #if: {{{chapter|}}}
103行目: 57行目:
 
   #if: {{{series|}}} |〈{{{series}}}〉
 
   #if: {{{series|}}} |〈{{{series}}}〉
 
}}{{
 
}}{{
   #if: {{{location|}}}
+
   #if: {{{location|}}}  
 
   | {{
 
   | {{
 
     #if: {{{publisher|}}}
 
     #if: {{{publisher|}}}
109行目: 63行目:
 
   }}
 
   }}
 
}}{{
 
}}{{
   #if: {{{date|}}}{{{year|}}}
+
   #if: {{{date|}}}
 
   | {{
 
   | {{
 
     #if: {{{volume|}}}{{{editor|}}}{{{others|}}}{{{translator|}}}{{{{publisher|}}}
 
     #if: {{{volume|}}}{{{editor|}}}{{{others|}}}{{{translator|}}}{{{{publisher|}}}
 
     |、
 
     |、
   }}{{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}}
+
   }}{{{date}}}
  |
+
  | {{
}}{{#if: {{{origdate|}}}{{{origyear|}}}
+
    #if: {{{year|}}}
  |(原著{{#if:{{#if:{{{origdate|}}}|{{#if:{{{origyear|}}}|1|}}|}}|{{Citation/showdateError|origyear=1}}
+
    | {{
  |{{Citation/showdate|{{#if:{{{origdate|}}}|{{{origdate}}}|{{{origyear}}}}}}}}})
+
      #if: {{{volume|}}}{{{editor|}}}{{{others|}}}{{{translator|}}}{{{publisher|}}}
   |
+
      |
 +
    }}{{年月日|year={{{year}}}|month={{{month|}}}}}
 +
  }}
 +
}}{{
 +
  #if: {{{origdate|}}}
 +
  | (原著{{{origdate}}}
 +
  | {{
 +
    #if: {{{origyear|}}}
 +
    | (原著{{年月日|year={{{origyear}}}|month={{{origmonth|}}}}})
 +
   }}
 
}}{{
 
}}{{
 
   #if: {{{edition|}}} | 、{{{edition}}}
 
   #if: {{{edition|}}} | 、{{{edition}}}
 
}}{{
 
}}{{
  #if: {{{page|}}} | 、{{#iferror: {{#ifexpr: {{{page}}} }} | {{{page}}} | {{{page}}}頁 }}
+
   #if: {{{pages|}}} | 、{{{pages}}}
}}{{
 
   #if: {{{pages|}}} | 、{{#iferror: {{#ifexpr: {{{pages}}} }} | {{{pages}}} | {{{pages}}}頁 }}
 
 
}}{{
 
}}{{
 
   #if: {{{language|}}} | ({{{language}}})
 
   #if: {{{language|}}} | ({{{language}}})
 
}}{{
 
}}{{
   #if: {{{doi|}}} | 。{{DOI|{{{doi}}}}}
+
   #if: {{{doi|}}} | 。[[デジタルオブジェクト識別子|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
 
}}{{
 
}}{{
 
   #if: {{{id|}}} | 。{{{id}}}
 
   #if: {{{id|}}} | 。{{{id}}}
 
}}{{
 
}}{{
   #if: {{{ISBN|}}} | 。ISBN {{{ISBN}}}
+
   #if: {{{isbn|}}} | 。ISBN {{{isbn}}}
}}{{
 
  #if: {{{NCID|}}} | 。{{NCID|{{{NCID}}}}}
 
}}{{
 
  #if: {{{oclc|}}} | 。{{OCLC|{{{oclc}}}}}
 
}}{{
 
  #if: {{{asin|}}} | 。{{ASIN|{{{asin}}}}}
 
 
}}{{
 
}}{{
   #if: {{{lcc|}}} | 。{{LCC|{{{lcc}}}}}
+
   #if: {{{oclc|}}} | 。[[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
 
}}{{
 
}}{{
 
   #if: {{{accessdate|}}}
 
   #if: {{{accessdate|}}}
   | 。{{Accessdate|1={{{accessdate}}}|isodate={{ISO dateJA|1={{{accessdate}}}|defaultdate={{{accessdate}}}}}}}
+
   | 。アクセス日 [[{{{accessdate}}}]]
   |。}}{{
+
  | {{
 +
    #if: {{{accessyear|}}}
 +
    | 。{{
 +
      #if: {{{accessmonth|}}}
 +
      | アクセス日 [[{{年月日 |month={{{accessmonth}}} |year={{{accessyear}}}}}]]
 +
      | アクセス年 [[{{年月日 |year={{{accessyear}}}}}]]
 +
    }}
 +
   }}
 +
}}。{{
 
   #if: {{{quote|}}}
 
   #if: {{{quote|}}}
 
   | 「{{{quote}}}」
 
   | 「{{{quote}}}」
 
}}</cite><noinclude>
 
}}</cite><noinclude>
* このテンプレートを直接呼び出さず、{{tl|Cite book}}で"|和書"を指定して使ってください。
+
* このテンプレートではなく、[[Template:Cite book]]のほうを使ってください。
  
 
{{DEFAULTSORT:Cite bookわしよ}}
 
{{DEFAULTSORT:Cite bookわしよ}}
 
[[Category:特殊効果テンプレート]]
 
[[Category:特殊効果テンプレート]]
 
</noinclude>
 
</noinclude>

2018/8/2/ (木) 01:17時点における版

『{{{title}}}』。

  • このテンプレートではなく、Template:Cite bookのほうを使ってください。