「テンプレート:Cite web」の版間の差分

提供: miniwiki
移動先:案内検索
(1版 をインポートしました)
1行目: 1行目:
<includeonly><onlyinclude><cite style="font-style:normal"  
+
<cite style="font-style:normal;"><includeonly>{{qif
{{
+
   |test={{boolnand
  #switch:{{{ref|}}}
+
      |1={{{url|}}}
   ||none =
+
      |2={{{title|}}}
  |#default = id="{{anchorencode:{{{ref}}}}}"
 
  |harv = {{#if:{{{last|}}}{{{author|}}}{{{publisher|}}}
 
    |id="CITEREF{{anchorencode:{{{last|{{{author|{{{publisher|}}}}}}}}}{{{year|{{{date|}}}}}}}}"
 
  }}
 
}}>{{
 
  #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} | 1 }} }}
 
  |
 
  | {{Cite web/error|url|url={{{url|}}}|title={{{title|}}}|deadlinkdate={{{deadlink|{{{deadlinkdate|}}}}}}}}
 
}}{{
 
  #ifexpr: {{#if: {{{archiveurl|}}} | 1 | 0 }} != {{#if: {{{archivedate|}}} | 1 | 0 }}
 
  | {{Cite web/error|archive}}
 
}}{{#if: {{{author|}}}{{{last|}}}
 
  | {{#if: {{{authorlink|}}}
 
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
 
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 
      | {{{author}}}
 
    }}]]
 
    | {{#if: {{{last|}}}
 
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 
      | {{{author}}}
 
 
     }}
 
     }}
   }}{{#if: {{{coauthors|}}}
+
   |then=Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified&#32;
    | <nowiki>;</nowiki>&#32;{{{coauthors}}}
+
}}</includeonly>{{{author|}}}{{qif
   }}{{ #if: {{{date|}}}{{{year|}}}
+
   |test={{{year|}}}
    | &#32;({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}})
+
  |then=&#32;({{{year|}}})
    |
+
}}{{qif
  }}.&#32;
+
   |test={{boolor
}}{{#if: {{{editor|}}}
+
    |1={{{author|}}}
   | &#32;{{{editor}}}&#58;&#32;
+
    |2={{{year|}}}}}
}}“{{#switch: {{{format|}}}
+
  |then=.}}{{qif
  | PDF
+
   |test={{booland
  | DOC
+
    |1={{{url|}}}
  | XLS
+
    |2={{{title|}}}}}
  | PPT
+
   |then=&#32;[{{{url}}} {{{title}}}].
  | RTF = {{{{{format}}}link| 1 = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}] }}
+
}}{{qif
   |   <!-- 空白値 --> = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}]
+
   |test={{{format|}}}
   |           #default = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}]&#32;({{{format}}})
+
  |then=&#32;({{{format|}}})
}}”{{#if:{{{language|}}}
+
}}{{qif
   | {{#if:{{{trans_title|}}} | &nbsp;[{{{trans_title}}}] | {{#if:{{{trans-title|}}} | &nbsp;[{{{trans-title}}}]}}}} &#32;({{#ifeq: {{ISO639言語名|{{{language}}}}}||{{{language}}}|{{ISO639言語名|{{{language}}}}}}})
+
   |test={{{work|}}}
}}{{#if: {{{website|}}}
+
   |then=&#32;''{{{work}}}''.}}{{qif
   | .&#32;''{{{website}}}''
+
   |test={{{publisher|}}}
}}{{#if: {{{work|}}}
+
   |then=&#32;{{{publisher}}}.
   | .&#32;''{{{work}}}''
+
}}{{qif
}}{{#if: {{{publisher|}}}
+
   |test={{{accessdate|}}}
   | .&#32; {{#if: {{{location|}}}
+
   |then=&#32;URL accessed on [[{{{accessdate}}}]]{{qif
    | {{{location}}}:&#32;
+
     |test={{{accessyear|}}}
  }} {{{publisher}}}<!--{{#if: {{{author|}}}{{{last|}}}
+
     |then=, [[{{{accessyear}}}]]
    |
 
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 
   }}-->
 
}}{{#if: {{{page|}}}
 
  |.&#32;p.&nbsp;{{{page}}}
 
  |{{
 
    #if: {{{pages|}}}
 
    |.&#32;pp.&nbsp;{{{pages}}}
 
  }}
 
}}{{#if: {{{author|}}}{{{last|}}}
 
   |
 
  |{{#if: {{{date|}}}{{{year|}}}
 
    | &#32;({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}})
 
    |
 
  }}
 
}}.{{#if: {{{doi|}}}  
 
   | &#32;[[デジタルオブジェクト識別子|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
 
}}{{#if: {{{archivedate|}}}
 
  | &#32;{{Citation/showdate|{{{archivedate|}}}}}時点の[{{{url}}} オリジナル]{{#if: {{{deadlink|{{{deadlinkdate|}}}}}}
 
    | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}}
 
    |
 
  }}よりアーカイブ。
 
}}{{#if: {{{accessdate|}}}{{{access-date|}}}
 
  | {{#if:{{{archivedate|}}}
 
    |
 
    |&#32;
 
     |
 
  }}{{Accessdate|1={{{accessdate|{{{access-date|}}}}}}|isodate={{ISO dateJA|1={{{accessdate|{{{access-date|}}}}}}|defaultdate={{{accessdate|{{{access-date|}}}}}} }} }}
 
  | {{Cite web/error|accessdate|deadlinkdate={{{deadlink|{{{deadlinkdate|}}}}}}}}
 
}}{{#if: {{{quote|}}}
 
  | &nbsp;“{{{quote}}}”
 
}}</cite>{{#if: {{{archivedate|}}}
 
  |
 
  |{{#if: {{{deadlink|{{{deadlinkdate|}}}}}}
 
     | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}}
 
    |
 
 
   }}
 
   }}
}}<!--
+
}}</cite><noinclude>
-->{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}{{{accessday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{day|}}}{{{dateformat|}}}{{{accessed|}}}|{{Citation/showdateError|accessyear={{{accessyear|}}}|dateformat={{{dateformat|}}}}}|}}<!--
+
[[en:Template:Cite web]]
--></onlyinclude></includeonly>
+
</noinclude>
{{Documentation}}
 
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください -->
 

2018/8/2/ (木) 10:56時点における版